cmd:
/usr/local/NVIDIA-Nsight-Compute/ncu --set full -k compute_attn xxxx
output:
==ERROR== Nsight Compute failed to connect to the CUDA driver (stub libcuda.so[.1] on path?).
==ERROR== The application returned an error code (1).
version:
I tried 2024.1/2/3 and they report same error.
NVIDIA-SMI 555.42.02 Driver Version: 555.42.02 CUDA Version: 12.5
GPU:A10
I tried to set LD_LIBRARY_PATH/PATH/CUDA_TOOLKIT_PATH to include the path of libcuda.so but didn’t work. What else can I do now?
Sorry for the issue you met.
Can you confirm if this happens to other CUDA sample or your specific sample?
Also can your sample run successfully without ncu ?
I solved this problem.
FYI, here is what I did:
There’s two cuda library path in my env, “/usr/local/nvidia/lib64” and “/usr/local/cuda/lib64”. Let’s call them PATH_A and PATH_B.
In PATH_A we have the libcuda.so we need, and PATH_B contains the stub libcuda.so. So I add PATH_A to LD_LIBRARY_PATH, and link necessary libs in PATH_A.