Sept
Sept

Reputation: 181

Cuda profiling speed concern

When I build an executable using nvcc, I can, by default, profile it using nvprof or Nvidia visual profiler GUI. My concern is that, even when I am not actually profiling it, my executable may not be running optimally, because it is 'able' to record or emit information about profiling. So, I am feeling like by default, executables are built with profiling enabled.

Strange that this question was not asked before, the answer is not obvious to me. Is there a compiler option to disable profiling, especially for release mode? Or is profiling completely free?

Upvotes: 0

Views: 97

Answers (1)

Robert Crovella
Robert Crovella

Reputation: 151879

Is there a compiler option to disable profiling, especially for release mode? Or is profiling completely free?

There is no compiler option to disable profiling. It is completely free.

Upvotes: 3

Related Questions