numba-dpex
numba-dpex copied to clipboard
Minor issues in user_guides/debugging/local_variables.html
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.
Thank you @mpuputti.
@roxx30198 Can you please update the docs as suggested?