当前位置:网站首页>Install tensorflow GPU miscellaneous
Install tensorflow GPU miscellaneous
2022-06-26 01:36:00 【Nightmare satiety】
Use pip Add... At the back -i Parameters , Appoint pip Download source
pip install numpy -i https://pypi.tuna.tsinghua.edu.cn/simple
cuda8.0 install
1) Run command at terminal sudo sh cuda_8.0.27_linux.run
choice
Do you accept the previously read EULA?
accept/decline/quit: accept
Install NVIDIA Accelerated Graphics Driver for Linux-x86_64 361.62?
(y)es/(n)o/(q)uit: n
Install the CUDA 8.0 Toolkit?
(y)es/(n)o/(q)uit: y
Enter Toolkit Location
[ default is /usr/local/cuda-8.0 ]:
Do you want to install a symbolic link at /usr/local/cuda?
(y)es/(n)o/(q)uit: y
Install the CUDA 8.0 Samples?
(y)es/(n)o/(q)uit: y
Enter CUDA Samples Location
[ default is /home/zhou ]:
Installing the CUDA Toolkit in /usr/local/cuda-8.0 …
Missing recommended library: libGLU.so
Missing recommended library: libX11.so
Missing recommended library: libXi.so
Missing recommended library: libXmu.so
Installing the CUDA Samples in /home/zhou …
Copying samples to /home/zhou/NVIDIA_CUDA-8.0_Samples now…
Finished copying samples.
= Summary =
Driver: Not Selected
Toolkit: Installed in /usr/local/cuda-8.0
Samples: Installed in /home/zhou, but missing recommended libraries
Please make sure that
- PATH includes /usr/local/cuda-8.0/bin
- LD_LIBRARY_PATH includes /usr/local/cuda-8.0/lib64, or, add /usr/local/cuda-8.0/lib64 to /etc/ld.so.conf and run ldconfig as root
To uninstall the CUDA Toolkit, run the uninstall script in /usr/local/cuda-8.0/bin
Please see CUDA_Installation_Guide_Linux.pdf in /usr/local/cuda-8.0/doc/pdf for detailed information on setting up CUDA.
***WARNING: Incomplete installation! This installation did not install the CUDA Driver. A driver of version at least 361.00 is required for CUDA 8.0 functionality to work.
To install the driver using this installer, run the following command, replacing with the name of this run file:
sudo .run -silent -driver
Logfile is /tmp/cuda_install_2961.log
installation is complete , But some libraries are missing .
2) Install missing Libraries
sudo apt-get upgrade -y
sudo apt-get update
sudo apt-get install freeglut3-dev build-essential libx11-dev libxmu-dev libxi-dev libgl1-mesa-glx libglu1-mesa libglu1-mesa-dev -y
Be careful : In this step, if you encounter a problem like this :
unity-control-center : rely on : libcheese-gtk23 (>= 3.4.0) But it will not be installed
rely on : libcheese7 (>= 3.0.1) But it will not be installed
E: error ,pkgProblemResolver::Resolve failure , This may be because some software packages are required to maintain the status quo .
Solution :
Install one first aptitude, I.e. input... At the terminal :
sudo apt-get install aptitude
After installation , Use this tool to install qt-sdk You can use . I.e. input... At the terminal :
sudo aptitude install qt-sdk
Later bash install-deps;
3) Set the environment variable
Enter these two sentences at the terminal :
export PATH=/usr/local/cuda-8.0/bin:PATHexportLDLIBRARYPATH=/usr/local/cuda−8.0/lib64: P A T H e x p o r t L D L I B R A R Y P A T H = / u s r / l o c a l / c u d a − 8.0 / l i b 64 : LD_LIBRARY_PATH
if you are installing cuda-7.5
Please make sure that
- PATH includes /usr/local/cuda-7.5/bin
- LD_LIBRARY_PATH includes /usr/local/cuda-7.5/lib64,
export PATH=/usr/local/cuda-7.5/bin:PATHexportLDLIBRARYPATH=/usr/local/cuda−7.5/lib64: P A T H e x p o r t L D L I B R A R Y P A T H = / u s r / l o c a l / c u d a − 7.5 / l i b 64 : LD_LIBRARY_PATH
add /usr/local/cuda-7.5/lib64 to /etc/ld.so.conf
ldconfig
Then modify the environment variable settings in the file
sudo gedit /etc/profile
Type in the above export Two sentences
export PATH=/usr/local/cuda-8.0/bin:PATHexportLDLIBRARYPATH=/usr/local/cuda−8.0/lib64: P A T H e x p o r t L D L I B R A R Y P A T H = / u s r / l o c a l / c u d a − 8.0 / l i b 64 : LD_LIBRARY_PATH
preservation , sign out .
sudo ldconfig // Environment variables take effect immediately
4) Verify that the installation is complete
nvidia-smi
Show :
nvcc –version
Show :
nvcc -V nvcc: NVIDIA (R) Cuda compiler driver Copyright (c) 2005-2016
NVIDIA Corporation Built on Wed_May__4_21:01:56_CDT_2016 Cuda
compilation tools, release 8.0, V8.0.26
install annconda Can't find conda
You can choose to write the path with the command bashrc file :
echo “export PATH=”~/anaconda2/bin:”$PATH ” >> ~/.bashrc
Use source ~/.bashrc( perhaps . ~/.bashrc) You can immediately load the modified settings , Make it effective .
“libcudart.so.8.0 cannot open shared object file: No such file or directory”
The solution is to copy some files to /usr/local/lib Under the folder :
Pay attention to yourself CUDA Version number of !
sudo cp /usr/local/cuda-8.0/lib64/libcudart.so.8.0 /usr/local/lib/libcudart.so.8.0 && sudo ldconfig
sudo cp /usr/local/cuda-8.0/lib64/libcublas.so.8.0 /usr/local/lib/libcublas.so.8.0 && sudo ldconfig
sudo cp /usr/local/cuda-8.0/lib64/libcurand.so.8.0 /usr/local/lib/libcurand.so.8.0 && sudo ldconfig
resolvent :sudo ldconfig /usr/local/cuda/lib64
边栏推荐
- A sharp tool for information collection, Google hacker syntax
- 新库上线 | CnOpenDataA股上市公司IPO申报发行文本数据
- 超详细SSM框架实现增删改查功能项目整体流程
- Longitude and latitude multipoint acquisition center point has been solved
- Online gadget sharing (updated from time to time, current quantity: 2)
- 物联网?快来看 Arduino 上云啦
- Is it safe to open a fund account? Are there any risks?
- 生信周刊第33期
- Oracle database startup backup preparation
- [flower carving experience] 11 start esp32c3
猜你喜欢

从查询数据库性能优化谈到redis缓存-谈一谈缓存的穿透、雪崩、击穿

Handling of @charset UTF-8 warning problems during vite packaging and construction;

黑盒测试 — 测试用例 之 判定表法看这一篇就够了

《网络是怎么样连接的》读书笔记 - 集线器、路由器和路由器(三)

新库上线 | CnOpenData中国新房信息数据

halcon之区域:多种区域(Region)生成(4)

【花雕体验】11 上手ESP32C3

使用Gin框架运行Demo时报错“ listen tcp :8080: bind: An attempt was made to access a socket in a way forbidden”

Etcd database source code analysis cluster communication initialization

Computer network knowledge summary (interview)
随机推荐
Shell regular expression
JSON基本语法
2022防爆电气操作证考试题库及模拟考试
2021-1-15 摸魚做的筆記Ctrl+c /v來的
Development and monitoring of fusion experiment pulse power supply by LabVIEW
"Hot post" Statistics
通过电脑获取WIFI密码(只能连接过的WiFi)
Web信息收集,互联网上的裸奔者
Longitude and latitude multipoint acquisition center point has been solved
接口的幂等性——详细谈谈接口的幂等即解决方案
Zhihuijia - full furniture function
远程增量同步神器rsync
Redis strings command
JSON实例(一)
Using redis database as cache in Django
[visual studio code] vscode shortcut keys
The cache page stores the initial parameters after the route jump under the react + router framework
Comment promouvoir efficacement les produits
毕业季你考虑好去留了吗
FIFO code implemented in C language