I am collecting a VTune profile for an offloaded program in the following manner:
amplxe-cl -collect knc-hotspots -source-search-dir /home/dozog/myapp/src -search-dir /home/dozog/myapp/src -result-dir ./test-offload -- ../../src/a.out
The results are generated, but no function names are included, so the profile is mostly useless. I've tested the same program in native mode, and symbols are linked in correctly. I've also tested host-only, and all symbols are included. Any idea what is wrong with the offload case? How do I fix the problem? Thanks.