nvcc -V
nvidia-smi
我想cuda版本升级到12.4
如何升级?
首先需要查看自己所使用的Linux操作系统什么版本?
发现是当初克隆实例惹得祸
旧实例使用的cuda版本是11.3
克隆到新实例依然cuda版本是11.3,但是旧实例使用的显卡是RTX 3060
新实例使用的显卡是RTX 4090,所以cuda版本是11.3,肯定就需要升级到比如12.4版本。
报错如下:
/usr/local/cuda-12.4/targets/x86_64-linux/lib/libcufile.so.1.9.0 can't be opened
/usr/local/cuda-12.4/targets/x86_64-linux/lib/libcufile_rdma.so.1.9.0 can't be opened
/usr/local/cuda-12.4/targets/x86_64-linux/lib/libcurand.so.10.3.5.119 can't be opened
/usr/local/cuda-12.4/targets/x86_64-linux/lib/libcusolverMg.so.11.6.0.99 can't be opened
/usr/local/cuda-12.4/targets/x86_64-linux/lib/libcusolver.so.11.6.0.99 can't be opened
/usr/local/cuda-12.4/targets/x86_64-linux/lib/libnppc.so.12.2.5.2 can't be opened
/usr/local/cuda-12.4/targets/x86_64-linux/lib/libnppim.so.12.2.5.2 can't be opened
/usr/local/cuda-12.4/targets/x86_64-linux/lib/libnppisu.so.12.2.5.2 can't be opened
/usr/local/cuda-12.4/targets/x86_64-linux/lib/libnpps.so.12.2.5.2 can't be opened
/usr/local/cuda-12.4/targets/x86_64-linux/lib/libnppicc.so.12.2.5.2 can't be opened
/usr/local/cuda-12.4/targets/x86_64-linux/lib/libnppif.so.12.2.5.2 can't be opened
/usr/local/cuda-12.4/targets/x86_64-linux/lib/libnppial.so.12.2.5.2 can't be opened
/usr/local/cuda-12.4/targets/x86_64-linux/lib/libnppist.so.12.2.5.2 can't be opened
/usr/local/cuda-12.4/targets/x86_64-linux/lib/libnppig.so.12.2.5.2 can't be opened
/usr/local/cuda-12.4/targets/x86_64-linux/lib/libnppidei.so.12.2.5.2 can't be opened
/usr/local/cuda-12.4/targets/x86_64-linux/lib/libnppitc.so.12.2.5.2 can't be opened
/usr/local/cuda-12.4/targets/x86_64-linux/lib/libnvfatbin.so.12.4.99 can't be opened
/usr/local/cuda-12.4/targets/x86_64-linux/lib/libnvJitLink.so.12.4.99 can't be opened
/usr/local/cuda-12.4/targets/x86_64-linux/lib/libnvjpeg.so.12.3.1.89 can't be opened
/var/log/nvidia/.uninstallManifests/CUDA_Toolkit_12.4-components/CUDA_Tools_12.4-components/CUDA_Command_Line_Tools_12.4-components/ can't be opened
terminate called after throwing an instance of 'boost::filesystem::filesystem_error'
what(): boost::filesystem::copy_file: No such file or directory: "./builds/cuda_cupti/extras/CUPTI/lib64/libnvperf_host.so", "/usr/local/cuda-12.4/extras/CUPTI/lib64/libnvperf_host.so"
Aborted (core dumped)
参考:
2021-07-16 安装显卡驱动和cuda报错_terminate called after throwing an instance of 'bo-CSDN博客