Open ye-luo opened 2 years ago
Have the exact same problem with hip-config.cmake for target hip::device.
@ye-luo Apologies for the lack of response. Can you please test with latest ROCm 6.0.2 (HIP 6.0.32831)? If resolved, please close ticket. Thanks!
ROCM 4.5 and hip-lang package assume hip is installed as
<ROCM_ROOT>/hip
and tries to access paths outside<ROCM_ROOT>/hip
and inside`<ROCM_ROOT>
for example https://github.com/ROCm-Developer-Tools/HIP/blob/cddb52549b4f4fce9165cac8b2ccf25173ba3157/hip-lang-config.cmake.in#L108reproducer
When using AOMP where hip is installed inside
/usr/lib/aomp_14.0-0
issue 1. When looking for __clang_cuda_math.h, the path should be derived on where clang is not where hip libraries are issue 2. Should not add path blindly
${_IMPORT_PREFIX}/../include
without verification.