-
Notifications
You must be signed in to change notification settings - Fork 33
Closed
Labels
Description
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
...