CUDA profiler with Matlab

Is it possible to use the CUDA profiler with CUDA code that is called by Matlab mex-files? If it is not possible, I have to make two versions of the code, one without Matlab mex and one with Matlab mex…

under linux you just call matlab with the -r option to call you matlab prog. under windows: no idea

under linux you just call matlab with the -r option to call you matlab prog. under windows: no idea