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.
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 callsource ~/.bashrc
to let it take effect.