Nvprof warns "the path to CUPTI and CUDA Injection libraries are not set in LD_LIBRARY_PATH"

my guess would be that this is due to the use of sudo. sudo does not necessarily pick up the PATH and LD_LIBRARY_PATH variables that you expect.

1 Like