I had an old conda virtual environment with pytorch and cudatoolkit 10.1. I was able to run the code and I would always get the following message at the beginning:
I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library libcudart.so.10.1
However, I created a new virtual environment with cudatoolkit 11.0, but now this message does not run at the beginning of the code (nor do I get an error message saying it failed to find the file), and the code crashes eventually when it tries to use the gpu. How do I make sure that it loads GPU support correctly?