In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
Editor to share with you how to install Ubuntu14.04 CUDA7, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's learn about it!
Environment
Ubuntu 14.04 x64
Brief introduction
CUDA, whose full name is Compute Unified Device Architecture in English, is a computing platform launched by NVIDIA, a graphics card manufacturer. At present, computing is developing from CPU "central processing" to CPU and GPU "cooperative processing". In order to realize this new computing mode, NVIDIA invented the CUDA parallel computing architecture. The architecture is now being used on Tesla ®, Quadro ®, and GeForce ®GPU. Generally do graphics operation acceleration, the installation here is mainly for the later compilation of GPU acceleration using caffe.
Official introduction: http://www.nvidia.cn/object/cuda-cn.html
Verification
Use the following command to view the model of the video card
Lspci | grep-I nvidia
Then go to the URL (https://developer.nvidia.com/cuda-gpus) to verify whether it supports cuda. Some OEM (such as GTX 745) custom graphics card may not be found, you can go to the URL http://www.nvidia.cn/page/home.html direct search box to support cuda before you can continue. Don't think about the graphics card of ATI, it is not supported.
Installation package
Download link: https://developer.nvidia.com/cuda-downloads
Installation package: cuda_7.0.28_linux.run
The installation package is an integrated package, which includes nvidia driver installation package, cuda installation package, sample installation package, all of which do not need to be downloaded separately. You can see them by decompressing them using the following command
. / cuda_7.0.28_linux.run-- extract=extract_absolute_path
The unzipped files include:
NVIDIA-Linux-x86_64-346.46.runcuda-linux64-rel-7.0.28-19326674.runcuda-samples-linux-7.0.28-19326674.run
All installation here does not need to be unzipped. If you want to install the decompression separately, you can install it separately.
Installation
First enter the following command to enter another command line terminal
CTRL+ALT+F1
Close the graphical interface, if you do not close the next command to install directly, the system will report an error, prompting that there is still an X graphical interface running, or close or the installation steps cannot be carried out.
Sudo service lightdm stop
To install the software, enter the following command, many prompts will appear, and the Nvidia graphics card driver, cuda,cuda sample and opengl will be installed. The installation path is available by default.
Sudo sh cuda_7.0.28_linux.run
Start the graphical interface, so that there will be a familiar login interface, enter the password to enter the system is considered successful, if you have been in the login interface cycle is to encounter the following problem.
Sudo service lightdm start environment variable
After successful installation, you also need to set the environment variable of cuda.
Open a file
Sudo gedit / etc/profile # # individuals prefer to put environment variables in / etc/profile, like'~ / .bashrc'
Add at the end of the file
Export CUDA_HOME=/usr/local/cuda-7.0export PATH=$CUDA_HOME/bin:$PATHexport LD_LIBRARY_PATH=$CUDA_HOME/lib64:$LD_LIBRARY_PATH
Execute the following command to make the environment variable take effect immediately
Source / etc/profilelib library path
This step seems to be fine without adding it, but it is better to add it for the sake of insurance.
Open a file
Sudo gedit / etc/ld.so.conf.d/cuda.conf
Usually create a new file and add it to the file
/ usr/local/cuda-7.0/lib64
Execute the following order to take effect immediately
Sudo ldconfig test
Check the driver version of the video card (in addition to the following command line mode, you can also open 'NVIDIA X Server Settings',' in the search bar, which should correspond to the version number of the unzipped file 'NVIDIA-Linux-x86_64-346.46.run' above.
Cat / proc/driver/nvidia/version
To check the version of the nvcc compiler, it should correspond to the version number of the unzipped file 'cuda-linux64-rel-7.0.28-19326674.run' above
Nvcc-VI sample code
Enter the sample installation directory
Cd ~ / NVIDIA_CUDA-7.0_Samples
Compilation, which may take a short time
Make
Running
Cd bin/x86_64/linux/release./deviceQuery
Result
problem
As mentioned above, do not update after you install the system, otherwise you will not be able to enter the desktop after installing cuda, and uninstalling cuda will not work at all. However, it does not seem to affect the normal use of functions (because it is installed after the update on the server, local graphical login is not allowed to enter the desktop, but the ssh graphical connection is not affected), if you have to use the graphical interface locally, the only way is to reinstall the system. The system was reinstalled several times because of this problem. I don't know what caused it, and I certainly don't know how to solve it. Friends who know can leave a message.
These are all the contents of the article "how to install Ubuntu14.04 CUDA7". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.