Comment Comment by eslaught Are you aware of HIP? It's officially supported and, for code that avoids obscure features of CUDA like inline PTX, it's pretty much a find-and-replace to get a working build:https://github.com/ROCm/HIPDon't believe me? Include this at the top of your CUDA code, build with hipcc, and see what happens:https://gitlab.com/StanfordLegion/legion/-/blob/master/runti...It's incomplete because I'm lazy but you can see most things are just a single #ifdef away in the implementation. parent eslaught 2 years ago
https://github.com/ROCm/HIP
Don't believe me? Include this at the top of your CUDA code, build with hipcc, and see what happens:
https://gitlab.com/StanfordLegion/legion/-/blob/master/runti...
It's incomplete because I'm lazy but you can see most things are just a single #ifdef away in the implementation.