[Closed] CUDA 10.1 nvprof removed LD_LIBRARY_PATH environment variable

Hello,

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?

Hi,

We could not reproduce this issue at our end. Could you please tell which Linux destro you are running on? We can check on specific setup. Also send the nvprof version you are using, you can run below command.

nvprof --version


Thanks,
Ramesh

Thanks for reply.

I’m using Debian 10 with kernel 4.19.75.

And the nvprof release version is 10.1.243 (21).


But after I copied the ‘nvprof’ elf to another directory, it worked fine.

I think it must be something wrong with my setup. After reinstalling CUDA-tookit, everything is resolved.

Should I remove this topic?

Thanks for confirming that. Yes you can close/remove the topic.