I am using a Linux remote work station on my Winows PC and want to run some code that uses tensorflow. However, tensorflow is not able to find and connect to my available GPUs. I’ve found different tests online to check whether or not my GPUs were available for tensorflow and these are the outputs I got:
print(“GPU Available:”, tf.config.list_physical_devices(‘GPU’))
print(“Num GPUs Available:”, len(tf.config.list_physical_devices(‘GPU’)))
0
print(“TensorFlow GPU:”, tf.test.is_built_with_cuda())
True
modified by moderator_gpu_available()
False
modified by moderator_gpu_available(cuda_only=True)
False
tf.config.list_logical_devices(‘GPU’)
tf.config.experimental.list_physical_devices(‘GPU’)
tf.config.list_physical_devices()
[PhysicalDevice(name=‘/physical_device:CPU:0’, device_type=‘CPU’)]
tf.config.experimental.list_physical_devices(‘XLA_GPU’)
When trying to run the code that uses tensorflow, this is the error I run into:
Cannot assign a device for operation model/zeros_like: {{node model/zeros_like}} was explicitly assigned to /device:GPU:0 but available devices are [ /job:localhost/replica:0/task:0/device:CPU:0 ]. Make sure the device specification refers to a valid device. [[model/zeros_like]]