3 ms·
HIP is an API equivalent to CUDA. The kernel code is identical. The host code is the same API with a change from the CUDA to HIP namespace. This seems to be an
by arcanus 3y ago
HIP is an API equivalent to CUDA. The kernel code is identical. The host code is the same API with a change from the CUDA to HIP namespace. This seems to be an extremely minimal form of 'porting'.
- 0xcde4c3db 3y agoRight. I can't speak to its correctness/completeness as I've only done a quick installation and smoke test of the ROCm/HIP/MIOpen stack, but there's even a tool that automates the translation [1]. [1] https://github.com/ROCm-Developer-Tools/HIPIFY https://github.com/ROCm-Developer-Tools/HIPIFY
- tails4e 3y agoExactly. I heard recently the Lumi supercomputer team converted loads of scientific code from CUDA to Hip to run on MI250, and apparently it was pretty seamless, so a strong sign this approach works
- not_your_vase 3y agoFantastic, now I look like a fool :D But on the bright side your comment made me quite deeply interested in this.