Closed qiyuangong closed 3 weeks ago
The root cause is GPU driver is not correctly installed.
(qiyuan-flash) arda@arda-arc15:~/qiyuan/oneapi_debug/build$ python /opt/intel/oneapi/diagnostics/latest/bin/diagnostics.py --select debugger_sys_check --force -v
Some checks have dependencies that are not on the list of checks to run.
The following checks will run, but will not be displayed: base_system_check
Checks results:
=======================================================================================================================================================================================
Check name: debugger_sys_check
Description: This check verifies if the environment is ready to use gdb (Intel(R) Distribution for GDB*).
=======================================================================================================================================================================================
| Linux kernel version--------Supported---------------------------------------------------------------------------------------------------------------------------------------PASS |
| Debugger exist--------------Found-------------------------------------------------------------------------------------------------------------------------------------------PASS |
| Message: Debugger found. |
| libipt exist----------------Found-------------------------------------------------------------------------------------------------------------------------------------------PASS |
| Message: libipt found. |
| libiga exist----------------Found-------------------------------------------------------------------------------------------------------------------------------------------PASS |
| Message: libiga found. |
| Compiler--------------------Compiler----------------------------------------------------------------------------------------------------------------------------------------PASS |
| i915 debug------------------i915 debug--------------------------------------------------------------------------------------------------------------------------------------ERROR |
| Message: No devices found that support debugging of GPU offload code. |
| How to fix: The developer of the check did not provide information on how to solve the problem. To see the solution to the problem, ask the developer of the check to |
| fill in the "HowToFix" field. |
| Env variables---------------Env variables-----------------------------------------------------------------------------------------------------------------------------------PASS |
| Message: Environmental variables correct. |
| Gdb processes---------------Gdb processes-----------------------------------------------------------------------------------------------------------------------------------PASS |
Output directory: /home/arda/intel/diagnostics/logs
Text report: diagnostics_select_debugger_sys_check_force_verbosity_0_arda-arc15_20241022_085809965954.txt
JSON report: diagnostics_select_debugger_sys_check_force_verbosity_0_arda-arc15_20241022_085809965958.json
This report for arda-arc15
was generated by the Diagnostics Utility for Intel® oneAPI Toolkits 2024.0.0.
After re-install correct GPU driver. gdb-oneAPI can stop at correct line in sycl kernel.
Example: https://github.com/oneapi-src/oneAPI-samples/tree/main/Tools/ApplicationDebugger/array-transform#example-outputs
HW: ARC A770 OS: Ubuntu 22.04 Kernel: 6.5
Env (oneAPI 2024.0 /opt/intel/oneapi/compiler/2024.0/bin/icpx)
array-transform is built with debug flag using cmake provided by example.
gdb just skipped breakpoint in https://github.com/oneapi-src/oneAPI-samples/blob/main/Tools/ApplicationDebugger/array-transform/src/array-transform.cpp#L54. But, result is successful.
Output