NVlabs / NVBit

220 stars 20 forks source link

Can NVBit work with nvprof ? #45

Closed IceCY closed 2 years ago

IceCY commented 3 years ago

Hello,

I am trying to profile the execution time of the instrumented kernel (by NVbit) with nvprof. However, it seems NVBit callback is not invoked when using nvprof. Specifically, I use the instr_count tool for instrumenting the kernel and vectoradd for testing. Then executing the following commands:

export LD_PRELOAD=/home/ice/nvbit_release/tools/ice_play/ice_play.so
./vectoradd                 # NVBit callback is invoked 
nvprof ./vectoradd          # NVBit callback is not invoked

Yours, IceCY

ovilla commented 3 years ago

Unfortunately this is not supported.

NVBit uses the same loading "hooks" of nvprof (and other NVIDIA profiling/debug tools) so it is either one or the other, there is no way around this limitation at the moment.

IceCY commented 3 years ago

Is there any other performance monitor tool that can work with NVBit ?

ovilla commented 3 years ago

No, as far as I know unfortunately.

IceCY commented 3 years ago

Got it. Thanks very much for your response.

One last small question. I found that the cuHook example in Nvidia code sample can work with nvprof. Does it means NVBit and nvprof hook different APIs from cuHook ?

ovilla commented 2 years ago

closing issue, nvbit can't work in conjunction with nvprof.