Argument unused during compilation ('-Xcuda-ptxas --verbose') - Plugin oneAPI for NVIDIA GPUs

I am using the plugin documented here: oneAPI for NVIDIA® GPUs 2023.0.0 - Guides - oneAPI for NVIDIA® GPUs - Products - Codeplay Developer

So far, the application runs fine. However, I don’t understand why the argument -Xcuda-ptxas --verbose is not used. Is that expected?

clang++ -DN64WI   -fsycl -fsycl-targets=nvptx64-nvidia-cuda -fgpu-inline-threshold=100000 -Xsycl-target-backend --cuda-gpu-arch=sm_80 -Xcuda-ptxas --verbose --cuda-path=/usr/local/cuda-12 -cl-fast-relaxed-math -cl-single-precision-constant -I./common -I./host/inc -I./dpcpp -O3  -c ./dpcpp/kernels.dp.cpp
clang++: warning: argument unused during compilation: '-Xcuda-ptxas --verbose' [-Wunused-command-line-argument]

Yes, this is expected, for SYCL compilation ptxas is only run during the linking stages so it is not called when building with -c which is why you’re seeing this warning. If you remove -c it should show the verbose output of ptxas as expected.

1 Like

Thank you @rod, it works as expected!