
AMD is a hippy here
Moderators: Site Moderators, FAHC Science Team
It is a distinct runtime API from CUDA, but hipify can do a very efficient one-to-one conversion from CUDA to HIP because it supports all the same features. Unlike OpenCL where there are automatic transpilers but they are not smart enough to rewrite CUDA-isms in OpenCL efficiently.
It works fine on Nvidia but FAH does not use it.Peter_Hucker wrote: ↑Sun Apr 06, 2025 2:36 pm From the AMD website:
"The Heterogeneous-computing Interface for Portability (HIP) is a C++ runtime API and kernel language that lets you create portable applications for AMD and NVIDIA GPUs from a single source code."
https://rocm.docs.amd.com/projects/HIP/ ... index.html
Yeah, no.Peter_Hucker wrote: ↑Mon Apr 07, 2025 7:29 am Because someone like Folding could write in HIP only and not have to bother with AMD/Nvidia considerations.
Sigh, no one in their right mind in current market will choose HIP over CUDA for Nvidia.Peter_Hucker wrote: ↑Mon Apr 07, 2025 8:23 am When someone comes to write a new program, they will obviously want to write it only once. So they will obviously choose something which works on as many platforms as possible to get the most work units done. This has to be HIP. Sure, Nvidia will run OpenCL, but apparently not as efficiently.
Writing it in CUDA once and then using hipify to convert it into HIP would be better. Then if HIP goes tits up the only thing of value you lose is AMD devices. But if you write in HIP and HIP goes tits up, you lose everything.Peter_Hucker wrote: ↑Mon Apr 07, 2025 9:19 am If I was working for a project and I was writing a new program for crowd computing, I'd want to write it only once to save time and money, and get as many volunteers crunching as possible. There are lots of AMDs out there, why would I want to ignore them and get only half the work achieved? I want to use a program which will run on everything. So my choices are simply OpenCL or HIP. From what you've said, I gather HIP is more efficient than OpenCL.