You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 13, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Jul 13, 2026. It is now read-only.
numba-dpex doesn't allow range multiplications inside NdRange #1159
dimBlock * dimGrid is expected to produce range object with dimensions (1, 1, blockCols* BLOCK_SIZE) in this case.
However this isn't allowed in numba-dpex ndrange.
In SYCL, two sycl::range objects can be multiplied. I think we can do something similar with Range/NdRange as well.
@roxx30198 could you please post a complete code? Also what does the structure look like when you multiply two sycl::range objects?
It's a new feature that needs to be implemented.
Added the expected output. I couldn't get to exactly print the dimensions of final range object but I have verified it is the multiplication of corresponding elements in the tuple.
Below is a valid sycl code where we are allowed to multiply two sycl::range objects.
dimBlock * dimGrid is expected to produce range object with dimensions (1, 1, blockCols* BLOCK_SIZE) in this case.
However this isn't allowed in numba-dpex ndrange.
This throws an error:
TypeError: can't multiply sequence by non-int of type 'Range'