https://github.com/Kitware/CMake
Raw File
Tip revision: 25d2850c190ba915a7527a29dda6efe61be901f0 authored by Brad King on 21 March 2024, 13:32:22 UTC
CMake 3.29.0
Tip revision: 25d2850
env_debian12_hip_radeon.sh
export HIPCXX=/usr/bin/clang++-15
export HIPFLAGS='--rocm-path=/usr --rocm-device-lib-path=/usr/lib/x86_64-linux-gnu/amdgcn/bitcode'

# FIXME(debian): Clang is supposed to automatically parse a HIP version file.
# The ROCm installer places it at '$prefix/bin/.hipVersion', but the package
# on Debian moves it to '$prefix/share/hip/version'.  llvm-toolchain package
# version 15.0.7-4 has 'debian/patches/amdgpu/usr-search-paths.patch' for this,
# but Debian 12 currently provides version 15.0.6-4 without the patch.
export HIPFLAGS="$HIPFLAGS --hip-version=5.2"
back to top