Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Which IDEs have good support for programming with CUDA? [closed]

I'm starting to do programming with CUDA C. Are there any IDE that are especially good for programming with it?

I'm using a windows machine and a personal macbook :D (But I want to know what people use in linux and mac also)

like image 828
Chan Le Avatar asked Dec 27 '11 07:12

Chan Le


People also ask

Can you use C++ with CUDA?

Using the CUDA Toolkit you can accelerate your C or C++ applications by updating the computationally intensive portions of your code to run on GPUs. To accelerate your applications, you can call functions from drop-in libraries as well as develop custom applications using languages including C, C++, Fortran and Python.

What is the equivalent of general C program with CUDA?

CUDA C is essentially C/C++ with a few extensions that allow one to execute functions on the GPU using many threads in parallel.

Is C++ similar to CUDA?

CUDA provides C/C++ language extension and APIs for programming and managing GPUs. In CUDA programming, both CPUs and GPUs are used for computing. Typically, we refer to CPU and GPU system as host and device, respectively.


3 Answers

Definitely the better way to code CUDA in Windows right now is Nsight Visual Studio Edition environment. With the release of CUDA 5, comes also the Nvidia Nsight Eclipse Edition, with the same programming capabilities but with the IDE of Eclipse. Nsight Eclipse Edition is available on Linux and MacOS (but not Windows). You can try it already with the CUDA 5 release candidate : http://developer.nvidia.com/cuda/cuda-toolkit

like image 171
eLRuLL Avatar answered Sep 19 '22 13:09

eLRuLL


I've used CUDA 2.1, and VS2008, and haven't had any problems. Just make sure after you install the toolkit and the SDK, that you do the following:

  • Open "My Computer" (or explorer, or whatever) and navigate to C:\ProgramData\NVIDIA Corporation\NVIDIA CUDA SDK\common
  • Double-click on cutil_vc90.sln (assuming you're using CUDA 2.1 and VS2008); when the solution loads up, you will see a drop-down menu for the build configuration. If you are on a 64-bit platform, you need to change this from Win32 to x64.
  • Build the solution.
  • Look up top again -- you should see the build configuration menu that says "Debug". Change it to "Release" and build the solution again.
  • Close Visual Studio.
  • Back in the explorer window, find the file "paramgl_vc90.sln". Double-click it to open that solution.
  • Repeat the same configuration setup and build process as described above, then close Visual Studio.

At this point, you should be able to compile the SDK projects; if you are using VS2008, make sure you open the solutions ending in _vc90.sln. Again, if you're on x64, you need to also make sure to set the build platform to "x64" in that drop-down menu.

If you get this far, and you're ready to write your own projects, check out the "template" project that comes with the SDK. You should be able to make a copy of that and use it for your own stuff, with the compiler settings (for CUDA, that is) already set up.

there is a thread on nvidia for this as well http://forums.nvidia.com/index.php?showtopic=91057

like image 38
codemaster Avatar answered Sep 21 '22 13:09

codemaster


In windows you can use NVIDIA Parallel Nsight Visual Studio solution. I think there is no better alternative for GPU development on windows. And Linux + GPU development == SUX. There are some attempts to make some Linux distro which would be GPU-development friendly, but given that these are first steps to this goal - I don't expect too much from this product. (Also they have broken links)

like image 39
Agnius Vasiliauskas Avatar answered Sep 21 '22 13:09

Agnius Vasiliauskas