I have no experience of using it so I might be wrong but AMD has ROCm which has something called HIP that should be comparable to CUDA. I think it also has a way to automatically translate CUDA calls into HIP as well so it should work without the need to modify your code.
AMD "has" ROCm just like Intel "has" AVX-512
`I think it also has a way to automatically translate CUDA calls`
I suspect the thing you're referring to is ZLUDA[0], it allows you to run CUDA code on a range of non NVidia hardware (for some value of "run").
it's mostly about AI training at this point. the software for this only supports CUDA well.
Consumer card ROCm support is straight up garbage. CUDA support project was also killed.
AMD doesn't care about consumers anymore either. All the money in AI.