Skip to content

Conversation

antonwolfy
Copy link
Contributor

@antonwolfy antonwolfy commented Dec 20, 2022

The PR is to implement a dependency of default data type in creation functions on what is supported by target device.

The device may not support any of types: dpnp.float16, dpnp.float64 or dpnp.complex64. Thus dpnp has to consider that when it's requested to create an array with default data type. The type should be selected only among supported ones by the device.

If a data type is passed explicitly in array creation function but the selected device doesn't support the type, an exception will be raise by dpnp indicating the issue.

  • Have you provided a meaningful PR description?
  • Have you added a test, reproducer or referred to issue with a reproducer?
  • Have you tested your changes locally for CPU and GPU devices?
  • Have you made sure that new changes do not introduce compiler warnings?
  • If this PR is a work in progress, are you filing the PR as a draft?

@antonwolfy antonwolfy merged commit 3a31b82 into IntelPython:master Dec 21, 2022
@antonwolfy antonwolfy deleted the map_dtype_to_device branch December 21, 2022 13:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant