|
|
@ -5,21 +5,23 @@
|
|
|
|
%{llvm_sb}
|
|
|
|
%{llvm_sb}
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%global toolchain gcc
|
|
|
|
%global maj_ver 18
|
|
|
|
|
|
|
|
%global min_ver 1
|
|
|
|
%global maj_ver 17
|
|
|
|
%global libomp_version %{maj_ver}.%{min_ver}.8
|
|
|
|
%global libomp_version %{maj_ver}.0.6
|
|
|
|
|
|
|
|
#global rc_ver 4
|
|
|
|
#global rc_ver 4
|
|
|
|
%global libomp_srcdir openmp-%{libomp_version}%{?rc_ver:rc%{rc_ver}}.src
|
|
|
|
%global libomp_srcdir openmp-%{libomp_version}%{?rc_ver:rc%{rc_ver}}.src
|
|
|
|
%global so_suffix %{maj_ver}
|
|
|
|
%global so_suffix %{maj_ver}.%{min_ver}
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with snapshot_build}
|
|
|
|
%if %{with snapshot_build}
|
|
|
|
%undefine rc_ver
|
|
|
|
%undefine rc_ver
|
|
|
|
%global maj_ver %{llvm_snapshot_version_major}
|
|
|
|
%global maj_ver %{llvm_snapshot_version_major}
|
|
|
|
%global libomp_version %{llvm_snapshot_version}
|
|
|
|
%global libomp_version %{llvm_snapshot_version}
|
|
|
|
%global so_suffix %{maj_ver}%{llvm_snapshot_version_suffix}
|
|
|
|
%global so_suffix %{maj_ver}.%{min_ver}%{llvm_snapshot_version_suffix}
|
|
|
|
%endif
|
|
|
|
%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
|
|
|
|
# Opt out of https://fedoraproject.org/wiki/Changes/fno-omit-frame-pointer
|
|
|
|
# https://bugzilla.redhat.com/show_bug.cgi?id=2158587
|
|
|
|
# https://bugzilla.redhat.com/show_bug.cgi?id=2158587
|
|
|
@ -67,10 +69,7 @@ BuildRequires: llvm-cmake-utils
|
|
|
|
|
|
|
|
|
|
|
|
Requires: elfutils-libelf%{?isa}
|
|
|
|
Requires: elfutils-libelf%{?isa}
|
|
|
|
|
|
|
|
|
|
|
|
Obsoletes: libomp-test < 17.0.2
|
|
|
|
Obsoletes: libomp-test < 18.1.8
|
|
|
|
|
|
|
|
|
|
|
|
# libomp does not support s390x.
|
|
|
|
|
|
|
|
ExcludeArch: s390x
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
%description
|
|
|
|
OpenMP runtime for clang.
|
|
|
|
OpenMP runtime for clang.
|
|
|
@ -90,11 +89,6 @@ OpenMP header files.
|
|
|
|
%autosetup -n %{libomp_srcdir} -p2
|
|
|
|
%autosetup -n %{libomp_srcdir} -p2
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
|
|
|
|
|
|
|
|
%if "%toolchain" == "gcc"
|
|
|
|
|
|
|
|
# Building openmp with LTO fails with GCC but works with Clang
|
|
|
|
|
|
|
|
%define _lto_cflags %{nil}
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%cmake -GNinja \
|
|
|
|
%cmake -GNinja \
|
|
|
|
-DLIBOMP_INSTALL_ALIASES=OFF \
|
|
|
|
-DLIBOMP_INSTALL_ALIASES=OFF \
|
|
|
|
-DCMAKE_MODULE_PATH=%{_datadir}/llvm/cmake/Modules \
|
|
|
|
-DCMAKE_MODULE_PATH=%{_datadir}/llvm/cmake/Modules \
|
|
|
@ -131,25 +125,32 @@ rm -rf %{buildroot}%{_libdir}/libarcher_static.a
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
%ifnarch %{ix86} %{arm}
|
|
|
|
%ifnarch %{ix86} %{arm}
|
|
|
|
# libomptarget is not supported on 32-bit systems.
|
|
|
|
# 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.amdgpu.so.%{so_suffix}
|
|
|
|
%{_libdir}/libomptarget.rtl.cuda.so.%{so_suffix}
|
|
|
|
%{_libdir}/libomptarget.rtl.cuda.so.%{so_suffix}
|
|
|
|
%{_libdir}/libomptarget.rtl.%{libomp_arch}.so.%{so_suffix}
|
|
|
|
%{_libdir}/libomptarget.rtl.%{libomp_arch}.so.%{so_suffix}
|
|
|
|
|
|
|
|
%endif
|
|
|
|
%{_libdir}/libomptarget.so.%{so_suffix}
|
|
|
|
%{_libdir}/libomptarget.so.%{so_suffix}
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%files devel
|
|
|
|
%{_prefix}/lib/clang/%{maj_ver}/include/omp.h
|
|
|
|
%{_prefix}/lib/clang/%{maj_ver}/include/omp.h
|
|
|
|
|
|
|
|
%{_prefix}/lib/clang/%{maj_ver}/include/ompx.h
|
|
|
|
%ifnarch %{arm}
|
|
|
|
%ifnarch %{arm}
|
|
|
|
%{_prefix}/lib/clang/%{maj_ver}/include/omp-tools.h
|
|
|
|
%{_prefix}/lib/clang/%{maj_ver}/include/omp-tools.h
|
|
|
|
%{_prefix}/lib/clang/%{maj_ver}/include/ompt.h
|
|
|
|
%{_prefix}/lib/clang/%{maj_ver}/include/ompt.h
|
|
|
|
%{_prefix}/lib/clang/%{maj_ver}/include/ompt-multiplex.h
|
|
|
|
%{_prefix}/lib/clang/%{maj_ver}/include/ompt-multiplex.h
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
%{_libdir}/cmake/openmp/FindOpenMPTarget.cmake
|
|
|
|
%{_libdir}/cmake/openmp/
|
|
|
|
%ifnarch %{ix86} %{arm}
|
|
|
|
%ifnarch %{ix86} %{arm}
|
|
|
|
# libomptarget is not supported on 32-bit systems.
|
|
|
|
# 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.amdgpu.so
|
|
|
|
%{_libdir}/libomptarget.rtl.cuda.so
|
|
|
|
%{_libdir}/libomptarget.rtl.cuda.so
|
|
|
|
%{_libdir}/libomptarget.rtl.%{libomp_arch}.so
|
|
|
|
%{_libdir}/libomptarget.rtl.%{libomp_arch}.so
|
|
|
|
|
|
|
|
%endif
|
|
|
|
%{_libdir}/libomptarget.devicertl.a
|
|
|
|
%{_libdir}/libomptarget.devicertl.a
|
|
|
|
%{_libdir}/libomptarget-amdgpu-*.bc
|
|
|
|
%{_libdir}/libomptarget-amdgpu-*.bc
|
|
|
|
%{_libdir}/libomptarget-nvptx-*.bc
|
|
|
|
%{_libdir}/libomptarget-nvptx-*.bc
|
|
|
@ -157,7 +158,14 @@ rm -rf %{buildroot}%{_libdir}/libarcher_static.a
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
%{?llvm_snapshot_changelog_entry}
|
|
|
|
* Wed Jul 17 2024 Konrad Kleine <kkleine@redhat.com> - 18.1.8-1
|
|
|
|
|
|
|
|
- Update to 18.1.8
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jun 05 2024 Konrad Kleine <kkleine@redhat.com> - 18.1.6-3
|
|
|
|
|
|
|
|
- Rebuild against clang-18.1.6-2 which defaults to DWARF4
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Jun 03 2024 Konrad Kleine <kkleine@redhat.com> - 18.1.6-1
|
|
|
|
|
|
|
|
- Update to 18.1.6
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Dec 11 2023 Timm Bäder <tbaeder@redhat.com> - 17.0.6-1
|
|
|
|
* Mon Dec 11 2023 Timm Bäder <tbaeder@redhat.com> - 17.0.6-1
|
|
|
|
- Update to 17.0.6
|
|
|
|
- Update to 17.0.6
|
|
|
|