summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSv. Lockal <lockalsash@gmail.com>2024-01-12 14:35:46 +0000
committerSam James <sam@gentoo.org>2024-03-08 19:22:04 +0000
commitd00e98ab2ba2745e6d36b756d7c87de47dccb796 (patch)
treea0f2eb1d8c3bd648a98087b829cbaee70c49af96 /dev-util/hip
parentdev-util/hip: install FindHIP.cmake: it contains hip_add_executable and other... (diff)
downloadgentoo-d00e98ab2ba2745e6d36b756d7c87de47dccb796.tar.gz
gentoo-d00e98ab2ba2745e6d36b756d7c87de47dccb796.tar.bz2
gentoo-d00e98ab2ba2745e6d36b756d7c87de47dccb796.zip
dev-util/hip: add rocm_version.h header (required by some caffe2/fbgemm/rocprofiler)
Signed-off-by: Sv. Lockal <lockalsash@gmail.com> Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-util/hip')
-rw-r--r--dev-util/hip/hip-5.7.1-r2.ebuild11
1 files changed, 11 insertions, 0 deletions
diff --git a/dev-util/hip/hip-5.7.1-r2.ebuild b/dev-util/hip/hip-5.7.1-r2.ebuild
index a2ec876aaf25..f91ef2a7083c 100644
--- a/dev-util/hip/hip-5.7.1-r2.ebuild
+++ b/dev-util/hip/hip-5.7.1-r2.ebuild
@@ -142,6 +142,17 @@ src_test() {
src_install() {
cmake_src_install
+ # add version file that is required by some libraries
+ mkdir "${ED}"/usr/include/rocm-core || die
+ cat <<EOF > "${ED}"/usr/include/rocm-core/rocm_version.h || die
+#pragma once
+#define ROCM_VERSION_MAJOR $(ver_cut 1)
+#define ROCM_VERSION_MINOR $(ver_cut 2)
+#define ROCM_VERSION_PATCH $(ver_cut 3)
+#define ROCM_BUILD_INFO "$(ver_cut 1-3).0-9999-unknown"
+EOF
+ dosym -r /usr/include/rocm-core/rocm_version.h /usr/include/rocm_version.h
+
rm "${ED}/usr/include/hip/hcc_detail" || die
# files already installed by hipcc, which is a build dep