Hi,
I am trying to debug my application with Nsight Compute with SYCL using Codeplay Plugin.
I noticed that in the Source tab there isn’t any source and sass next to each other like the problem reported in this thread :
I used the --import-sources on option to import the sources too on the command line but now received a warning
==PROF== Disconnected from process 2707405
==WARNING== No source files were imported. Check that the target application was compiled with -lineinfo.
How can add this option to compile commands in SYCL ?
... -fsycl -lineinfo ...
Provides this error message :
/bin/ld: cannot find -lineinfo: No such file or directory
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
Hi @br-ko,
the -g flag in DPC++ adds full debug information for both host and device code and it’s usually the simplest and best solution (unlike in nvcc which has separate flags for host and device code). Let me know if -g works for you.