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

numba-dpex doesn't support running kernels with indexes outside of int32 range #1191

Open
AlexanderKalistratov opened this issue Oct 26, 2023 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@AlexanderKalistratov
Copy link
Contributor

import dpnp
import numba_dpex as nb
from numba_dpex import Range

@nb.kernel
def foo(a, b):
    i = nb.get_global_id(0)
    if i == b:
        a[0] = b

a = dpnp.zeros(1)
b = 1

foo[Range(2**31 - 1)](a, b)
print(a[0])

Output:

1
...
foo[Range(2**31)](a, b)
print(a[0])

Output:

Traceback (most recent call last):
  File "/home/akalistr/work/test/./sycl_id_test.py", line 14, in <module>
    foo[Range(2**31)](a, b)
  File "/home/akalistr/miniconda3/envs/dpbench-dev/lib/python3.10/site-packages/numba_dpex/core/kernel_interface/dispatcher.py", line 492, in __call__
    exec_queue.submit(
  File "dpctl/_sycl_queue.pyx", line 706, in dpctl._sycl_queue.SyclQueue.submit
  File "dpctl/_sycl_queue.pyx", line 823, in dpctl._sycl_queue.SyclQueue.submit
dpctl._sycl_queue.SyclKernelSubmitError: Kernel submission to Sycl queue failed.
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

No branches or pull requests

2 participants