How to build NVidia binaries using CMake's new HIP language?

I’ve updated my code recently to make use of the “HIP language”, introduced in 3.21.

After some initial success on a host with an AMD card, I was now trying to build some code on a host that has an NVidia card. And had to realise that I don’t know how to do that. What environment/cache variable can one use to tell the build that it should use HIP_PLATFORM=nvidia? Unfortunately looking through the CMake source code I didn’t find any hint about this. :frowning:

Cheers,
Attila

I believe you’re correct, this isn’t working properly yet. I’ll let you know when we have a MR up so you can try it out if you’re interested.

1 Like

Sounds good! Yes, please let me know, I’ll give it a spin.