numba-dpex icon indicating copy to clipboard operation
numba-dpex copied to clipboard

Minor issues in user_guides/debugging/local_variables.html

Open mpuputti opened this issue 3 years ago • 2 comments

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.

mpuputti avatar Sep 28 '21 08:09 mpuputti

Thank you @mpuputti.

PokhodenkoSA avatar Oct 05 '21 07:10 PokhodenkoSA

@roxx30198 Can you please update the docs as suggested?

diptorupd avatar Dec 10 '23 16:12 diptorupd