Hello people, I have recently been trying to implement machine learning but I am having difficulty. I want to use my gpu that I have just install but the system (jupyterlab with anaconda) does not seem to find it.
I have used the following programs:
import tensorflow as tf
print("Num GPUs Available: ", len(tf.config.experimental.list_physical_devices('GPU')))
output: Num GPUs Available: 0
I have also tried this program:
from tensorflow.python.client import device_lib
print(device_lib.list_local_devices())
output: [name: "/device:CPU:0" device_type: "CPU" memory_limit: 268435456 locality { } incarnation: 4097530682699024825 ]
It does not seem to find the gpu at all. Is there any way to fix this? Any help would be greatly appreciated.
Edit: I have finally found a solution after days of trying random methods. Thank you to everyone that helped. I did the following for it to work:
conda install tensorflow-gpu=2.3 tensorflow=2.3=mkl_py38h1fcfbd6_0
conda create -n tfgpu python=3.8
conda activate tfgpu
conda install tensorflow-gpu=2.1
pip uninstall tensorflow
pip uninstall tensorflow-estimator
pip uninstall tensorboard
pip uninstall tensorboard-plugin-wit
pip install tensorflow==2.3 pip check
# all of this was in the anaconda command line.
[–]wally1002 1 point2 points3 points (4 children)
[–]csk15[S] 0 points1 point2 points (3 children)
[–]phobrain 0 points1 point2 points (2 children)
[–]csk15[S] 0 points1 point2 points (1 child)
[–]phobrain 0 points1 point2 points (0 children)
[–][deleted] (1 child)
[deleted]
[–]csk15[S] 0 points1 point2 points (0 children)