Building TF 2.12 on slightly old GPU

I am trying to build Tensorflow 2.12 gpu version from source on my personal pcs with Gcc 9.3, CUDA 11.8, cudnn 8.2, ubuntu 22.04.

On my first pc everything went fine. It had 4090 gpu.
On my second pc, which is older and has quadro m4000, it fails with the error

Generating device code failed.

In the TF code it happens in file, in the GenerateDeviceCode method. I am wondring if this is coz of my old gpu? If so should the build doc be updated?