Tensorflow stops working with my GPU when I restart my PC

I have created a conda environment and installed tensorflow-gpu using:

conda install -c anaconda tensorflow-gpu

When I then run my program using the said conda environment it works perfectly. However every time I put my computer of, then the next time I check if its picking up my GPU I get the following errors

2023-05-17 14:39:30.489082: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'cudart64_110.dll'; dlerror: cudart64_110.dll not found
2023-05-17 14:39:30.489465: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.
2023-05-17 14:39:33.663179: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'cudart64_110.dll'; dlerror: cudart64_110.dll not found
2023-05-17 14:39:33.665053: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'cublas64_11.dll'; dlerror: cublas64_11.dll not found
2023-05-17 14:39:33.667174: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'cublasLt64_11.dll'; dlerror: cublasLt64_11.dll not found
2023-05-17 14:39:33.669143: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'cufft64_10.dll'; dlerror: cufft64_10.dll not found
2023-05-17 14:39:33.671077: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'curand64_10.dll'; dlerror: curand64_10.dll not found
2023-05-17 14:39:33.673018: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'cusolver64_11.dll'; dlerror: cusolver64_11.dll not found
2023-05-17 14:39:33.675509: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'cusparse64_11.dll'; dlerror: cusparse64_11.dll not found
2023-05-17 14:39:33.677622: W tensorflow/core/common_runtime/gpu/gpu_device.cc:1835] Cannot dlopen some GPU libraries. Please make sure the missing libraries mentioned above are installed properly if you would like to use GPU. Follow the guide at https://www.tensorflow.org/install/gpu for how to download and setup the required libraries for your platform.
Skipping registering GPU devices...
[]

I then have to try and recreate the environment from scratch every time and the problem still happens the next time the PC is switched of. I have checked the ennvironment folder and those DLL files are in there. Any help would be appreciated.

The code I run when the errors show up is:

print(tensorflow.config.list_physical_devices('GPU'))

@A.G_OSMAN,

Welcome to The Tensorflow Forum!

tensorflow-gpu has been removed. Please install tensorflow instead. The tensorflow package supports GPU accelerated operations via Nvidia CUDA. For more details please refer to tensorflow-gpu · PyPI

Miniconda is the recommended approach for installing Tensorflow with GPU support. It creates a separate environment to avoid changing any installed software in your system. This is also the easiest way to install the required software especially for the GPU setup.

For more details please refer to the step by step instructions here Install TensorFlow with pip

Please try as suggested above and let us know if you have any issues?

Thank you!

@chunduriv
I followed the installation guide for native windows and it started working fine. However this same error has started showing up again now. When I activate the environment and check if it is picking up my gpu it works fine, but for some reason in my pycharm project I’m getting those above errors again even though it was fine at first. I checked multiple times and it is using the correct environment so I’m very confused on what could be wrong