当前位置:网站首页>【CUDA】version switch freely
【CUDA】version switch freely
2022-08-08 23:07:00 【swaying tree】
Introduction
According to different needs, use different versions of cuda
Free switching of CUDA versions
1. Modify environment variables in ~/.bashrc:
Command line sudo gedit ~/.bashrc Open .bashrc:
sudo gedit ~/.bashrc
Because I installed Xmanager, I can directly see the graphical interface and modify it directly.
The modification command of the terminal is:strong>
export PATH="$PATH:/usr/local/cuda-11.3/bin"export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/cuda-11.3/lib64/"export LIBRARY_PATH="$LIBRARY_PATH:/usr/local/cuda-11.3/lib64"
After saving and exiting, run the following command in the terminal to make it take effect:
source ~/.bashrc
2. At this step, it means that the link library has been set up, and finally only need to enter in the terminal:
sudo rm -rf /usr/local/cuda-10.1 #Delete previously created soft linksudo ln -s /usr/local/cuda-11.3 /usr/local/cuda #create new cuda-10.0Softlinks
View the current cuda version:
nvcc -V
Test:
If both test results are Result = PASS, the installation is successful
#compile and test the device deviceQuerycd /usr/local/cuda-11.3/samples/1_Utilities/deviceQuerysudo make./deviceQuery
##Compile and test bandwidth bandwidthTestcd ../bandwidthTestsudo make./bandwidthTest
Reference link: https://blog.csdn.net/elegantoo/article/details/105574133
边栏推荐
- 2022牛客多校六 A-Array(构造+哈夫曼)
- wps表格分两页断开怎么办?wps表格分两页断开的解决方法
- ArcPy elements batch to dwg
- 【Bug解决】ValueError: Object arrays cannot be loaded when allow_pickle=False
- (2022杭电多校六)1012-Loop(单调栈+思维)
- IMConversation 或 IMUser 类型数据
- LeetCode:最长有效括号
- 动态主机配置协议DHCP(DHCPv4)
- postman request+加密解密
- laravel6框架跨域请求利器之 Laravel CORS 扩展包的安装和使用
猜你喜欢
随机推荐
JS中的作用域与作用域链
DHCP的防御机制——DHCP Snooping(DHCP监听)
Analysis of WLAN - Wireless Local Area Network
Kubernetes 资源编排系列之二: Helm 篇
ArcPy设置全库唯一标识码
机器学习之知识点(一)
【PP-YOLOv2】测试自定义的数据集
ABP中的数据过滤器
JSDay1-两数之和
想要精准营销,从学习搭建一套对的标签体系开始丨DTVision分析洞察篇
腾讯技术支持实习二面——腾讯爸爸的临幸就是这么突然(offer到手)
设计分享|基于单片机的P0口驱动LED闪烁
wsgw login packet capture record
wsgw登录抓包记录
meta learning
The Socket (Socket)
ArcPy图斑编号-根据字段长度自动补齐
MPLS Virtual Private Network Everywhere in Life
Kubernetes与OpenStack
考证必看 | PMP扫盲贴+PMP材料