After I update my CUDA toolkit to CUDA 10.1
I found that nvprof will somehow delete the LD_LIBRARY_PATH environment variable which will not be passed to ld.so and cause process launch failed.
$ /usr/local/cuda-9.0/bin/nvprof printenv | grep LD_LIBRARY_PATH LD_LIBRARY_PATH=/home/pschen/llvm/thesis/build-Debug/lib:/home/pschen/llvm/latest/build/lib:/home/pschen/llvm/latest/install-Release/lib:/usr/local/cuda/lib64 $ /usr/local/cuda-10.1/bin/nvprof printenv | grep LD_LIBRARY_PATH ======== Warning: No profile data collected.
But others are just fine, like PATH.
Is there any change of nvprof usage? Or just a bug?