From ad15cca3b2cff24aa55ef47bb784432d148cc3b2 Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Sat, 10 Feb 2024 05:45:08 +0000 Subject: [PATCH] Squashed merge of upstream-snapshot branch --- libomp.spec | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/libomp.spec b/libomp.spec index a85ccd4..3e51eed 100644 --- a/libomp.spec +++ b/libomp.spec @@ -18,6 +18,8 @@ %global so_suffix %{maj_ver}%{llvm_snapshot_version_suffix} %endif +%global libomp_srcdir openmp-%{libomp_version}%{?rc_ver:rc%{rc_ver}}.src + %global toolchain clang # Opt out of https://fedoraproject.org/wiki/Changes/fno-omit-frame-pointer @@ -123,14 +125,18 @@ rm -rf %{buildroot}%{_libdir}/libarcher_static.a %endif %ifnarch %{ix86} %{arm} # libomptarget is not supported on 32-bit systems. +# s390x does not support the offloading plugins. +%ifnarch s390x %{_libdir}/libomptarget.rtl.amdgpu.so.%{so_suffix} %{_libdir}/libomptarget.rtl.cuda.so.%{so_suffix} %{_libdir}/libomptarget.rtl.%{libomp_arch}.so.%{so_suffix} +%endif %{_libdir}/libomptarget.so.%{so_suffix} %endif %files devel %{_prefix}/lib/clang/%{maj_ver}/include/omp.h +%{_prefix}/lib/clang/%{maj_ver}/include/ompx.h %ifnarch %{arm} %{_prefix}/lib/clang/%{maj_ver}/include/omp-tools.h %{_prefix}/lib/clang/%{maj_ver}/include/ompt.h @@ -139,9 +145,12 @@ rm -rf %{buildroot}%{_libdir}/libarcher_static.a %{_libdir}/cmake/openmp/FindOpenMPTarget.cmake %ifnarch %{ix86} %{arm} # libomptarget is not supported on 32-bit systems. +# s390x does not support the offloading plugins. +%ifnarch s390x %{_libdir}/libomptarget.rtl.amdgpu.so %{_libdir}/libomptarget.rtl.cuda.so %{_libdir}/libomptarget.rtl.%{libomp_arch}.so +%endif %{_libdir}/libomptarget.devicertl.a %{_libdir}/libomptarget-amdgpu-*.bc %{_libdir}/libomptarget-nvptx-*.bc