I am trying to build tensorflow from source with gpu support, following the official instructions: https://www.tensorflow.org/install/source
I run
python configure.py
and eventually I am asked to provide the path to my CUDA libraries. My CUDA installation is installed via conda and therefore resides at
~/miniconda3/lib/python3.9/site-packages/tensorflow/include/tensorflow/core/platform/cuda.h
so I enter
~/miniconda3/lib/python3.9/site-packages/tensorflow/include/tensorflow/core/platform
I get the following error:
Traceback (most recent call last):
File "somepath/tensorflow/third_party/gpus/find_cuda_config.py", line 647, in <module>
main()
File "somepath/tensorflow/third_party/gpus/find_cuda_config.py", line 639, in main
for key, value in sorted(find_cuda_config().items()):
File "somepath/tensorflow/third_party/gpus/find_cuda_config.py", line 577, in find_cuda_config
result.update(_find_cuda_config(cuda_paths, cuda_version))
File "somepath/tensorflow/third_party/gpus/find_cuda_config.py", line 255, in _find_cuda_config
cuda_header_path, header_version = _find_header(base_paths, "cuda.h",
File "somepath/tensorflow/third_party/gpus/find_cuda_config.py", line 243, in _find_header
return _find_versioned_file(base_paths, _header_paths(), header_name,
File "somepath/tensorflow/third_party/gpus/find_cuda_config.py", line 233, in _find_versioned_file
actual_version = get_version(file)
File "somepath/tensorflow/third_party/gpus/find_cuda_config.py", line 250, in get_header_version
version = int(_get_header_version(path, "CUDA_VERSION"))
ValueError: invalid literal for int() with base 10: ''
My cudatoolkit version is 11.3.1, which I entered when prompted for CUDA SDK version earlier during the configuration process. (I also tried entering just 11)
Thanks in advance!