Will Cuda 21.0 work on Fedora 29?


I am trying to get pytorch run with CUDA on my new computer.
I have an NIVIDIA geefore RTX 4050.

I have installed the newest version of Fedora, 39.

Pytorch supports CUDA 12.1
While trying to install CUDA 12.1 (which has proven a huge challenge).

Do you know any good ways (installation guide) that would make installation of CUDA 12.1 on Fedora 39 less of a pain?

Thank you