Eclipse CUDA Plugin: Centos Installation Guide

Installing Eclipse, the CDT tools, and NVCC.

As of version 5.05 Debian Lenny no longer includes the Eclipse IDE, you can either change your system to unstable (sid) and follow the Ubuntu Guide, or do the following to install manually.

Before running Eclipse, you will need to have java installed. You can either download and install the JDK from Oracle/Sun available here or use openjdk from the debian repos. Openjdk can be installed by running the following from the command line:

su -c 'apt-get install openjdk-6-jdk'

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, Select Help -> Check for Updates and follow the onscreen prompts.
Once Eclipse is installed and up to date, we just need to install the CDT tools.
  1. Select Help -> Install New Software
  2. Select Add, then add the appropriate CDT repo:
  3. Once the new repo has been added, select it from the dropdown menu.
  4. You'll need to select the main features as well as the debuggin tools under the optional features dropdown.
  5. Once the packages are selected, hit next and follow the onscreen prompts.
  6. 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, and we want the Ubuntu version. Once downloaded run (in a terminal):

"chmod +x cudatoolkit_*.run"
"su -c './cudatoolkit_*.run'"

Finally we can install the CUDA plugin itself.
  1. Select Help -> Install New Software
  2. Choose 'Add', and add one of the following repos:
  3. Back in the Plugin manager, select the new repo from the dropdown menu.
  4. Select the cuda plugin, hit next and follow the prompts to complete the install.
  5. Restart Eclipse.



 
          Copyright ® 1999-2010. Fixstars Corporation. All rights reserved.
YDL.net Fixstars Corporation