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

Breakpoint with function name not working for numba-dpex. #1242

Closed
roxx30198 opened this issue Dec 13, 2023 · 0 comments · Fixed by #1443
Closed

Breakpoint with function name not working for numba-dpex. #1242

roxx30198 opened this issue Dec 13, 2023 · 0 comments · Fixed by #1443
Labels
bug Something isn't working debug Related to #149

Comments

@roxx30198
Copy link
Contributor

roxx30198 commented Dec 13, 2023

Breakpoint by passing function name as argument doesn't work for numba-dpex.
gdb version: GNU gdb (Intel(R) Distribution for GDB* 2024.0.0) 13.1
dpcpp version: Intel(R) oneAPI DPC++/C++ Compiler 2024.0.0 (2024.0.0.20231017)
Actual:

$  ONEAPI_DEVICE_SELECTOR=opencl:cpu NUMBA_OPT=0 NUMBA_DPEX_OPT=0 gdb-oneapi -q python
(gdb) b side-by-side.py:common_loop_body
(gdb) r side-by-side.py --api=numba-ndpx-kernel
...
[0. 1. 2. 3. 4. 5. 6. 7. 8. 9.]
[0. 1. 2. 3. 4. 5. 6. 7. 8. 9.]
[10.  11.5 13.  14.5 16.  17.5 19.  20.5 22.  23.5]
Done...

This breakpoint by function name common_loop_body doesn't get triggered for numba-dpex but works fine for numba.
Expected:

$  ONEAPI_DEVICE_SELECTOR=opencl:cpu NUMBA_OPT=0 NUMBA_DPEX_OPT=0 gdb-oneapi -q python
(gdb) b side-by-side.py:common_loop_body 
(gdb) r side-by-side.py --api=numba
Thread 1 "python" hit Breakpoint 1.2, __main__::common_loop_body[abi:v2][abi:c8tJTC_2fWwGaMLShh6CjAIxrKR0t9qKIYaQ0qDQwmMEsTAA_3d_3d](float, float) (param_a=0, param_b=0) at side-by-side.py:16
16          param_c = param_a + 10  # Set breakpoint here
...
@ZzEeKkAa ZzEeKkAa added bug Something isn't working gdb labels Dec 14, 2023
@diptorupd diptorupd added debug Related to #149 and removed gdb labels Jan 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working debug Related to #149
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants