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

Deprecation warning for examples in documentation #1042

Closed
Tracked by #1084
pauljurczak opened this issue May 16, 2023 · 1 comment · Fixed by #1388
Closed
Tracked by #1084

Deprecation warning for examples in documentation #1042

pauljurczak opened this issue May 16, 2023 · 1 comment · Fixed by #1388
Labels
documentation Improvements or additions to documentation user User submitted issue

Comments

@pauljurczak
Copy link
Contributor

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)
@diptorupd diptorupd added documentation Improvements or additions to documentation user User submitted issue labels May 18, 2023
@diptorupd
Copy link
Contributor

Addressed in latest revision of documentation site.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation user User submitted issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants