Powered By:
Android Advice
 

CUDA

Solution to CUDA Options not Showing in Project Properties in Visual Studio

Posted by on July 28, 2012 at 3:26 pm
cuda_project_properties01

Problem If you right click on your CUDA c/c++ project in Microsoft Visual Studio there are no CUDA specific options, further more, when you compile your code no .exe is generated. (see screen shot below, there are no CUDA specific options) Cause There are no files in your solution of item-type CUDA C/C++. Solution Right [...]

CUDA – Get Error From Kernel Call

Posted by on February 21, 2012 at 11:42 pm

When a kernel encounters an error it does not notify the runtime of any errors. One has to explicitly query the last error that occurred, if any. Below is an example of how to do this. // call the kernel SomeKernel<<<n,m>>>();  // wait for the kernel to finish executing before continuing cudaThreadSynchronize(); // check for [...]

Debugging CUDA Device in Visual Studio – Installing NVIDIA Nsight

Posted by on February 20, 2012 at 1:02 pm
debugging_cuda_visual_studio_with_nsight_01

This post assumes you already have Visual Studio and CUDA installed. It is quite a process to get Nsight installed if you are not yet registered as an NVIDIA developer (registration required). Below is a list of all the steps you need to follow to get Nsight up and running in Visual Studio assuming you [...]