-
Notifications
You must be signed in to change notification settings - Fork 32
Fix issues for numpy 2.1.0 #1804
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Deleted rendered PR docs from intelpython.github.com/dpctl, latest should be updated shortly. 🤞 |
|
Array API standard conformance tests for dpctl=0.18.0dev0=py310hdf72452_329 ran successfully. |
|
Array API standard conformance tests for dpctl=0.18.0dev0=py310hdf72452_331 ran successfully. |
|
@oleksandr-pavlyk |
|
Array API standard conformance tests for dpctl=0.18.0dev0=py310hdf72452_333 ran successfully. |
16e6c1e to
f29e335
Compare
|
Array API standard conformance tests for dpctl=0.18.0dev0=py310hdf72452_334 ran successfully. |
|
Array API standard conformance tests for dpctl=0.18.0dev0=py310hdf72452_336 ran successfully. |
|
Array API standard conformance tests for dpctl=0.18.0dev0=py310hdf72452_338 ran successfully. |
7265cef to
881675e
Compare
|
Array API standard conformance tests for dpctl=0.18.0dev0=py310hdf72452_337 ran successfully. |
NumPy 2.1.0 now raises exception when fill_value is not in bounds for the array data type. Rework the logic of the test to accomodate that. The test continue to work with NumPy 2.0.1
NumPy 2.1.0 supports DLPack 1.0 now, and raises ValueError if __dlpack__ method gets unsupport dl_device value. Function from_dlpack now handles ValueError, the same way as it handles BufferError
This relies on NumPy to raise OverflowError if the object can not be represented by requested data type.
…ral fill values It should raise OverflowError, like NumPy 2 does.
For 2.0.0 and later, it is to raise OverflowError, otherwise it is expected to wrap up the out-of-bounds integral fill-in values given as Python scalars.
Restrict the input size to allow math the test relies on to work without using out-of-bounds Python scalar inputs to tensor.arange
Change the test so that input matrices that get multiplied only have blocks of ones no larger than the max integer for the type, rest is populated with zeros. This change applies to integral types only.
Use Python 3.12, install recent NumPy (instead of 1.25), update gtest from 1.13 to 1.15.2
881675e to
04f8a4c
Compare
|
Array API standard conformance tests for dpctl=0.18.0dev0=py310hdf72452_339 ran successfully. |
|
Array API standard conformance tests for dpctl=0.18.0dev0=py310hdf72452_340 ran successfully. |
ndgrigorian
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tests are back to passing, LGTM!
Fixed
test_full_gh_1230to work with NumPy 2.1.0.Fixed
dpt.from_dlpackby handlingValueErrorpossibly raised byndarray.__dlpack__when itsdl_devicekeyword argument is unsupported.