Skip to content

Minor issues in user_guides/debugging/local_variables.html #573

Open
@mpuputti

Description

@mpuputti

At the end of the page https://intelpython.github.io/numba-dppy/latest/user_guides/debugging/local_variables.html, the script ends before the function review() is called:

@dppy.func
def revive(x):
    return x


@dppy.kernel(debug=True)
def data_parallel_sum(a, b, c):
    i = dppy.get_global_id(0)
    l1 = a[i] + 2.5
    l2 = b[i] * 0.3
    c[i] = l1 + l2
    revive(a)   <--- This line is missing

Below the above script, annotations seem to have mismatch with line numbers:

# --- LINE 24 ---    <--- This should refer the line 21 in the above script

@dppy.kernel(debug=True)

There is also another annotation example in this page, and that seems to have similar issue with line numbers mismatching with the associated script.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingdocumentationImprovements or additions to documentationuserUser submitted issue

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions