tonyyxliu / CUHKSZ-CSC4005

Project Materials for CUHK(SZ) Course CSC4005: Parallel Programming
MIT License
79 stars 31 forks source link

error while loading shared libraries: libcudart,so.11.0: cannot open shared object file: No such file or directory #69

Closed tonyyxliu closed 2 months ago

tonyyxliu commented 2 months ago

Solution: set the following environment variable and try again export LD_LIBRARY_PATH=/opt/nvidia/hpc_sdk/Linux_x86_64/21.7/cuda/11.4/lib64:$LD_LIBRARY_PATH

Or you can add this line at the end of ~/.bashrc file and call source ~/.bashrc to let it take effect.