You may need to set your LD_LIBRARY_PATH variable correctly. Using a file find utility, locate where libnvJitLink.so is on your system. Then set your LD_LIBRARY_PATH to include that location.
I did same just now. The output of the find utility is this:
./data/nvhpc/Linux_x86_64/23.7/cuda/12.2/targets/x86_64-linux/lib/stubs/libnvJitLink.so
./data/nvhpc/Linux_x86_64/23.7/cuda/12.2/targets/x86_64-linux/lib/libnvJitLink.so.12.2.91
./data/nvhpc/Linux_x86_64/23.7/cuda/12.2/targets/x86_64-linux/lib/libnvJitLink_static.a
I then exported it as :
export LD_LIBRARY_PATH=/data/nvhpc/Linux_x86_64/23.7/cuda/12.2/targets/x86_64-linux/lib/
Error is still same. Is there any thing I am missing?
Thank you @Robert_Crovella !
When I set the LD_LIBRARY_PATH to /data/nvhpc/Linux_x86_64/23.7/cuda/12.2/targets/x86_64-linux/lib/, it worked! All other location where libnvJitLink.so.12 was located didn’t worked.
Thank you for the help!
I did same. But it worked this time. And I also tried to export all other locations of nvJitLink. Only difference between then and now is I downgraded my cuda version bundled with HPC toolkit from 23.7 to 23.1 which is bundled with cuda 12.1