Skip to content

Deprecation warning for examples in documentation #1042

Closed
@pauljurczak

Description

@pauljurczak

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationuserUser submitted issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions