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

Create aliases to numba's primitive data types in numba-dpex #830

Closed
samaid opened this issue Dec 1, 2022 · 0 comments · Fixed by #851
Closed

Create aliases to numba's primitive data types in numba-dpex #830

samaid opened this issue Dec 1, 2022 · 0 comments · Fixed by #851
Assignees
Labels
enhancement New feature or request

Comments

@samaid
Copy link
Contributor

samaid commented Dec 1, 2022

Currently to use Numba-dpex with dtype specifier one needs to explicitly import these types from Numba:

import numba_dpex as ndpx
import numba

@ndpx.kernel
def kernel_impl(a)
b = ndpx.local.array(10, dtype = numba.float32) # Must get float32 from Numba

Instead, as a convenience feature, create aliases for these Numba types inside Numba-Dpex

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

Successfully merging a pull request may close this issue.

2 participants