Bug#1099404: libamdhip64-dev: FindHIP.cmake detects incorrect HIP_CLANG_PATH
Package: libamdhip64-dev
Version: 5.7.1-5+b1
Severity: normal
X-Debbugs-Cc: cgmb@slerp.xyz
Dear Maintainer,
The FindHIP.cmake script determines the incorrect path for HIP_CLANG_PATH
when ROCM_PATH is defined. This is a problem when compiling libraries such
as PyTorch that use run_hipcc.cmake, as it results in run_hipcc.cmake failing
to invoke the compiler.
The problem is this code:
elseif(DEFINED ENV{ROCM_PATH})
set(HIP_CLANG_PATH "$ENV{ROCM_PATH}/llvm/bin")
endif()
There is a similar problem when ROCM_PATH defined as a CMake variable.
A workaround is to `export HIP_CLANG_PATH=/usr/bin`.
-- System Information:
Debian Release: trixie/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 6.12.16-amd64 (SMP w/32 CPU threads; PREEMPT)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect
Versions of packages libamdhip64-dev depends on:
ii libamd-comgr-dev 6.0+git20231212.4510c28+dfsg-3+b2
ii libamdhip64-5 5.7.1-5+b1
ii libhiprtc-builtins5 5.7.1-5+b1
ii libhsa-runtime-dev 6.1.2-3
libamdhip64-dev recommends no packages.
Versions of packages libamdhip64-dev suggests:
pn libamdhip64-doc <none>
-- no debconf information
Reply to: