commit:     f2f7a9615fad47260a47d6fc398acdb896f6cd7a
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Apr 22 03:20:57 2024 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon Apr 22 03:40:17 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f2f7a961

sys-libs/libomp: Disable GPU autodetection in 17.0.6 too

Closes: https://bugs.gentoo.org/928149
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 sys-libs/libomp/libomp-17.0.6.ebuild | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/sys-libs/libomp/libomp-17.0.6.ebuild 
b/sys-libs/libomp/libomp-17.0.6.ebuild
index 82c6efffb251..a2075dcce87c 100644
--- a/sys-libs/libomp/libomp-17.0.6.ebuild
+++ b/sys-libs/libomp/libomp-17.0.6.ebuild
@@ -113,8 +113,6 @@ multilib_src_configure() {
                -DLIBOMP_INSTALL_ALIASES=OFF
                # disable unnecessary hack copying stuff back to srcdir
                -DLIBOMP_COPY_EXPORTS=OFF
-               # prevent trying to access the GPU
-               -DLIBOMPTARGET_AMDGPU_ARCH=LIBOMPTARGET_AMDGPU_ARCH-NOTFOUND
        )
 
        if [[ ${build_omptarget} == ON ]]; then
@@ -122,6 +120,10 @@ multilib_src_configure() {
                        mycmakeargs+=(
                                -DLIBOMPTARGET_BUILD_AMDGPU_PLUGIN=$(usex 
llvm_targets_AMDGPU)
                                -DLIBOMPTARGET_BUILD_CUDA_PLUGIN=$(usex 
llvm_targets_NVPTX)
+
+                               # prevent trying to access the GPU
+                               
-DLIBOMPTARGET_AMDGPU_ARCH=LIBOMPTARGET_AMDGPU_ARCH-NOTFOUND
+                               
-DLIBOMPTARGET_NVPTX_ARCH=LIBOMPTARGET_NVPTX_ARCH-NOTFOUND
                        )
                else
                        mycmakeargs+=(

Reply via email to