I would like to ask how can we debug cuda kernel that is called from a mexfunction with VS 2010 and Nsight. I followed the instructions in http://http.developer.nvidia.com/NsightVisualStudio/2.2/Documentation/UserGuide/HTML/Content/Attach_CUDA_to_Process.htm but the attach button is not enabled in order to attach matlab.
PS: Win 7 64x, Matlab 2011 x64, VS 2010, CUDA SDK 5.5 64x, Nsight 3.1 64x, GForce 9600.
NSIGHT_CUDA_DEBUGGER = 1
via Advance System Settings -> Environmental Variables and add the aforementioned variable both in User and System variables in the two panels.Tested on Matlab 2011a 64x and VS 2010 with SP1.