当前位置:网站首页>Server CUDA toolkit multi version switching
Server CUDA toolkit multi version switching
2022-07-25 09:46:00 【clusters of stars ¹ ⁸⁹⁵】
Actually, through update-alternatives It can be realized cuda Version switch
1. View version
- see cuda toolkit edition
nvcc -V
Attention is big V
- Check the graphics card driver version and cuda edition
Be careful cuda Version and cuda toolkit Version is not the same thing
There are also people here cuda Version is the highest supported by the graphics card driver cuda edition
nvidia-smi

2. Download and install multiple versions cuda toolkit
Address :https://developer.nvidia.com/cuda-toolkit-archive
Go in as shown in the figure below , With 10.2 For example 
We choose the system model , With runfile For example , If the server directly wget If not , It can be used wget The following links are downloaded locally and then uploaded to the server , But it's bigger (2.5GB). Note that you also need to download the following two patches .
After uploading to the server , Let's install
sudo sh
wait a moment , Input accept

Here, because the graphics card driver has been installed , You need to put Driver Get rid of it , Otherwise, an error will be reported . Because it's already installed Driver 了 , Therefore, re installation will conflict .
then install, Just a minute .
After installed , Input
ls /usr/local
You can see that two versions of cuda toolkit
3. Version switch
- First add to update-alternatives
sudo update-alternatives --install /usr/local/cuda cuda /usr/local/cuda-10.0 10
sudo update-alternatives --install /usr/local/cuda cuda /usr/local/cuda-10.2 20
Then switch the version
sudo update-alternatives --config cuda

Enter the digital switch version , It can be found that the free switching is successful 
边栏推荐
猜你喜欢
随机推荐
初识Opencv4.X----图像直方图均衡
如何将其他PHP版本添加到MAMP
How to import a large amount of data in MATLAB
[code source] I have a big head for a problem every day
Laravel calls a third party to send mail (PHP)
OC -- category extension agreement and delegation
Voice chat app source code - produced by NASS network source code
How to configure SSH after changing the computer
【数据挖掘】第二章 认识数据
main函数的一些操作
Flex layout syntax and use cases
How to obtain location information (longitude and latitude) by uni app
初识Opencv4.X----方框滤波
初识Opencv4.X----ROI截取
Sort out personal technology selection in 2022
Android 如何使用adb命令查看应用本地数据库
【数据挖掘】最近邻和贝叶斯分类器
【cf】Round 128 C. Binary String
SurfaceView 闪屏(黑一下问题)
[code source] daily question simple fields and









