hip::host and hip::device is only defined in hip-config.cmake. Keeping FindHIP introduces cmake bugs that are difficult to trace. For example, rocFFT in Prefix does not include the correct hip-config.cmake but is confused by FindHIP.cmake. Dropping FindHIP was a serious consideration after the endless debugging of the nondeterministic behaviors caused by having both hip-config and FindHIP. https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5223e983a0810e46633362ff4dbad6a194208819 I suggest the way forward is to understand the function of hip_add_executable() cmake function, patch torch/roctracer or provide it in hip-config.cmake. Reproducible: Always
I could build roctracer-5.7.1-r1 with hip-5.7.1-r1 (without FindHIP.cmake). roctracer is no longer a blocker. FindHIP is only for torch. It is torch that should be fixed.