Compile tensorflow 2.18 or higher with CUDA 12.2

I’ve been using TensorFlow for a long time. Recently, I migrated to TensorFlow 2.18 and the Keras 3 API.

However, I was recently forced to use CUDA 12.2. Is it even possible to compile the new version of TensorFlow with an older CUDA version? So far, I’ve failed to compile it and have been getting some very strange errors.

Hi @Daniel_Wiczew , Welcome to the TensorFlow Forum!
Compiling new versions of TensorFlow with older cuda version is not officially supported configuration, and it leads to the errors you’re experincing. Refer to the official TensorFlow Build from source document for detailed instructions and the latest tested build configurations. Thank you!