Conversation
69cb600 to
1bfa605
Compare
|
In general I don't see a problem with this change, but changing a dependency is a pretty big tweak. @ekomarova @AndresGuzman-Ballen is there any way Intel NumPy tests can be run with this branch to make sure it doesn't introduce any major failures? |
|
@ndgrigorian I suppose I could point mkl_umath's commit in numpy-2.2.5 branch to this branch, but I'd prefer doing that after I can get all subpackages to build and pass tests in our CI |
|
This PR does not break testing with Intel Numpy 2.2.5. All checks are green. I will also check v1.26.4 |
|
@ndgrigorian I see some problems in build/tests in numpy 1.26.4. Could you please take a look at it here https://github.com/intel-innersource/libraries.python.intel.condarecipes.numpy-recipe/pull/152? |
@ekomarova To fix build failure you need to pin |
|
Linux test failure is because of tolerance, I think it should be patched to fix. FAILED core/tests/test_umath.py::TestPower::test_power_float - AssertionError:
Arrays are not almost equal to 7 decimals
unary offset=(0, 0), size=8, dtype=<class 'numpy.float32'>, out of place
Mismatched elements: 1 / 8 (12.5%)
Max absolute difference: 2.3841858e-07
Max relative difference: 9.7333974e-08
x: array([0. , 0.9999999, 1.4142134, 1.7320508, 1.9999999, 2.236068 ,
2.4494896, 2.6457512], dtype=float32)
y: array([0. , 1. , 1.4142135, 1.7320508, 2. , 2.236068 ,
2.4494898, 2.6457512], dtype=float32)
FAILED core/tests/test_umath.py::TestAVXUfuncs::test_avx_based_ufunc - AssertionError:
Arrays are not equal
Mismatched elements: 1 / 2 (50%)
Max absolute difference: 4.7683716e-07
Max relative difference: 6.150229e-08
x: array([2.410054, 7.75316 ], dtype=float32)
y: array([2.410054, 7.75316 ], dtype=float32) |
|
Rather than tweak the precision, what if the numpy PR just include this? https://github.com/intel-innersource/libraries.python.intel.condarecipes.numpy-recipe/blob/2.2.5/patches/add_precision_flags.patch |
|
@ekomarova in case you're curious how I came to that conclusion, this is some context: #73 |
|
Windows failure are not related to this PR, they are related to #73 |
|
I think numpy 1.26.4 wasn't tested recently with recent mkl_umath changes. I'll push some tweaks so that way the numpy 1.26.4 PR works. |
|
numpy recipes are tested with this branch and everything works fine. |
ndgrigorian
left a comment
There was a problem hiding this comment.
no further concerns from my side, LGTM
|
@napetrov Any other suggestion/concern on this PR before merging it? |
thanks, look good! |
|
Thank you for the fix! 🙏 Can you comment on when this will be released? 👀 |
|
@jankrecke Hi! This should be released soon along with the 2025.2 release, I can't give exact dates, but most likely within a couple of weeks |
resolves IntelPython/mkl_fft#165
Main branch
This branch