Closed
Description
Running an example from https://intelpython.github.io/numba-dpex/latest/CoreFeatures.html or https://intelpython.github.io/numba-dpex/latest/index.html produces deprecation warning:
DeprecationWarning: The current syntax for specification of kernel lauch parameters is deprecated. Users should set the kernel parameters through Range/NdRange classes.
Example:
from numba_dpex import Range,NdRange
# for global range only
<function>[Range(X,Y)](<parameters>)
# or,
# for both global and local ranges
<function>[NdRange((X,Y), (P,Q))](<parameters>)
sum[20, dpex.DEFAULT_LOCAL_SIZE](a, b, c)
/home/paul/st-python/oneapi/t-2.py:20: DeprecationWarning: Empty local_range calls are deprecated. Please use Range/NdRange to specify the kernel launch parameters:
Example:
from numba_dpex import Range,NdRange
# for global range only
<function>[Range(X,Y)](<parameters>)
# or,
# for both global and local ranges
<function>[NdRange((X,Y), (P,Q))](<parameters>)
sum[20, dpex.DEFAULT_LOCAL_SIZE](a, b, c)