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.