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 [...]
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 [...]
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 [...]