Configure the CUDA environment in the Fedora15 System

Source: Internet
Author: User
To configure the CUDA environment in the Fedora15 system, you only need to install the driver, toolkit, and SDK. You can check the system that supports CUDA, and then check whether your system supports it. Use lspci | grep-invidia to view the system attributes of the Linux release using uname-m & amp; ca

To configure the CUDA environment in the 15 ora 15 system, you only need to install driver, toolkit, and SDK.

You can check the system that supports CUDA, and then check whether your system supports it.

Use lspci | grep-I nvidia to view the system attributes of the Linux release.

Use uname-m & cat/etc/* release to determine the release and version number of the running system

Use gcc -- version to verify whether GCC is correctly installed. It mainly depends on whether the GCC version supports CUDA. This can be seen only when the CUDA program is running, when installing CUDA 4.1, I found that GCC must be earlier than version 4.6, so I had to reinstall a lower version of GCC.

Then you can start the installation.

1. Install the NVIDIA driver devdriver_4.20.linux_32_285.05.23.run, see the http://www.linuxidc.com/Linux/2011-12/49875.htm.

After the installation is complete, use nvidia-xconfig-query-gpu-info to verify whether the driver is successfully installed. If the installation is successful, the video card information is displayed.

2. Install toolkit and SDK

# Sh cudatoolkit_4.1.21_linxu_32_fedora14.run (select the installation path in the middle, which is/usr/local/cuda by default)
# Sh gpucomputingsdk_4.1.21_linux.run (select the installation path in the middle. I use the custom:/home/tt/local/cudasdk)

3. Configure Environment Variables
# Vim/etc/profile
Add two lines at the end of the file
PATH = $ PATH:/usr/local/cuda (CUDA installation PATH)
LD_LIBRARY_PATH = $ LA_LIBRARY_PATH:/usr/local/cuda/lib64 (my 64-bit system, if it is a 32-bit system, the last path is/usr/local/cuda/lib)
Save and exit profile
# Source/etc/profile

4. log out and log on again. Open the folder where the SDK is located, and then make the changes.

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.