Skip to content
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

test_usm_ndarray_print has 1 test failed on Iris XE #1069

Closed
vlad-perevezentsev opened this issue Feb 10, 2023 · 0 comments · Fixed by #1070
Closed

test_usm_ndarray_print has 1 test failed on Iris XE #1069

vlad-perevezentsev opened this issue Feb 10, 2023 · 0 comments · Fixed by #1070
Assignees
Labels

Comments

@vlad-perevezentsev
Copy link
Collaborator

x(asarray) is created as float32 on gpu device without double type support and its printable representation shows with dtype which causes this test to fall.

The example code from WSL:

def test_print_repr(self):
        ...
        x = dpt.asarray([np.nan, np.inf], sycl_queue=q)
>       assert repr(x) == "usm_ndarray([nan, inf])"
E       AssertionError: assert 'usm_ndarray(...type=float32)' == 'usm_ndarray([nan, inf])'
E         - usm_ndarray([nan, inf])
E         + usm_ndarray([nan, inf], dtype=float32)
E         ?                       +++++++++++++++

Suggested action:

Add if x.sycl_device.has_aspect_fp64 to check for double type support

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant