

cu files that need to be compiled, not for those acting as headers that are included by another file! cu file, you’ll have to do something slightly annoying, because I haven’t found a way to automate it. * Project -> Project tree -> Edit file types & categories. Before we get into the really fun stuff (as described in my original blog post), we’ll do a couple of easy things to make life more convenient. * Add /your_location/NVIDIA_CUDA_SDK2/common/lib/linux (modify for your OS) to the Linker box. * Add /your_location/NVIDIA_CUDA_SDK2/lib to the Linker box. * Under the Search directories tab, add /your_location/NVIDIA_CUDA_SDK2/common/inc to the Compiler box (so that headers like cutil.h will be found).

* Debugger: cuda-gdb? (I haven't actually tried it yet) * Enter nvcc's installation directory (e.g., /opt/local/cuda). * Do exactly what you're told, and go to the Toolchain executables tab. Something like "NVIDIA NVCC CUDA Compiler", but perhaps with less shouting. * At the top under Selected compiler, make sure "GNU GCC Compiler" is selected, and click the Copy button. Here I’ll outline the procedure for setting up the nvcc compiler in Code::Blocks from scratch.įirst we create a new compiler within Code::Blocks. While my first post highlighted the key sticking-points I faced when I first tried to use the nvcc compiler within the Code::Blocks IDE, it was probably jumping the gun a bit. "CUDA in Code::Blocks - First things second Hi, just wanted to share this while i was on google i found it very useful.
