I am currently encountering an issue with environment variables.
So I had to reinstall CUDA and had to update from 11.0 to 11.1.
I changed my PATH and LD_LIBRARY_PATH variables accordingly (replacing
/usr/local/cuda-11.1/bin in PATH and
/usr/local/cuda-11.1/lib64 in LD_LIBRARY_PATH). My python and ipython import tensorflow correctly, and I get a success message regarding GPU usage.
However, in jupyter, when importing tensorflow in a notebook, I get the following messages
W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libcudart.so.11.0'; dlerror: libcudart.so.11.0: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /usr/local/cuda-11.0/lib64
And when I check the environment variables within my notebook, I see that the old values were kept (i.e. the python kernel is seeking the
/usr/local/cuda-11.0 folder which does not exist anymore).
As a matter of proof, when I copied the
/usr/local/cuda-11.1 folder and named it
/usr/local/cuda-11.0, my notebook imported tensorflow correctly.
I do not know how to force my python kernel to update the environment variables values (changing them within the notebook didn’t help).
Thank you in advance!