-
Notifications
You must be signed in to change notification settings - Fork 30
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
Fix gh 1038 empty zero check device aspects #1042
Fix gh 1038 empty zero check device aspects #1042
Conversation
Both functions will now raise ValueError is data type not natively supported by device is requested.
The default data type can hence raise.
Where dtype is irrelavant use data types mandated by SYCL standard, otherwise check if dtype can be used before making the call.
View rendered docs @ https://intelpython.github.io/dpctl/pulls/1042/index.html |
Array API standard conformance tests for dpctl=0.14.1dev1=py310h76be34b_31 ran successfully. |
… supported by device
Array API standard conformance tests for dpctl=0.14.1dev1=py310h76be34b_35 ran successfully. |
Deleted rendered PR docs from intelpython.github.com/dpctl, latest should be updated shortly. 🤞 |
Array API standard conformance tests for dpctl=0.14.1dev1=py310h76be34b_43 ran successfully. |
Closes gh-1038.
Added checks to
dpctl.tensor.empty
anddpctl.tensor.zeros
to disallow creation of arrays with data-types not natively supported by the requested device.Also added check to
dpctl.tensor.usm_ndarray
constructor to raise the error if an attempt to create an instance requests data type not natively supported by the device.