Hi @sarja80 ,
ROCm provides HIPIFY tool which can be used to translate CUDA source code into portable HIP C++ source code automatically. Then HIP code can be run on AMD or NVIDIA GPUs.
Note, HIP is a C++ Runtime API and Kernel Language that allows developers to create portable applications for AMD and NVIDIA GPUs from single source code.
Below are some related links which might be helpful for you:
https://github.com/ROCm-Developer-Tools/HIP
https://github.com/ROCm-Developer-Tools/HIPIFY/
https://rocm.docs.amd.com/en/latest/reference/hip.html
https://rocm.docs.amd.com/en/latest/rocm.html
https://github.com/RadeonOpenCompute/ROCm
For HIPIFY tool related query, you can use it's github issue page: https://github.com/ROCm-Developer-Tools/HIPIFY/issues
Thanks.