CUDA visual profiler

Hi I am a newbie to CUDA. Can anyone point me to how produce a .cpj for profiling. Do I have to set a compiler flag in my visual studia environment to produce this file? I looked in the compiler manual only saw -pg option for Linux.

Thanks,
-Harsha

You just create a new project in the profiler, specify the CUDA executable you just built and have the profiler run it. Then, everything happens automatically. You can use any release or debug build you have.