You write in HIP C++ language and run them on either NVIDIA or AMD platforms. This way you get cross-platform code and are not stuck with Nvidia.
Use HIPify tool to automatically convert existing sources from CUDA to HIP.
It's been around for many years - but the fact that so many people still don't know about it - speaks for the sad state of AMD communication.
https://docs.amd.com/bundle/HIP-Programming-Guide-v5.3/page/...
They should have shipped a proper header set instead of hipify.