Issue
I have cudatoolkit and cudnn packages installed in my anaconda environment but tensorflow does not recognize my GPU device. In some web sources I have seen that you can use Cuda by only installing necessary anaconda packages. So, what I would like to know is that do I have to install NVIDIA Cuda from its website to be able to use it or would it lead to conflicts?
Solution
I think something wrong with your environment variables. I can recommend these steps:
Create a new environment
Install required packages:
conda install -c conda-forge cudatoolkit=11.2 cudnn=8.1.0 python3 -m pip install tensorflow
Verify the installation, first import tensorflow
python3 -c "import tensorflow as tf;
Then check the GPU
print(tf.config.list_physical_devices('GPU'))"
This should be work `
Answered By - Emrejik
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.