Eclipse CUDA Plugin: Centos/RedHat Installation Guide
Installing Eclipse, the CDT tools, and NVCC.
Before installing the plugin, make sure your Eclipse environment is setup correctly. You need the Eclipse SDK, the C/C++ development tools (Eclipse-CDT) and the NVIDIA CUDA toolkit. These tools are not available in the Centos/RedHat repositories so we will need to install them manually.There are two versions of the Eclipse plugin, once for Eclipse 3.5.x Galileo and one for Eclipse 3.6.x Helios. Both versions of Eclipse should work, however if you are using Galileo the plugin will not work until you update to 3.5.2. To do so (after installation) select Help -> Check for Updates and follow the onscreen prompts.
Once the download is complete, extract the archive and start Eclipse. To do so from the command line, use the following:
"tar -xzf eclipse-SDK-3.5-linux-gtk-x86_64.tar.gz"
"cd eclipse"
"eclipse"
"cd eclipse"
"eclipse"
Once this is complete, we need to install the CDT tools.
- Select Help -> Install New Software
- Select Add, then add the following repo: http://download.eclipse.org/tools/cdt/releases/galileo
- Once the new repo has been added, select it from the dropdown menu.
- You'll need to select the main features as well as the debuggin tools under the optional features dropdown.
- Once the packages are selected, hit next and follow the onscreen prompts.
- You don't need to restart Eclipse yet.
Next we should install the CUDA toolkit from NVIDIA. It is available here:http://developer.nvidia.com/object/cuda_download.html. Once downloaded run (in a terminal):
"chmod +x cudatoolkit_3.1_linux_64_rhel5.4.run"
"su -c './cudatoolkit_3.1_linux_64_rhel5.4.run'"
"su -c './cudatoolkit_3.1_linux_64_rhel5.4.run'"
Finally we can install the CUDA plugin itself.
- Select Help -> Install New Software
- Choose 'Add', and add the appropraite repo:
- For Eclipse 3.5.2 Galileo, use http://ydl.net/eclipse_cuda_plugin/galileo/.
- For Eclipse 3.6.1 Helios, use http://ydl.net/eclipse_cuda_plugin/helios/.
- Back in the Plugin manager, select the new repo from the dropdown menu.
- Select the cuda plugin, hit next and follow the prompts to complete the install.
- Restart Eclipse.




