CUDA and Linux work just fine together. Nvidia GPU drivers and Linux (especially mobile Linux) are a bigger problem, but on desktop Nvidia works fine (just don't enable Wayland) and on mobile it works fine as long as you have an integrated GPU to actually render to your screen.
I don't think I've ever had trouble getting CUDA to run. It seems to be the only thing Nvidia cares about making work reliably on Linux.
I don't think I've ever had trouble getting CUDA to run. It seems to be the only thing Nvidia cares about making work reliably on Linux.