|
|
@ -1,8 +1,6 @@
|
|
|
|
%global maj_ver 16
|
|
|
|
%global libomp_version 14.0.6
|
|
|
|
%global libomp_version %{maj_ver}.0.6
|
|
|
|
#global rc_ver 1
|
|
|
|
#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 cmake_srcdir cmake-%{libomp_version}%{?rc_ver:rc%{rc_ver}}.src
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%ifarch ppc64le
|
|
|
|
%ifarch ppc64le
|
|
|
@ -19,22 +17,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
Name: libomp
|
|
|
|
Name: libomp
|
|
|
|
Version: %{libomp_version}%{?rc_ver:~rc%{rc_ver}}
|
|
|
|
Version: %{libomp_version}%{?rc_ver:~rc%{rc_ver}}
|
|
|
|
Release: 3%{?dist}
|
|
|
|
Release: 2%{?dist}
|
|
|
|
Summary: OpenMP runtime for clang
|
|
|
|
Summary: OpenMP runtime for clang
|
|
|
|
|
|
|
|
|
|
|
|
License: NCSA
|
|
|
|
License: NCSA
|
|
|
|
URL: http://openmp.llvm.org
|
|
|
|
URL: http://openmp.llvm.org
|
|
|
|
Source0: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{libomp_version}%{?rc_ver:-rc%{rc_ver}}/%{libomp_srcdir}.tar.xz
|
|
|
|
Source0: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{libomp_version}%{?rc_ver:-rc%{rc_ver}}/%{libomp_srcdir}.tar.xz
|
|
|
|
Source1: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{libomp_version}%{?rc_ver:-rc%{rc_ver}}/%{libomp_srcdir}.tar.xz.sig
|
|
|
|
Source1: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{libomp_version}%{?rc_ver:-rc%{rc_ver}}/%{libomp_srcdir}.tar.xz.sig
|
|
|
|
Source2: release-keys.asc
|
|
|
|
Source2: tstellar-gpg-key.asc
|
|
|
|
Source3: run-lit-tests
|
|
|
|
Source3: run-lit-tests
|
|
|
|
Source4: lit.fedora.cfg.py
|
|
|
|
Source4: lit.fedora.cfg.py
|
|
|
|
Source5: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{libomp_version}%{?rc_ver:-rc%{rc_ver}}/%{cmake_srcdir}.tar.xz
|
|
|
|
|
|
|
|
Source6: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{libomp_version}%{?rc_ver:-rc%{rc_ver}}/%{cmake_srcdir}.tar.xz.sig
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: clang
|
|
|
|
Patch0: 0001-PATCH-openmp-CMake-Make-LIBOMP_HEADERS_INSTALL_PATH-.patch
|
|
|
|
# For clang-offload-packager
|
|
|
|
# RHEL specific: Workaround for a bug in GCC that breaks compiling
|
|
|
|
BuildRequires: clang-tools-extra
|
|
|
|
# the kmp_lock.cpp. Without this patch, GCC errors out with
|
|
|
|
|
|
|
|
# ../runtime/src/kmp_lock.cpp:2684:1: error: unsupported size for integer register
|
|
|
|
|
|
|
|
Patch1: gcc-workaround.patch
|
|
|
|
|
|
|
|
# https://github.com/llvm/llvm-project/commit/40d3a0ba4d9e5452c0a68cfdaa8e88eb8ed5c63d
|
|
|
|
|
|
|
|
Patch2: fix-strict-aliasing-issue-in-cmpxchg-routine.patch
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: gcc
|
|
|
|
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: cmake
|
|
|
|
BuildRequires: cmake
|
|
|
|
BuildRequires: ninja-build
|
|
|
|
BuildRequires: ninja-build
|
|
|
|
BuildRequires: elfutils-libelf-devel
|
|
|
|
BuildRequires: elfutils-libelf-devel
|
|
|
@ -62,7 +65,6 @@ OpenMP runtime for clang.
|
|
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
%package devel
|
|
|
|
Summary: OpenMP header files
|
|
|
|
Summary: OpenMP header files
|
|
|
|
Requires: %{name}%{?isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
Requires: clang-resource-filesystem%{?isa} = %{version}
|
|
|
|
Requires: clang-resource-filesystem%{?isa} = %{version}
|
|
|
|
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
%description devel
|
|
|
@ -87,12 +89,6 @@ OpenMP regression tests
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}'
|
|
|
|
%{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}'
|
|
|
|
%{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE6}' --data='%{SOURCE5}'
|
|
|
|
|
|
|
|
%setup -T -q -b 5 -n %{cmake_srcdir}
|
|
|
|
|
|
|
|
# TODO: It would be more elegant to set -DLLVM_COMMON_CMAKE_UTILS=%{_builddir}/%{cmake_srcdir},
|
|
|
|
|
|
|
|
# but this is not a CACHED variable, so we can't actually set it externally :(
|
|
|
|
|
|
|
|
cd ..
|
|
|
|
|
|
|
|
mv %{cmake_srcdir} cmake
|
|
|
|
|
|
|
|
%autosetup -n %{libomp_srcdir} -p2
|
|
|
|
%autosetup -n %{libomp_srcdir} -p2
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
@ -105,9 +101,8 @@ cd %{_vpath_builddir}
|
|
|
|
|
|
|
|
|
|
|
|
%cmake .. -GNinja \
|
|
|
|
%cmake .. -GNinja \
|
|
|
|
-DLIBOMP_INSTALL_ALIASES=OFF \
|
|
|
|
-DLIBOMP_INSTALL_ALIASES=OFF \
|
|
|
|
-DCMAKE_MODULE_PATH=%{_libdir}/cmake/llvm \
|
|
|
|
|
|
|
|
-DLLVM_DIR=%{_libdir}/cmake/llvm \
|
|
|
|
-DLLVM_DIR=%{_libdir}/cmake/llvm \
|
|
|
|
-DCMAKE_INSTALL_INCLUDEDIR=%{_libdir}/clang/%{maj_ver}/include \
|
|
|
|
-DLIBOMP_HEADERS_INSTALL_PATH:PATH=%{_libdir}/clang/%{libomp_version}/include \
|
|
|
|
%if 0%{?__isa_bits} == 64
|
|
|
|
%if 0%{?__isa_bits} == 64
|
|
|
|
-DOPENMP_LIBDIR_SUFFIX=64 \
|
|
|
|
-DOPENMP_LIBDIR_SUFFIX=64 \
|
|
|
|
%else
|
|
|
|
%else
|
|
|
@ -129,13 +124,10 @@ cd %{_vpath_builddir}
|
|
|
|
%global lit_cfg %{libomp_testdir}/%{_arch}.site.cfg.py
|
|
|
|
%global lit_cfg %{libomp_testdir}/%{_arch}.site.cfg.py
|
|
|
|
%global lit_fedora_cfg %{_datadir}/libomp/lit.fedora.cfg.py
|
|
|
|
%global lit_fedora_cfg %{_datadir}/libomp/lit.fedora.cfg.py
|
|
|
|
|
|
|
|
|
|
|
|
# Install test files
|
|
|
|
|
|
|
|
cd ..
|
|
|
|
|
|
|
|
install -d %{buildroot}%{libomp_srcdir}/runtime
|
|
|
|
install -d %{buildroot}%{libomp_srcdir}/runtime
|
|
|
|
cp -R runtime/test %{buildroot}%{libomp_srcdir}/runtime
|
|
|
|
cp -R runtime/test %{buildroot}%{libomp_srcdir}/runtime
|
|
|
|
cp -R runtime/src %{buildroot}%{libomp_srcdir}/runtime
|
|
|
|
cp -R runtime/src %{buildroot}%{libomp_srcdir}/runtime
|
|
|
|
|
|
|
|
|
|
|
|
cd %{_vpath_builddir}
|
|
|
|
|
|
|
|
# Generate lit config files. Strip off the last line that initiates the
|
|
|
|
# Generate lit config files. Strip off the last line that initiates the
|
|
|
|
# test run, so we can customize the configuration.
|
|
|
|
# test run, so we can customize the configuration.
|
|
|
|
head -n -1 runtime/test/lit.site.cfg >> %{buildroot}%{lit_cfg}
|
|
|
|
head -n -1 runtime/test/lit.site.cfg >> %{buildroot}%{lit_cfg}
|
|
|
@ -150,7 +142,6 @@ echo "lit_config.load_config(config, '%{lit_fedora_cfg}')" >> %{buildroot}%{lit_
|
|
|
|
install -d %{buildroot}%{_libexecdir}/tests/libomp
|
|
|
|
install -d %{buildroot}%{_libexecdir}/tests/libomp
|
|
|
|
install -m 0755 %{SOURCE3} %{buildroot}%{_libexecdir}/tests/libomp
|
|
|
|
install -m 0755 %{SOURCE3} %{buildroot}%{_libexecdir}/tests/libomp
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
# Remove static libraries with equivalent shared libraries
|
|
|
|
# Remove static libraries with equivalent shared libraries
|
|
|
@ -158,7 +149,7 @@ rm -rf %{buildroot}%{_libdir}/libarcher_static.a
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
%check
|
|
|
|
cd %{_vpath_builddir}
|
|
|
|
cd %{_vpath_builddir}
|
|
|
|
%cmake_build --target check-openmp || true
|
|
|
|
%cmake_build --target check-openmp
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%files
|
|
|
|
%license LICENSE.TXT
|
|
|
|
%license LICENSE.TXT
|
|
|
@ -168,36 +159,21 @@ cd %{_vpath_builddir}
|
|
|
|
%{_libdir}/libarcher.so
|
|
|
|
%{_libdir}/libarcher.so
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
%ifnarch %{ix86} %{arm}
|
|
|
|
%ifnarch %{ix86} %{arm}
|
|
|
|
# libomptarget is not supported on 32-bit systems.
|
|
|
|
%{_libdir}/libomptarget.rtl.amdgpu.so
|
|
|
|
%{_libdir}/libomptarget.rtl.amdgpu.so.%{maj_ver}
|
|
|
|
%{_libdir}/libomptarget.rtl.cuda.so
|
|
|
|
%{_libdir}/libomptarget.rtl.amdgpu.nextgen.so.%{maj_ver}
|
|
|
|
%{_libdir}/libomptarget.rtl.%{libomp_arch}.so
|
|
|
|
%{_libdir}/libomptarget.rtl.cuda.so.%{maj_ver}
|
|
|
|
|
|
|
|
%{_libdir}/libomptarget.rtl.cuda.nextgen.so.%{maj_ver}
|
|
|
|
|
|
|
|
%{_libdir}/libomptarget.rtl.%{libomp_arch}.so.%{maj_ver}
|
|
|
|
|
|
|
|
%{_libdir}/libomptarget.rtl.%{libomp_arch}.nextgen.so.%{maj_ver}
|
|
|
|
|
|
|
|
%{_libdir}/libomptarget.so.%{maj_ver}
|
|
|
|
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%{_libdir}/libomptarget.so
|
|
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%files devel
|
|
|
|
%{_libdir}/clang/%{maj_ver}/include/omp.h
|
|
|
|
%{_libdir}/clang/%{libomp_version}/include/omp.h
|
|
|
|
%{_libdir}/cmake/openmp/FindOpenMPTarget.cmake
|
|
|
|
%{_libdir}/cmake/openmp/FindOpenMPTarget.cmake
|
|
|
|
%ifnarch %{arm}
|
|
|
|
%ifnarch %{arm}
|
|
|
|
%{_libdir}/clang/%{maj_ver}/include/omp-tools.h
|
|
|
|
%{_libdir}/clang/%{libomp_version}/include/omp-tools.h
|
|
|
|
%{_libdir}/clang/%{maj_ver}/include/ompt.h
|
|
|
|
%{_libdir}/clang/%{libomp_version}/include/ompt.h
|
|
|
|
%{_libdir}/clang/%{maj_ver}/include/ompt-multiplex.h
|
|
|
|
# FIXME: This is probably wrong. Seems like LIBOMP_HEADERS_INSTALL may
|
|
|
|
%endif
|
|
|
|
# not be respected.
|
|
|
|
%ifnarch %{ix86} %{arm}
|
|
|
|
%{_includedir}/ompt-multiplex.h
|
|
|
|
# libomptarget is not supported on 32-bit systems.
|
|
|
|
|
|
|
|
%{_libdir}/libomptarget.rtl.amdgpu.so
|
|
|
|
|
|
|
|
%{_libdir}/libomptarget.rtl.amdgpu.nextgen.so
|
|
|
|
|
|
|
|
%{_libdir}/libomptarget.rtl.cuda.so
|
|
|
|
|
|
|
|
%{_libdir}/libomptarget.rtl.cuda.nextgen.so
|
|
|
|
|
|
|
|
%{_libdir}/libomptarget.rtl.%{libomp_arch}.so
|
|
|
|
|
|
|
|
%{_libdir}/libomptarget.rtl.%{libomp_arch}.nextgen.so
|
|
|
|
|
|
|
|
%{_libdir}/libomptarget.devicertl.a
|
|
|
|
|
|
|
|
%{_libdir}/libomptarget-amdgpu-*.bc
|
|
|
|
|
|
|
|
%{_libdir}/libomptarget-nvptx-*.bc
|
|
|
|
|
|
|
|
%{_libdir}/libomptarget.so
|
|
|
|
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with testpkg}
|
|
|
|
%if %{with testpkg}
|
|
|
@ -207,24 +183,6 @@ cd %{_vpath_builddir}
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
* Sat Jul 15 2023 Tom Stellard <tstellar@redhat.com> - 16.0.6-3
|
|
|
|
|
|
|
|
- Remove duplicated installed binaries
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jul 05 2023 Tom Stellard <tstellar@redhat.com> - 16.0.6-2
|
|
|
|
|
|
|
|
- Add explict libomp requres to libomp-devel
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jun 23 2023 Tom Stellard <tstellar@redhat.com> - 16.0.6-1
|
|
|
|
|
|
|
|
- 16.0.6 Release
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Apr 28 2023 Tom Stellard <tstellar@redhat.com> - 16.0.0-1
|
|
|
|
|
|
|
|
- Release 16.0.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jan 19 2023 Tom Stellard <tstellar@redhat.com> - 15.0.7-1
|
|
|
|
|
|
|
|
- Update to LLVM 15.0.7
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Sep 06 2022 Nikita Popov <npopov@redhat.com> - 15.0.0-1
|
|
|
|
|
|
|
|
- Update to LLVM 15.0.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Aug 10 2022 Tom Stellard <tstellar@redhat.com> - 14.0.6-2
|
|
|
|
* Wed Aug 10 2022 Tom Stellard <tstellar@redhat.com> - 14.0.6-2
|
|
|
|
- Drop -test sub-package on i686
|
|
|
|
- Drop -test sub-package on i686
|
|
|
|
|
|
|
|
|
|
|
|