GPU High Performance Computing (1)-CUDA installation in Ubuntu

Source: Internet
Author: User
1. Does your computer and video card support GPU operations? 1. Check if you have a nvidia graphics card that supports GPU operations: lspci | grepVGA to see if your nvidia graphics card model is in the list of this page. If so, OK. 2. Check whether your cpu is supported. Currently, CUDA Development Environment 2.3 requires the cpu Of The X86 architecture. The uname-m output result is x86 or x86_64, which is supported. 2. Three Steps for installation: Install the driver and install CUD

1. Does your computer and video card support GPU operations?

1. Check if you have a nvidia graphics card that supports GPU operations:

Lspci | grep VGA

Check whether your nvidia graphics card model is in the list of this page. If so, OK.

2. Check whether your cpu is supported. Currently, CUDA Development Environment 2.3 requires the cpu Of The X86 architecture.

Uname-m

The output result is x86 or x86_64, which is supported.

Ii. Installation Process

Step 3: Install the driver, CUDA ToolKit, and SDK.

Please download these three items here. (Advance steps: This step is only because CUDA 2.3 does not currently support gcc 4.4, while Ubuntu9.10 is installed by default on the gcc-4.4, we reduce gcc to 4.3. If it is not 9.10, You can omit it.

Cd/usr/bin

Sudo rm gcc

Sudo ln-s gcc-4.3 gcc

This is the simplest and most effective method I have seen. You can also perform this step after a problem occurs, or follow the method mentioned in the link at the end of my article .)

1. Install the CUDA driver

Switch to the console: Ctrl + Alt + Fn (n is not equal to 7)

Disable the running of running the command "sudo/etc/init. d/TPD stop ".

Uninstall the original driver: nvidia-installer -- uninstall

Install the cuda driver:

Cd [directory for storing driver installation files]

Chmod + x cudadriver_2.3_linux_64_190.18.run

Sudo./cudadriver_2.3_linux_64_190.18.run

It may prompt you that the gcc version does not match, whether to give up, choose No, continue to compile, there should be No problem.

After the installation is complete, you should be able to access the graphic interface with sudo TPD.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.