当前位置:网站首页>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 
边栏推荐
猜你喜欢
随机推荐
Swift创作天气APP
自定义 view 实现兑奖券背景[初级]
OC--Foundation--字典
如何将其他PHP版本添加到MAMP
Some operations of main function
[code source] daily one question three paragraph
OC -- category extension agreement and delegation
[code source] I have a big head for a problem every day
*7-1 CCF 2015-09-1 sequence segmentation
Indexes, views and transactions of MySQL
The jar package has been launched on Alibaba cloud server and the security group has been opened, but postman still can't run. What should we do
Save pdf2image PDF file as JPG nodejs implementation
Swift简单实现待办事项
@4-1 CCF 2020-06-1 linear classifier
Redis string structure command
How to write Android switching interface with kotlin
How to convert object data into arrays
括号匹配问题
OC--初识
Use of map () function in JS





![Customize the view to realize the background of redeeming lottery tickets [elementary]](/img/97/53e28673dcd52b31ac7eb7b00d42b3.png)



