Error building tensorflow.dll with CUDA enabled

Tensorflow r2.10
CUDA v11.2
cuDNN 8.1
MSVC 2019
Bazel 5.1.1
Python 3.9.10
MSYS2 64bit
NVIDIA RTX A3000

missing cudnn_frontend_EngineFallbackList.h

 Compiling tensorflow/stream_executor/cuda/cuda_dnn.cc failed: (Exit 2): python.exe failed: error executing command
...
aakz3rh4\execroot\org_tensorflow\bazel-out\x64_windows-opt-exec-50AE0418\bin\external\cudnn_frontend_archive\_virtual_includes\cudnn_frontend\third_party\cudnn_frontend\include\cudnn_frontend_Heuristics.h(34): fatal error C1083: Cannot open include file: 'cudnn_frontend_EngineFallbackList.h': No such file or directory
Target //tensorflow:tensorflow.dll failed to build
INFO: Elapsed time: 1109.945s, Critical Path: 209.14s
INFO: 6782 processes: 366 internal, 6416 local.
FAILED: Build did NOT complete successfully

build command bazel build --config=opt --config=cuda --define=no_tensorflow_py_deps=true //tensorflow:tensorflow.dll

2 Likes

Hi @Karma5, Apologies for the delayed response!
This issue is old, the information might be outdated. Please try the latest TensorFlow version and hardware to see if that resolves the problem. Kindly refer to this document for tested build configurations. Also refer to this similar issue. Thanks!

Hello, so the issue could be resolved by the following 2 steps:
–> Check your python and tensorflow version, by the image sent, it looks very old, so make sure to update them

–> Use WSL (Windows Linux Subsystem, a simple google search gives all the steps required or use gemini for help with configs), as CUDA works well / only works with LINUX subsystems from some time.