Home > Software engineering >  How to enable CUDA in eclipse without nvidia docker container?
How to enable CUDA in eclipse without nvidia docker container?

Time:03-29

I have installed eclipse for C/C version on ubuntu 18.04, 64 bit

I have installed cuda 11.0.221. nvcc and nvcc-smi works showing that cuda compiler and device driver are both installed

I have added cuda to eclipse using eclipse->help->install new software as suggested in eclipse not showing CUDA option

Other information:

OS: ubuntu 18.04 x86_64. cuda 11.0.221.

Eclipse information: Version: 2022-03 (4.23.0) Build id: 20220310-1457 OS: Linux, v.5.4.0-74-generic, x86_64 / gtk 3.22.30 Java vendor: Ubuntu Java runtime version: 11.0.13 8-Ubuntu-0ubuntu1.18.04 Java version: 11.0.13

CodePudding user response:

If your version of Eclipse is compatible with the version of the NsightEE Eclipse plugins provided with the CUDA version you're trying to install for, then - after a successful installation - the File > New Project... dialog will have the entry C/C > CUDA C/C Project.

If it doesn't show up, then the installation has failed. I would guess that it might be a version incompatibility, and you might try using an older version of Eclipse (or a newer version of CUDA). Alternatively, perhaps the installation procedure got botched somehow.

  • Related