Ubuntu系统如何升级CUDA版本?

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博客

[15分钟搞定!]Ubuntu系统下升级CUDA版本_cuda版本更ubantu-CSDN博客

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值