I’ve just installed the CUDA 4.0 Toolkit, and also the CUDA plugin for Eclipse Helios on top of an AMD64 Ubuntu 10.10 machine. I have been able to compile successfully all of the NVIDIA GPU Computing SDK examples, so my build system looks fine. But I cannot make the Hello World CUDA template of the plugin to compile on Eclipse, it doesn’t seem to find the runtime libraries, as shown below:
**** Build of configuration Release for project holamundo ****
make all
cc holamundo.o -o holamundo
holamundo.o: In function `__sti____cudaRegisterAll_44_tmpxft_000022c4_00000000_4_holamundo_cpp1_ii_main()':
tmpxft_000022c4_00000000-1_holamundo.cudafe1.cpp:(.text+0xa): undefined reference to `__cudaRegisterFatBinary'
holamundo.o: In function `main':
tmpxft_000022c4_00000000-1_holamundo.cudafe1.cpp:(.text+0x7d): undefined reference to `cudaMalloc'
tmpxft_000022c4_00000000-1_holamundo.cudafe1.cpp:(.text+0xca): undefined reference to `cudaConfigureCall'
tmpxft_000022c4_00000000-1_holamundo.cudafe1.cpp:(.text+0xe9): undefined reference to `cudaMemcpy'
tmpxft_000022c4_00000000-1_holamundo.cudafe1.cpp:(.text+0x256): undefined reference to `cudaFree'
tmpxft_000022c4_00000000-1_holamundo.cudafe1.cpp:(.text+0x273): undefined reference to `HelloWorld_kernel(int, char*)'
holamundo.o: In function `__cudaUnregisterBinaryUtil()':
tmpxft_000022c4_00000000-1_holamundo.cudafe1.cpp:(.text+0x38): undefined reference to `__cudaUnregisterFatBinary'
holamundo.o:(.eh_frame+0x12): undefined reference to `__gxx_personality_v0'
collect2: ld returned 1 exit status
make: *** [holamundo] Error 1
Has anyone already tried to use the plugin with version 4.0 of the CUDA toolkit? It looks as if it was designed only for versions 3.x compatibility, although I have not tested this.
Please note that there is now Nsight Eclipse Edition that is a part of CUDA Toolkit. It supports all new CUDA Toolkit 5.0 features.