Compare commits
No commits in common. "stream-llvm-toolset-rhel8-rhel-8.9.0" and "c8-stream-rhel8" have entirely different histories.
stream-llv
...
c8-stream-
@ -1 +0,0 @@
|
|||||||
1
|
|
14
.gitignore
vendored
14
.gitignore
vendored
@ -1,12 +1,2 @@
|
|||||||
SOURCES/openmp-15.0.7.src.tar.xz
|
SOURCES/openmp-18.1.8.src.tar.xz
|
||||||
SOURCES/release-keys.asc
|
SOURCES/openmp-18.1.8.src.tar.xz.sig
|
||||||
/openmp-15.0.7.src.tar.xz
|
|
||||||
/release-keys.asc
|
|
||||||
/openmp-16.0.0.src.tar.xz
|
|
||||||
/openmp-16.0.0.src.tar.xz.sig
|
|
||||||
/cmake-16.0.0.src.tar.xz
|
|
||||||
/cmake-16.0.0.src.tar.xz.sig
|
|
||||||
/openmp-16.0.6.src.tar.xz
|
|
||||||
/openmp-16.0.6.src.tar.xz.sig
|
|
||||||
/cmake-16.0.6.src.tar.xz
|
|
||||||
/cmake-16.0.6.src.tar.xz.sig
|
|
2
.libomp.metadata
Normal file
2
.libomp.metadata
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
43ed949cb5e5360e3523d8ad93490402a3280fdc SOURCES/openmp-18.1.8.src.tar.xz
|
||||||
|
5215a51f89e1a3d6fc277b8b3d7063777af1a121 SOURCES/openmp-18.1.8.src.tar.xz.sig
|
@ -1,27 +0,0 @@
|
|||||||
From f2c9c1c9cda831a4305e2dc8899d630ed727353a Mon Sep 17 00:00:00 2001
|
|
||||||
From: Tom Stellard <tstellar@redhat.com>
|
|
||||||
Date: Tue, 16 May 2017 11:52:19 -0400
|
|
||||||
Subject: [PATCH] [PATCH][openmp] CMake: Make LIBOMP_HEADERS_INSTALL_PATH a
|
|
||||||
cache variable when bulding standalone
|
|
||||||
|
|
||||||
This way it can be overriden on the command line.
|
|
||||||
---
|
|
||||||
openmp/runtime/src/CMakeLists.txt | 2 +-
|
|
||||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
||||||
|
|
||||||
diff --git a/openmp/runtime/src/CMakeLists.txt b/openmp/runtime/src/CMakeLists.txt
|
|
||||||
index 822f9ca..583a3c3 100644
|
|
||||||
--- a/openmp/runtime/src/CMakeLists.txt
|
|
||||||
+++ b/openmp/runtime/src/CMakeLists.txt
|
|
||||||
@@ -346,7 +346,7 @@ add_dependencies(libomp-micro-tests libomp-test-deps)
|
|
||||||
# We want to install libomp in DESTDIR/CMAKE_INSTALL_PREFIX/lib
|
|
||||||
# We want to install headers in DESTDIR/CMAKE_INSTALL_PREFIX/include
|
|
||||||
if(${OPENMP_STANDALONE_BUILD})
|
|
||||||
- set(LIBOMP_HEADERS_INSTALL_PATH "${CMAKE_INSTALL_INCLUDEDIR}")
|
|
||||||
+ set(LIBOMP_HEADERS_INSTALL_PATH include CACHE PATH "Install path for OpenMP headers")
|
|
||||||
else()
|
|
||||||
string(REGEX MATCH "[0-9]+\\.[0-9]+(\\.[0-9]+)?" CLANG_VERSION ${PACKAGE_VERSION})
|
|
||||||
set(LIBOMP_HEADERS_INSTALL_PATH "${OPENMP_INSTALL_LIBDIR}/clang/${CLANG_VERSION}/include")
|
|
||||||
--
|
|
||||||
1.8.3.1
|
|
||||||
|
|
@ -1,9 +1,31 @@
|
|||||||
%global maj_ver 16
|
%bcond_with snapshot_build
|
||||||
%global libomp_version %{maj_ver}.0.6
|
|
||||||
|
%if %{with snapshot_build}
|
||||||
|
# Unlock LLVM Snapshot LUA functions
|
||||||
|
%{llvm_sb}
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%global maj_ver 18
|
||||||
|
%global min_ver 1
|
||||||
|
%global libomp_version %{maj_ver}.%{min_ver}.8
|
||||||
#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 cmake_srcdir cmake-%{libomp_version}%{?rc_ver:rc%{rc_ver}}.src
|
%global so_suffix %{maj_ver}.%{min_ver}
|
||||||
|
|
||||||
|
%if %{with snapshot_build}
|
||||||
|
%undefine rc_ver
|
||||||
|
%global maj_ver %{llvm_snapshot_version_major}
|
||||||
|
%global libomp_version %{llvm_snapshot_version}
|
||||||
|
%global so_suffix %{maj_ver}.%{min_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
|
||||||
|
# https://bugzilla.redhat.com/show_bug.cgi?id=2158587
|
||||||
|
%undefine _include_frame_pointers
|
||||||
|
|
||||||
%ifarch ppc64le
|
%ifarch ppc64le
|
||||||
%global libomp_arch ppc64
|
%global libomp_arch ppc64
|
||||||
@ -11,28 +33,23 @@
|
|||||||
%global libomp_arch %{_arch}
|
%global libomp_arch %{_arch}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%ifarch %{ix86}
|
|
||||||
%bcond_with testpkg
|
|
||||||
%else
|
|
||||||
%bcond_without testpkg
|
|
||||||
%endif
|
|
||||||
|
|
||||||
Name: libomp
|
Name: libomp
|
||||||
Version: %{libomp_version}%{?rc_ver:~rc%{rc_ver}}
|
Version: %{libomp_version}%{?rc_ver:~rc%{rc_ver}}%{?llvm_snapshot_version_suffix:~%{llvm_snapshot_version_suffix}}
|
||||||
Release: 3%{?dist}
|
Release: 1%{?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
|
||||||
|
%if %{with snapshot_build}
|
||||||
|
Source0: %{llvm_snapshot_source_prefix}openmp-%{llvm_snapshot_yyyymmdd}.src.tar.xz
|
||||||
|
%{llvm_snapshot_extra_source_tags}
|
||||||
|
%else
|
||||||
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: release-keys.asc
|
||||||
Source3: run-lit-tests
|
%endif
|
||||||
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
|
BuildRequires: clang >= %{maj_ver}
|
||||||
# For clang-offload-packager
|
# For clang-offload-packager
|
||||||
BuildRequires: clang-tools-extra
|
BuildRequires: clang-tools-extra
|
||||||
BuildRequires: cmake
|
BuildRequires: cmake
|
||||||
@ -48,15 +65,12 @@ BuildRequires: ncurses-devel
|
|||||||
# For gpg source verification
|
# For gpg source verification
|
||||||
BuildRequires: gnupg2
|
BuildRequires: gnupg2
|
||||||
|
|
||||||
|
|
||||||
# libomptarget needs the llvm cmake files
|
# libomptarget needs the llvm cmake files
|
||||||
BuildRequires: llvm-devel
|
BuildRequires: llvm-devel
|
||||||
|
BuildRequires: llvm-cmake-utils
|
||||||
|
|
||||||
Requires: elfutils-libelf%{?isa}
|
Requires: elfutils-libelf%{?isa}
|
||||||
|
|
||||||
# libomp does not support s390x.
|
|
||||||
ExcludeArch: s390x
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
OpenMP runtime for clang.
|
OpenMP runtime for clang.
|
||||||
|
|
||||||
@ -68,50 +82,31 @@ Requires: clang-resource-filesystem%{?isa} = %{version}
|
|||||||
%description devel
|
%description devel
|
||||||
OpenMP header files.
|
OpenMP header files.
|
||||||
|
|
||||||
%if %{with testpkg}
|
|
||||||
|
|
||||||
%package test
|
|
||||||
Summary: OpenMP regression tests
|
|
||||||
Requires: %{name}%{?isa} = %{version}-%{release}
|
|
||||||
Requires: %{name}-devel%{?isa} = %{version}-%{release}
|
|
||||||
Requires: clang
|
|
||||||
Requires: llvm
|
|
||||||
Requires: gcc
|
|
||||||
Requires: gcc-c++
|
|
||||||
Requires: python3-lit
|
|
||||||
|
|
||||||
%description test
|
|
||||||
OpenMP regression tests
|
|
||||||
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
|
%if %{without snapshot_build}
|
||||||
%{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}'
|
%{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}'
|
||||||
%{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE6}' --data='%{SOURCE5}'
|
%endif
|
||||||
%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
|
||||||
|
%undefine __cmake_in_source_build
|
||||||
|
|
||||||
# LTO causes build failures in this package. Disable LTO for now
|
# LTO causes build failures in this package. Disable LTO for now
|
||||||
# https://bugzilla.redhat.com/show_bug.cgi?id=1988155
|
# https://bugzilla.redhat.com/show_bug.cgi?id=1988155
|
||||||
%define _lto_cflags %{nil}
|
%define _lto_cflags %{nil}
|
||||||
|
|
||||||
mkdir -p %{_vpath_builddir}
|
%cmake -GNinja \
|
||||||
cd %{_vpath_builddir}
|
|
||||||
|
|
||||||
%cmake .. -GNinja \
|
|
||||||
-DLIBOMP_INSTALL_ALIASES=OFF \
|
-DLIBOMP_INSTALL_ALIASES=OFF \
|
||||||
-DCMAKE_MODULE_PATH=%{_libdir}/cmake/llvm \
|
-DCMAKE_MODULE_PATH=%{_datadir}/llvm/cmake/Modules \
|
||||||
-DLLVM_DIR=%{_libdir}/cmake/llvm \
|
-DLLVM_DIR=%{_libdir}/cmake/llvm \
|
||||||
-DCMAKE_INSTALL_INCLUDEDIR=%{_libdir}/clang/%{maj_ver}/include \
|
-DCMAKE_INSTALL_INCLUDEDIR=%{_prefix}/lib/clang/%{maj_ver}/include \
|
||||||
%if 0%{?__isa_bits} == 64
|
%if 0%{?__isa_bits} == 64
|
||||||
-DOPENMP_LIBDIR_SUFFIX=64 \
|
-DOPENMP_LIBDIR_SUFFIX=64 \
|
||||||
%else
|
%else
|
||||||
-DOPENMP_LIBDIR_SUFFIX= \
|
-DOPENMP_LIBDIR_SUFFIX= \
|
||||||
|
%endif
|
||||||
|
%if %{with snapshot_build}
|
||||||
|
-DLLVM_VERSION_SUFFIX="%{llvm_snapshot_version_suffix}" \
|
||||||
%endif
|
%endif
|
||||||
-DCMAKE_SKIP_RPATH:BOOL=ON
|
-DCMAKE_SKIP_RPATH:BOOL=ON
|
||||||
|
|
||||||
@ -119,45 +114,12 @@ cd %{_vpath_builddir}
|
|||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
cd %{_vpath_builddir}
|
|
||||||
%cmake_install
|
%cmake_install
|
||||||
|
|
||||||
%if %{with testpkg}
|
|
||||||
# Test package setup
|
|
||||||
%global libomp_srcdir %{_datadir}/libomp/src/
|
|
||||||
%global libomp_testdir %{libomp_srcdir}/runtime/test/
|
|
||||||
%global lit_cfg %{libomp_testdir}/%{_arch}.site.cfg.py
|
|
||||||
%global lit_fedora_cfg %{_datadir}/libomp/lit.fedora.cfg.py
|
|
||||||
|
|
||||||
# Install test files
|
|
||||||
cd ..
|
|
||||||
install -d %{buildroot}%{libomp_srcdir}/runtime
|
|
||||||
cp -R runtime/test %{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
|
|
||||||
# test run, so we can customize the configuration.
|
|
||||||
head -n -1 runtime/test/lit.site.cfg >> %{buildroot}%{lit_cfg}
|
|
||||||
|
|
||||||
# Install custom fedora config file
|
|
||||||
cp %{SOURCE4} %{buildroot}%{lit_fedora_cfg}
|
|
||||||
|
|
||||||
# Patch lit config files to load custom fedora config
|
|
||||||
echo "lit_config.load_config(config, '%{lit_fedora_cfg}')" >> %{buildroot}%{lit_cfg}
|
|
||||||
|
|
||||||
# Install test script
|
|
||||||
install -d %{buildroot}%{_libexecdir}/tests/libomp
|
|
||||||
install -m 0755 %{SOURCE3} %{buildroot}%{_libexecdir}/tests/libomp
|
|
||||||
|
|
||||||
|
|
||||||
%endif
|
|
||||||
|
|
||||||
# Remove static libraries with equivalent shared libraries
|
# Remove static libraries with equivalent shared libraries
|
||||||
rm -rf %{buildroot}%{_libdir}/libarcher_static.a
|
rm -rf %{buildroot}%{_libdir}/libarcher_static.a
|
||||||
|
|
||||||
%check
|
%check
|
||||||
cd %{_vpath_builddir}
|
|
||||||
%cmake_build --target check-openmp || true
|
%cmake_build --target check-openmp || true
|
||||||
|
|
||||||
%files
|
%files
|
||||||
@ -169,44 +131,65 @@ cd %{_vpath_builddir}
|
|||||||
%endif
|
%endif
|
||||||
%ifnarch %{ix86} %{arm}
|
%ifnarch %{ix86} %{arm}
|
||||||
# libomptarget is not supported on 32-bit systems.
|
# libomptarget is not supported on 32-bit systems.
|
||||||
%{_libdir}/libomptarget.rtl.amdgpu.so.%{maj_ver}
|
# s390x does not support the offloading plugins.
|
||||||
%{_libdir}/libomptarget.rtl.amdgpu.nextgen.so.%{maj_ver}
|
%ifnarch s390x
|
||||||
%{_libdir}/libomptarget.rtl.cuda.so.%{maj_ver}
|
%{_libdir}/libomptarget.rtl.amdgpu.so.%{so_suffix}
|
||||||
%{_libdir}/libomptarget.rtl.cuda.nextgen.so.%{maj_ver}
|
%{_libdir}/libomptarget.rtl.cuda.so.%{so_suffix}
|
||||||
%{_libdir}/libomptarget.rtl.%{libomp_arch}.so.%{maj_ver}
|
%{_libdir}/libomptarget.rtl.%{libomp_arch}.so.%{so_suffix}
|
||||||
%{_libdir}/libomptarget.rtl.%{libomp_arch}.nextgen.so.%{maj_ver}
|
%endif
|
||||||
%{_libdir}/libomptarget.so.%{maj_ver}
|
%{_libdir}/libomptarget.so.%{so_suffix}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%{_libdir}/clang/%{maj_ver}/include/omp.h
|
%{_prefix}/lib/clang/%{maj_ver}/include/omp.h
|
||||||
%{_libdir}/cmake/openmp/FindOpenMPTarget.cmake
|
%{_prefix}/lib/clang/%{maj_ver}/include/ompx.h
|
||||||
%ifnarch %{arm}
|
%ifnarch %{arm}
|
||||||
%{_libdir}/clang/%{maj_ver}/include/omp-tools.h
|
%{_prefix}/lib/clang/%{maj_ver}/include/omp-tools.h
|
||||||
%{_libdir}/clang/%{maj_ver}/include/ompt.h
|
%{_prefix}/lib/clang/%{maj_ver}/include/ompt.h
|
||||||
%{_libdir}/clang/%{maj_ver}/include/ompt-multiplex.h
|
%{_prefix}/lib/clang/%{maj_ver}/include/ompt-multiplex.h
|
||||||
%endif
|
%endif
|
||||||
|
%{_libdir}/cmake/openmp/FindOpenMPTarget.cmake
|
||||||
%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.amdgpu.nextgen.so
|
|
||||||
%{_libdir}/libomptarget.rtl.cuda.so
|
%{_libdir}/libomptarget.rtl.cuda.so
|
||||||
%{_libdir}/libomptarget.rtl.cuda.nextgen.so
|
|
||||||
%{_libdir}/libomptarget.rtl.%{libomp_arch}.so
|
%{_libdir}/libomptarget.rtl.%{libomp_arch}.so
|
||||||
%{_libdir}/libomptarget.rtl.%{libomp_arch}.nextgen.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
|
||||||
%{_libdir}/libomptarget.so
|
%{_libdir}/libomptarget.so
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if %{with testpkg}
|
|
||||||
%files test
|
|
||||||
%{_datadir}/libomp
|
|
||||||
%{_libexecdir}/tests/libomp/
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Jul 09 2024 Tom Stellard <tstellar@redhat.com> - 18.1.8-1
|
||||||
|
- 18.1.8 Release
|
||||||
|
|
||||||
|
* Fri Mar 22 2024 Tom Stellard <tstellar@redhat.com> - 18.1.2-1
|
||||||
|
- 18.1.2 Release
|
||||||
|
|
||||||
|
* Wed Mar 13 2024 Tom Stellard <tstellar@redhat.com> - 18.1.1-1
|
||||||
|
- 18.1.1 Release
|
||||||
|
|
||||||
|
* Thu Feb 29 2024 Tom Stellard <tstellar@redhat.com> - 18.1.0~rc4-1
|
||||||
|
- 18.1.0-rc4 Release
|
||||||
|
|
||||||
|
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 17.0.6-3
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||||
|
|
||||||
|
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 17.0.6-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||||
|
|
||||||
|
%{?llvm_snapshot_changelog_entry}
|
||||||
|
|
||||||
|
* Wed Nov 29 2023 Nikita Popov <npopov@redhat.com> - 17.0.6-1
|
||||||
|
- Update to LLVM 17.0.6
|
||||||
|
|
||||||
|
* Wed Oct 04 2023 Nikita Popov <npopov@redhat.com> - 17.0.2-1
|
||||||
|
- Update to LLVM 17.0.2
|
||||||
|
|
||||||
* Sat Jul 15 2023 Tom Stellard <tstellar@redhat.com> - 16.0.6-3
|
* Sat Jul 15 2023 Tom Stellard <tstellar@redhat.com> - 16.0.6-3
|
||||||
- Remove duplicated installed binaries
|
- Remove duplicated installed binaries
|
||||||
|
|
@ -1,44 +0,0 @@
|
|||||||
diff --git a/openmp/runtime/src/kmp_os.h b/openmp/runtime/src/kmp_os.h
|
|
||||||
--- a/openmp/runtime/src/kmp_os.h
|
|
||||||
+++ b/openmp/runtime/src/kmp_os.h
|
|
||||||
@@ -17,6 +17,7 @@
|
|
||||||
#include <atomic>
|
|
||||||
#include <stdarg.h>
|
|
||||||
#include <stdlib.h>
|
|
||||||
+#include <string.h>
|
|
||||||
|
|
||||||
#define KMP_FTN_PLAIN 1
|
|
||||||
#define KMP_FTN_APPEND 2
|
|
||||||
@@ -864,15 +865,25 @@
|
|
||||||
__sync_lock_test_and_set((volatile kmp_uint64 *)(p), (kmp_uint64)(v))
|
|
||||||
|
|
||||||
inline kmp_real32 KMP_XCHG_REAL32(volatile kmp_real32 *p, kmp_real32 v) {
|
|
||||||
- kmp_int32 tmp =
|
|
||||||
- __sync_lock_test_and_set((volatile kmp_uint32 *)(p), *(kmp_uint32 *)&v);
|
|
||||||
- return *(kmp_real32 *)&tmp;
|
|
||||||
+ volatile kmp_uint32 *up;
|
|
||||||
+ kmp_uint32 uv;
|
|
||||||
+ memcpy(&up, &p, sizeof(up));
|
|
||||||
+ memcpy(&uv, &v, sizeof(uv));
|
|
||||||
+ kmp_int32 tmp = __sync_lock_test_and_set(up, uv);
|
|
||||||
+ kmp_real32 ftmp;
|
|
||||||
+ memcpy(&ftmp, &tmp, sizeof(tmp));
|
|
||||||
+ return ftmp;
|
|
||||||
}
|
|
||||||
|
|
||||||
inline kmp_real64 KMP_XCHG_REAL64(volatile kmp_real64 *p, kmp_real64 v) {
|
|
||||||
- kmp_int64 tmp =
|
|
||||||
- __sync_lock_test_and_set((volatile kmp_uint64 *)(p), *(kmp_uint64 *)&v);
|
|
||||||
- return *(kmp_real64 *)&tmp;
|
|
||||||
+ volatile kmp_uint64 *up;
|
|
||||||
+ kmp_uint64 uv;
|
|
||||||
+ memcpy(&up, &p, sizeof(up));
|
|
||||||
+ memcpy(&uv, &v, sizeof(uv));
|
|
||||||
+ kmp_int64 tmp = __sync_lock_test_and_set(up, uv);
|
|
||||||
+ kmp_real64 dtmp;
|
|
||||||
+ memcpy(&dtmp, &tmp, sizeof(tmp));
|
|
||||||
+ return dtmp;
|
|
||||||
}
|
|
||||||
|
|
||||||
#else
|
|
||||||
|
|
18
gating.yaml
18
gating.yaml
@ -1,18 +0,0 @@
|
|||||||
--- !Policy
|
|
||||||
product_versions:
|
|
||||||
- fedora-*
|
|
||||||
decision_context: bodhi_update_push_testing
|
|
||||||
rules:
|
|
||||||
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.tier0.functional}
|
|
||||||
--- !Policy
|
|
||||||
product_versions:
|
|
||||||
- fedora-*
|
|
||||||
decision_context: bodhi_update_push_stable
|
|
||||||
rules:
|
|
||||||
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.tier0.functional}
|
|
||||||
--- !Policy
|
|
||||||
product_versions:
|
|
||||||
- rhel-9
|
|
||||||
decision_context: osci_compose_gate
|
|
||||||
rules:
|
|
||||||
- !PassingTestCaseRule {test_case_name: baseos-ci.brew-build.tier0.functional}
|
|
@ -1,12 +0,0 @@
|
|||||||
diff -ruN openmp-14.0.0.src.orig/runtime/src/kmp_lock.cpp openmp-14.0.0.src/runtime/src/kmp_lock.cpp
|
|
||||||
--- a/openmp-14.0.0.src.orig/runtime/src/kmp_lock.cpp 2022-03-14 10:44:55.000000000 +0100
|
|
||||||
+++ b/openmp-14.0.0.src/runtime/src/kmp_lock.cpp 2022-04-22 10:58:26.736078432 +0200
|
|
||||||
@@ -2663,7 +2663,7 @@
|
|
||||||
}
|
|
||||||
|
|
||||||
// Truncated binary exponential backoff function
|
|
||||||
-void __kmp_spin_backoff(kmp_backoff_t *boff) {
|
|
||||||
+void __attribute__((optimize("O1"))) __kmp_spin_backoff(kmp_backoff_t *boff) {
|
|
||||||
// We could flatten this loop, but making it a nested loop gives better result
|
|
||||||
kmp_uint32 i;
|
|
||||||
for (i = boff->step; i > 0; i--) {
|
|
@ -1,52 +0,0 @@
|
|||||||
-----BEGIN PGP PUBLIC KEY BLOCK-----
|
|
||||||
|
|
||||||
mQINBFS+1SABEACnmkESkY7eZq0GhDjbkWpKmURGk9+ycsfAhA44NqUvf4tk1GPM
|
|
||||||
5SkJ/fYedYZJaDVhIp98fHgucD0O+vjOzghtgwtITusYjiPHPFBd/MN+MQqSEAP+
|
|
||||||
LUa/kjHLjgyXxKhFUIDGVaDWL5tKOA7/AQKl1TyJ8lz89NHQoUHFsF/hu10+qhJe
|
|
||||||
V65d32MXFehIUSvegh8DrPuExrliSiORO4HOhuc6151dWA4YBWVg4rX5kfKrGMMT
|
|
||||||
pTWnSSZtgoRhkKW2Ey8cmZUqPuUJIfWyeNVu1e4SFtAivLvu/Ymz2WBJcNA1ZlTr
|
|
||||||
RCOR5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gD16KHxPZMBpX73TzOYIhMEP/vXgVJbUD6dYht+U9c4Oh
|
|
||||||
EDJown0dABEBAAGJAjwEGAECACYCGwwWIQS2yPmCgrlE47DVwlMPwwQuNFrQXQUC
|
|
||||||
Wl36SwUJDwUmqwAKCRAPwwQuNFrQXT1/D/9YpRDNgaJl3YVDtVZoeQwh7BQ6ULZT
|
|
||||||
eXFPogYkF2j3VWg8s9UmAs4sg/4a+9KLSantXjX+JFsRv0lQe5Gr/Vl8VQ4LKEXB
|
|
||||||
fiGmSivjIZ7eopdd3YP2w6G5T3SA4d2CQfsg4rnJPnXIjzKNiSOi368ybnt9fL0Y
|
|
||||||
2r2aqLTmP6Y7issDUO+J1TW1XHm349JPR0Hl4cTuNnWm4JuX2m2CJEc5XBlDAha9
|
|
||||||
pUVs+J5C2D0UFFkyeOzeJPwy6x5ApWHm84n8AjhQSpu1qRKxKXdwei6tkQWWMHui
|
|
||||||
+TgSY/zCkmD9/oY15Ei5avJ4WgIbTLJUoZMi70riPmU8ThjpzA7S+Nk0g7rMPq+X
|
|
||||||
l1whjKU/u0udlsrIJjzkh6ftqKUmIkbxYTpjhnEujNrEr5m2S6Z6x3y9E5QagBMR
|
|
||||||
dxRhfk+HbyACcP/p9rXOzl4M291DoKeAAH70GHniGxyNs9rAoMr/hD5XW/Wrz3dc
|
|
||||||
KMc2s555E6MZILE2ZiolcRn+bYOMPZtWlbx98t8uqMf49gY4FGQBZAwPglMrx7mr
|
|
||||||
m7HTIiXahThQGOJg6izJDAD5RwSEGlAcL28T8KAuM6CLLkhlBfQwiKsUBNnh9r8w
|
|
||||||
V3lB+pV0GhL+3i077gTYfZBRwLzjFdhm9xUKEaZ6rN1BX9lzix4eSNK5nln0jUq1
|
|
||||||
67H2IH//2sf8dw==
|
|
||||||
=ADVe
|
|
||||||
-----END PGP PUBLIC KEY BLOCK-----
|
|
@ -1,15 +0,0 @@
|
|||||||
import tempfile
|
|
||||||
|
|
||||||
compiler = '%(libomp_compiler)s' % lit_config.params
|
|
||||||
config.test_filecheck = '%(bindir)s/FileCheck' % lit_config.params
|
|
||||||
config.omp_header_directory = '%(includedir)s' % lit_config.params
|
|
||||||
config.libomp_obj_root = tempfile.mkdtemp()
|
|
||||||
config.library_dir = '%(libdir)s' % lit_config.params
|
|
||||||
test_root = '%(libomp_test_root)s' % lit_config.params
|
|
||||||
|
|
||||||
# Lit will default to the compiler used to build openmp, which is gcc, but we
|
|
||||||
# want to run the tests using clang.
|
|
||||||
config.test_compiler_features = ['clang', 'clang-11']
|
|
||||||
config.test_c_compiler = 'clang'
|
|
||||||
config.test_cxx_compiler = 'clang++'
|
|
||||||
lit_config.load_config(config, '%(libomp_test_root)s/lit.cfg' % lit_config.params)
|
|
Binary file not shown.
Binary file not shown.
@ -1,63 +0,0 @@
|
|||||||
#!/usr/bin/bash
|
|
||||||
|
|
||||||
set -e
|
|
||||||
|
|
||||||
usage() {
|
|
||||||
echo "usage: `basename $0` [OPTIONS]"
|
|
||||||
echo " --threads NUM The number of threads to use for running tests."
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
threads_arg=''
|
|
||||||
|
|
||||||
while [ $# -gt 0 ]; do
|
|
||||||
case $1 in
|
|
||||||
--threads)
|
|
||||||
shift
|
|
||||||
threads_arg="--threads $1"
|
|
||||||
;;
|
|
||||||
--multilib-arch)
|
|
||||||
shift
|
|
||||||
ARCH=$1
|
|
||||||
;;
|
|
||||||
* )
|
|
||||||
echo "unknown option: $1"
|
|
||||||
echo ""
|
|
||||||
usage
|
|
||||||
exit 1
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
shift
|
|
||||||
done
|
|
||||||
|
|
||||||
|
|
||||||
set -xe
|
|
||||||
|
|
||||||
if [ -z "$ARCH" ]; then
|
|
||||||
ARCH=`rpm --eval '%_arch'`
|
|
||||||
fi
|
|
||||||
|
|
||||||
case $ARCH in
|
|
||||||
arm)
|
|
||||||
;&
|
|
||||||
i686)
|
|
||||||
LIB_DIR="/usr/lib/"
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
LIB_DIR="/usr/lib64/"
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
BIN_DIR="/usr/bin/"
|
|
||||||
INCLUDE_DIR="/usr/include/"
|
|
||||||
|
|
||||||
lit $threads_arg -v \
|
|
||||||
--config-prefix $ARCH \
|
|
||||||
-Dlibomp_compiler=clang \
|
|
||||||
-Dbindir=$BIN_DIR \
|
|
||||||
-Dlibdir=$LIB_DIR \
|
|
||||||
-Dincludedir=$INCLUDE_DIR \
|
|
||||||
-Dlibomp_test_root=/usr/share/libomp/src/runtime/test \
|
|
||||||
/usr/share/libomp/src/runtime/test
|
|
||||||
|
|
||||||
exit 0
|
|
4
sources
4
sources
@ -1,4 +0,0 @@
|
|||||||
SHA512 (openmp-16.0.6.src.tar.xz) = b68b60bd10ae6df3853513c163d6d6dc040cdcd4b48802002cd0da24d3c3bc88002e432012081beff15e887fb12b71ef0932f89f21229a80c61568c1643460fc
|
|
||||||
SHA512 (openmp-16.0.6.src.tar.xz.sig) = e9e8e4c330d9ee246d0d83fb0d83805368e591d8e9e0ab1d27084655a6b2653e20f8ef5bfa59ae7e373a771df74114e5ee0a216e5f3a07e6b57769501b1900cf
|
|
||||||
SHA512 (cmake-16.0.6.src.tar.xz) = 52ecd941d2d85a5b668caa5d0d40480cb6a97b3bf1174e634c2a93e9ef6d03670ca7e96abb0a60cb33ba537b93d5788754dab1f2f45c1f623f788162717d088b
|
|
||||||
SHA512 (cmake-16.0.6.src.tar.xz.sig) = d20c5e51315aa476775e6ce886684b9f882ce283fc40aa6c1b8f03964c77a1e745e2e1fb00b3488dddfe1a04378e2bfd090350de28e58088525a5305ecb1bea6
|
|
@ -1,53 +0,0 @@
|
|||||||
#
|
|
||||||
# Build/PR gating tests for *LLVM 13*
|
|
||||||
#
|
|
||||||
# Imports and runs tests provided by Fedora LLVM git for the matching LLVM version.
|
|
||||||
#
|
|
||||||
# NOTE: *always* keep this file in sync with upstream, i.e. Fedora. Since we cannot "discover" a plan,
|
|
||||||
# we must duplicate at least some part of upstream plan setup, like `adjust` or `provision`. Not necessarily
|
|
||||||
# all steps, but if we do need some of them here, let's focus on making changes in upstream first, to preserve
|
|
||||||
# one source of truth. Once TMT learns to include whole plans, we could drop the copied content from here.
|
|
||||||
#
|
|
||||||
|
|
||||||
summary: libomp tests for build/PR gating
|
|
||||||
adjust:
|
|
||||||
- because: "Plan to be ran when either executed locally, or executed by CI system to gate a build or PR."
|
|
||||||
when: >-
|
|
||||||
trigger is defined
|
|
||||||
and trigger != commit
|
|
||||||
and trigger != build
|
|
||||||
enabled: false
|
|
||||||
|
|
||||||
# Unfortunately, TMT does not support more declarative approach, we need to run commands on our own.
|
|
||||||
- because: "On RHEL, CRB must be enabled to provide rarer packages"
|
|
||||||
when: >-
|
|
||||||
distro == rhel-9
|
|
||||||
or distro == rhel-8
|
|
||||||
prepare+:
|
|
||||||
- name: Enable CRB
|
|
||||||
how: shell
|
|
||||||
script: dnf config-manager --set-enabled rhel-CRB
|
|
||||||
|
|
||||||
- because: "On CentOS, CRB must be enabled to provide rarer packages"
|
|
||||||
when: >-
|
|
||||||
distro == centos
|
|
||||||
prepare+:
|
|
||||||
- name: Enable CRB
|
|
||||||
how: shell
|
|
||||||
script: dnf config-manager --set-enabled crb
|
|
||||||
|
|
||||||
discover:
|
|
||||||
- name: libomp-upstream-tests
|
|
||||||
how: fmf
|
|
||||||
url: https://src.fedoraproject.org/rpms/libomp.git
|
|
||||||
ref: rawhide
|
|
||||||
- name: upstream-llvm-integration-testsuite
|
|
||||||
how: fmf
|
|
||||||
url: https://src.fedoraproject.org/rpms/llvm.git
|
|
||||||
ref: rawhide
|
|
||||||
test: integration-test-suite
|
|
||||||
execute:
|
|
||||||
how: tmt
|
|
||||||
provision:
|
|
||||||
hardware:
|
|
||||||
memory: ">= 4 GiB"
|
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user