diff options
Diffstat (limited to 'dev-libs/rocm-comgr')
-rw-r--r-- | dev-libs/rocm-comgr/files/rocm-comgr-5.7.1-fix-tests-rocm-path.patch | 12 | ||||
-rw-r--r-- | dev-libs/rocm-comgr/rocm-comgr-5.7.1.ebuild | 1 |
2 files changed, 13 insertions, 0 deletions
diff --git a/dev-libs/rocm-comgr/files/rocm-comgr-5.7.1-fix-tests-rocm-path.patch b/dev-libs/rocm-comgr/files/rocm-comgr-5.7.1-fix-tests-rocm-path.patch new file mode 100644 index 000000000000..30a44577b1aa --- /dev/null +++ b/dev-libs/rocm-comgr/files/rocm-comgr-5.7.1-fix-tests-rocm-path.patch @@ -0,0 +1,12 @@ +Vanilla clang requires either -nogpulib or both --rocm-path and --rocm-device-lib-path flags +--- a/test/CMakeLists.txt ++++ b/test/CMakeLists.txt +@@ -39,7 +39,7 @@ endmacro() + macro(add_test_input_bitcode name input output) + add_custom_command( + OUTPUT "${output}" +- COMMAND "$<TARGET_FILE:clang>" -c --offload-arch=gfx906 -emit-llvm -fgpu-rdc ++ COMMAND "$<TARGET_FILE:clang>" -c --offload-arch=gfx906 -emit-llvm -fgpu-rdc --rocm-path=@GENTOO_PORTAGE_EPREFIX@/usr --hip-device-lib-path=@GENTOO_PORTAGE_EPREFIX@/usr/lib/amdgcn/bitcode + --gpu-bundle-output ${ARGN} "${CMAKE_CURRENT_SOURCE_DIR}/${input}" + -o "${output}" + VERBATIM diff --git a/dev-libs/rocm-comgr/rocm-comgr-5.7.1.ebuild b/dev-libs/rocm-comgr/rocm-comgr-5.7.1.ebuild index ff181f1b4615..099a4def161a 100644 --- a/dev-libs/rocm-comgr/rocm-comgr-5.7.1.ebuild +++ b/dev-libs/rocm-comgr/rocm-comgr-5.7.1.ebuild @@ -50,6 +50,7 @@ src_prepare() { sed '/sys::path::append(HIPPath/s,"hip","",' -i src/comgr-env.cpp || die sed "/return LLVMPath;/s,LLVMPath,llvm::SmallString<128>(\"$(get_llvm_prefix ${LLVM_MAX_SLOT})\")," -i src/comgr-env.cpp || die eapply $(prefixify_ro "${FILESDIR}"/${PN}-5.0-rocm_path.patch) + eapply $(prefixify_ro "${FILESDIR}"/${PN}-5.7.1-fix-tests-rocm-path.patch) cmake_src_prepare } |