Compiler optimization ?


Is is possible to optimize the nvcc compiler similar to the ordinary compiler optimization (using O2, O3 flags) ?
If so, how do we do it in a visual studio project ?


I believe that standard -O3 is used. At least that is how it looks in my makefiles (from the matlab plugin)


yes O0 to O3 exist. Although I often get no difference between the settings.
IN Visual Studio right click in the process explorer on your project/solution’s *.cu file and choose properties. Navigate to custom build step and change the command line as you desire.