Run CUDA.jl on AMD devices

Is there a way to run CUDA scripts on AMD GPUs?

No. AMD has HIP to cross-compile CUDA C, but that doesn’t work for Julia. If you want portability, it’s advised to develop your GPU application using array abstractions, at which point the code should be easy to move between platforms (CuArray, ROCArray).