For some code that I want to replicate, I need to install tensorflow==1.15.4
with GPU support. Unfortunately, the pre-built binary is compiled with CUDA 10.0, but I have CUDA 10.2 on my system.
Thus, I wanted to install it from source and build it myself. I've followed these official instructions. During configure
I selected always the default value except for Do you wish to build TensorFlow with CUDA support? [y/N]:
which I answered with Y
. I used the following build command:
bazel build --config=v1 --config=cuda //tensorflow/tools/pip_package:build_pip_package
I think the --config=cuda
is redundant here, but I included it anyway to make sure.
I initially encountered an error during build, which I could resolve with this. After that, the compilation completed successfully.
To my surprise, running the following snippet after the installation indicates, that my GPU is still not available to use with tensorflow
.
import tensorflow as tf
tf.test.is_built_with_cuda() # True
tf.test.is_gpu_available() # False
Can someone can tell me what I'm doing wrong here?