Skip to content

Add support of usm_ndarray constructor with default dtype on Iris XE #1058

Description

@antonwolfy

Currently dpctl creates usm_ndarray with default dtype="|f8" which cause an issue on gpu device without double type support.

The below example code cause an exception for Iris XE:

> import dpctl.tensor as dpt
> dpt.usm_ndarray((10,))

ValueError                                Traceback (most recent call last)
Cell In[3], line 1
----> 1 dpt.usm_ndarray((10,))

File dpctl/tensor/_usmarray.pyx:264, in dpctl.tensor._usmarray.usm_ndarray.__cinit__()

ValueError: Device Intel(R) Graphics [0x9a49] does not support |f8 natively.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions