AMD has been working on making it easier for developers to port codebases from NVIDIA’s CUDA API to run on their HIP/ROCm stack. They have recently made progress in achieving binary compatibility, allowing many CUDA applications to run on ROCm without the need for source code modifications. This “skunkworks” project, known as ZLUDA, was initially developed for Intel graphics but has now been adapted for use on AMD GPUs. While not 100% fail-safe, ZLUDA has proven to be surprisingly capable and can run CUDA-enabled software, including proprietary renderers. The open-source code is dual-licensed under Apache 2.0 or MIT, and the implementation leverages the Rust programming language.
https://www.phoronix.com/review/radeon-cuda-zluda