mirror of
https://src.fedoraproject.org/rpms/libomp.git
synced 2024-12-01 02:08:18 +00:00
Update to LLVM 16.0.0 RC1
This commit is contained in:
parent
fb36333d2a
commit
7b0c6905ec
2 changed files with 29 additions and 37 deletions
|
@ -1,26 +0,0 @@
|
||||||
From f2ddf903f588021507faefec15d360edb1e425e5 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Nikita Popov <npopov@redhat.com>
|
|
||||||
Date: Fri, 20 Jan 2023 10:11:01 +0100
|
|
||||||
Subject: [PATCH] [libomp] Explicitly include <string> header (NFC)
|
|
||||||
|
|
||||||
This is required to build against libstdc++ 13. Debug.h uses
|
|
||||||
std::stoi() from <string> without explicitly including it.
|
|
||||||
---
|
|
||||||
openmp/libomptarget/include/Debug.h | 1 +
|
|
||||||
1 file changed, 1 insertion(+)
|
|
||||||
|
|
||||||
diff --git a/openmp/libomptarget/include/Debug.h b/openmp/libomptarget/include/Debug.h
|
|
||||||
index 4e7da8b7d53f..387dfe50659e 100644
|
|
||||||
--- a/openmp/libomptarget/include/Debug.h
|
|
||||||
+++ b/openmp/libomptarget/include/Debug.h
|
|
||||||
@@ -39,6 +39,7 @@
|
|
||||||
|
|
||||||
#include <atomic>
|
|
||||||
#include <mutex>
|
|
||||||
+#include <string>
|
|
||||||
|
|
||||||
/// 32-Bit field data attributes controlling information presented to the user.
|
|
||||||
enum OpenMPInfoType : uint32_t {
|
|
||||||
--
|
|
||||||
2.39.0
|
|
||||||
|
|
40
libomp.spec
40
libomp.spec
|
@ -4,10 +4,11 @@
|
||||||
# https://bugzilla.redhat.com/show_bug.cgi?id=2158587
|
# https://bugzilla.redhat.com/show_bug.cgi?id=2158587
|
||||||
%undefine _include_frame_pointers
|
%undefine _include_frame_pointers
|
||||||
|
|
||||||
%global maj_ver 15
|
%global maj_ver 16
|
||||||
%global libomp_version %{maj_ver}.0.7
|
%global libomp_version %{maj_ver}.0.0
|
||||||
#global rc_ver 3
|
%global rc_ver 1
|
||||||
%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
|
||||||
|
@ -18,7 +19,7 @@
|
||||||
|
|
||||||
Name: libomp
|
Name: libomp
|
||||||
Version: %{libomp_version}%{?rc_ver:~rc%{rc_ver}}
|
Version: %{libomp_version}%{?rc_ver:~rc%{rc_ver}}
|
||||||
Release: 5%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: OpenMP runtime for clang
|
Summary: OpenMP runtime for clang
|
||||||
|
|
||||||
License: Apache-2.0 WITH LLVM-exception OR NCSA
|
License: Apache-2.0 WITH LLVM-exception OR NCSA
|
||||||
|
@ -28,9 +29,8 @@ Source1: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{libomp
|
||||||
Source2: release-keys.asc
|
Source2: release-keys.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
|
||||||
# TODO: Not needed with LLVM 16.
|
Source6: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{libomp_version}%{?rc_ver:-rc%{rc_ver}}/%{cmake_srcdir}.tar.xz.sig
|
||||||
Patch1: 0001-libomp-Explicitly-include-string-header-NFC.patch
|
|
||||||
|
|
||||||
BuildRequires: clang
|
BuildRequires: clang
|
||||||
# For clang-offload-packager
|
# For clang-offload-packager
|
||||||
|
@ -78,10 +78,16 @@ 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
|
||||||
|
# TODO: LIBOMP_HAVE_VERSION_SCRIPT_FLAG should be set automatically.
|
||||||
%cmake -GNinja \
|
%cmake -GNinja \
|
||||||
-DLIBOMP_INSTALL_ALIASES=OFF \
|
-DLIBOMP_INSTALL_ALIASES=OFF \
|
||||||
-DCMAKE_MODULE_PATH=%{_libdir}/cmake/llvm \
|
-DCMAKE_MODULE_PATH=%{_libdir}/cmake/llvm \
|
||||||
|
@ -92,7 +98,8 @@ OpenMP regression tests
|
||||||
%else
|
%else
|
||||||
-DOPENMP_LIBDIR_SUFFIX= \
|
-DOPENMP_LIBDIR_SUFFIX= \
|
||||||
%endif
|
%endif
|
||||||
-DCMAKE_SKIP_RPATH:BOOL=ON
|
-DCMAKE_SKIP_RPATH:BOOL=ON \
|
||||||
|
-DLIBOMP_HAVE_VERSION_SCRIPT_FLAG:BOOL=ON
|
||||||
|
|
||||||
%cmake_build
|
%cmake_build
|
||||||
|
|
||||||
|
@ -138,11 +145,15 @@ rm -rf %{buildroot}%{_libdir}/libarcher_static.a
|
||||||
%{_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.%{maj_ver}
|
%{_libdir}/libomptarget.rtl.amdgpu.so.%{maj_ver}
|
||||||
|
%{_libdir}/libomptarget.rtl.amdgpu.nextgen.so.%{maj_ver}
|
||||||
%{_libdir}/libomptarget.rtl.cuda.so.%{maj_ver}
|
%{_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}.so.%{maj_ver}
|
||||||
%endif
|
%{_libdir}/libomptarget.rtl.%{libomp_arch}.nextgen.so.%{maj_ver}
|
||||||
%{_libdir}/libomptarget.so.%{maj_ver}
|
%{_libdir}/libomptarget.so.%{maj_ver}
|
||||||
|
%endif
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%{_libdir}/clang/%{libomp_version}/include/omp.h
|
%{_libdir}/clang/%{libomp_version}/include/omp.h
|
||||||
|
@ -153,20 +164,27 @@ rm -rf %{buildroot}%{_libdir}/libarcher_static.a
|
||||||
%{_libdir}/clang/%{libomp_version}/include/ompt-multiplex.h
|
%{_libdir}/clang/%{libomp_version}/include/ompt-multiplex.h
|
||||||
%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
|
||||||
|
%{_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
|
||||||
%{_libdir}/libomptarget.devicertl.a
|
%{_libdir}/libomptarget.devicertl.a
|
||||||
%{_libdir}/libomptarget-amdgpu-*.bc
|
%{_libdir}/libomptarget-amdgpu-*.bc
|
||||||
%{_libdir}/libomptarget-nvptx-*.bc
|
%{_libdir}/libomptarget-nvptx-*.bc
|
||||||
%endif
|
|
||||||
%{_libdir}/libomptarget.so
|
%{_libdir}/libomptarget.so
|
||||||
|
%endif
|
||||||
|
|
||||||
%files test
|
%files test
|
||||||
%{_datadir}/libomp
|
%{_datadir}/libomp
|
||||||
%{_libexecdir}/tests/libomp/
|
%{_libexecdir}/tests/libomp/
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Feb 14 2023 Tulio Magno Quites Machado Filho <tuliom@redhat.com> - 16.0.0~rc1-1
|
||||||
|
- Update to LLVM 16.0.0 RC1
|
||||||
|
|
||||||
* Tue Jan 31 2023 Tulio Magno Quites Machado Filho <tuliom@redhat.com> - 15.0.7-5
|
* Tue Jan 31 2023 Tulio Magno Quites Machado Filho <tuliom@redhat.com> - 15.0.7-5
|
||||||
- Include the Apache license adopted in 2019.
|
- Include the Apache license adopted in 2019.
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue