I am trying to instrument generated code/executable for use by gprof/gcov by adding “-pg” to my compiler flags.
But unfortunately i do not find any such instrumented file getting generated. Can anyone explain me or suggest some other alternative ?
To the best of my knowledge, nvcc doesn’t offer device code instrumentation for the purpose of coverage analysis. In fact the only tool chain I know that offers that feature is gcc.
You could obviously do your own instrumentation for limited amounts of device code. What is driving the need for coverage analysis in your use case?