Accepting request 1055995 from home:glaubitz:branches:devel:libraries:c_c++
- Update to v2021.8.0 * Fixed oneapi::tbb::concurrent_bounded_queue::pop return type (GitHub* #807). * Fixed oneapi::tbb::concurrent_queue and oneapi::tbb::concurrent_bounded_queue with non-default constructible value types (GitHub* #885). * Fixed incorrect splitting of iteration space in case there is no support for proportional splitting in custom ranges. - Add patch to link against libatomic where necessary * add-cmake-check-for-libatomic-requirement-when-build.patch - Drop 5cb212d44732947396abdd39eae1229c7cd51644.patch, merged upstream - Use correct changelog entries for v2021.7.0 * Memory allocator crash when allocating ~1TB on 64-bit systems (GitHub* #838). * Thread Distribution over NUMA Nodes on Windows OS systems. * For oneapi::tbb::suspend it is now guaranteed that the user-specified callable object is executed by the calling thread. OBS-URL: https://build.opensuse.org/request/show/1055995 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/tbb?expand=0&rev=81
This commit is contained in:
parent
b526b3db07
commit
4979ce178a
@ -1,43 +0,0 @@
|
|||||||
From 5cb212d44732947396abdd39eae1229c7cd51644 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Kirigami <prcups@v-signal.xyz>
|
|
||||||
Date: Sun, 14 Aug 2022 16:21:51 +0800
|
|
||||||
Subject: [PATCH] add loongarch support (#850)
|
|
||||||
|
|
||||||
* add loongarch support
|
|
||||||
|
|
||||||
* update the copyright year of ittnotify_config.h
|
|
||||||
---
|
|
||||||
src/tbb/tools_api/ittnotify_config.h | 8 +++++++-
|
|
||||||
1 file changed, 7 insertions(+), 1 deletion(-)
|
|
||||||
|
|
||||||
diff --git a/src/tbb/tools_api/ittnotify_config.h b/src/tbb/tools_api/ittnotify_config.h
|
|
||||||
index f904a8e9d..5e7c0cdf5 100644
|
|
||||||
--- a/src/tbb/tools_api/ittnotify_config.h
|
|
||||||
+++ b/src/tbb/tools_api/ittnotify_config.h
|
|
||||||
@@ -1,5 +1,5 @@
|
|
||||||
/*
|
|
||||||
- Copyright (c) 2005-2021 Intel Corporation
|
|
||||||
+ Copyright (c) 2005-2022 Intel Corporation
|
|
||||||
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
you may not use this file except in compliance with the License.
|
|
||||||
@@ -163,6 +163,10 @@
|
|
||||||
# define ITT_ARCH_ARM64 6
|
|
||||||
#endif /* ITT_ARCH_ARM64 */
|
|
||||||
|
|
||||||
+#ifndef ITT_ARCH_LOONGARCH64
|
|
||||||
+# define ITT_ARCH_LOONGARCH64 7
|
|
||||||
+#endif /* ITT_ARCH_LOONGARCH64 */
|
|
||||||
+
|
|
||||||
#ifndef ITT_ARCH
|
|
||||||
# if defined _M_IX86 || defined __i386__
|
|
||||||
# define ITT_ARCH ITT_ARCH_IA32
|
|
||||||
@@ -176,6 +180,8 @@
|
|
||||||
# define ITT_ARCH ITT_ARCH_ARM64
|
|
||||||
# elif defined __powerpc64__
|
|
||||||
# define ITT_ARCH ITT_ARCH_PPC64
|
|
||||||
+# elif defined __loongarch__
|
|
||||||
+# define ITT_ARCH ITT_ARCH_LOONGARCH64
|
|
||||||
# endif
|
|
||||||
#endif
|
|
||||||
|
|
41
add-cmake-check-for-libatomic-requirement-when-build.patch
Normal file
41
add-cmake-check-for-libatomic-requirement-when-build.patch
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
From faea2c59a95ff609d23a4e4f859edef83d02f417 Mon Sep 17 00:00:00 2001
|
||||||
|
From: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
|
||||||
|
Date: Fri, 9 Dec 2022 12:36:11 +0100
|
||||||
|
Subject: [PATCH] Add cmake check for libatomic requirement when building with
|
||||||
|
gcc (#980)
|
||||||
|
|
||||||
|
Signed-off-by: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
|
||||||
|
---
|
||||||
|
cmake/compilers/GNU.cmake | 16 ++++++++++++++++
|
||||||
|
1 file changed, 16 insertions(+)
|
||||||
|
|
||||||
|
diff --git a/cmake/compilers/GNU.cmake b/cmake/compilers/GNU.cmake
|
||||||
|
index cd76acfe..59f4e693 100644
|
||||||
|
--- a/cmake/compilers/GNU.cmake
|
||||||
|
+++ b/cmake/compilers/GNU.cmake
|
||||||
|
@@ -44,6 +44,22 @@ if (NOT MINGW)
|
||||||
|
set(TBB_COMMON_LINK_LIBS dl)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
+# Check whether code with full atomics can be built without libatomic
|
||||||
|
+# see: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81358
|
||||||
|
+include(CheckCXXSourceCompiles)
|
||||||
|
+check_cxx_source_compiles("#include <atomic>
|
||||||
|
+int main() {
|
||||||
|
+ std::atomic<uint8_t> w1;
|
||||||
|
+ std::atomic<uint16_t> w2;
|
||||||
|
+ std::atomic<uint32_t> w4;
|
||||||
|
+ std::atomic<uint64_t> w8;
|
||||||
|
+ return ++w1 + ++w2 + ++w4 + ++w8;
|
||||||
|
+}" TBB_BUILDS_WITHOUT_LIBATOMIC)
|
||||||
|
+
|
||||||
|
+if(NOT TBB_BUILDS_WITHOUT_LIBATOMIC)
|
||||||
|
+ set(TBB_COMMON_LINK_LIBS ${TBB_COMMON_LINK_LIBS} atomic)
|
||||||
|
+endif()
|
||||||
|
+
|
||||||
|
# Ignore -Werror set through add_compile_options() or added to CMAKE_CXX_FLAGS if TBB_STRICT is disabled.
|
||||||
|
if (NOT TBB_STRICT AND COMMAND tbb_remove_compile_flag)
|
||||||
|
tbb_remove_compile_flag(-Werror)
|
||||||
|
--
|
||||||
|
2.30.2
|
||||||
|
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:2cae2a80cda7d45dc7c072e4295c675fff5ad8316691f26f40539f7e7e54c0cc
|
|
||||||
size 2571727
|
|
BIN
tbb-2021.8.0.tar.gz
(Stored with Git LFS)
Normal file
BIN
tbb-2021.8.0.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
31
tbb.changes
31
tbb.changes
@ -1,20 +1,25 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Jan 4 20:08:08 UTC 2023 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
|
||||||
|
|
||||||
|
- Update to v2021.8.0
|
||||||
|
* Fixed oneapi::tbb::concurrent_bounded_queue::pop return type (GitHub* #807).
|
||||||
|
* Fixed oneapi::tbb::concurrent_queue and oneapi::tbb::concurrent_bounded_queue
|
||||||
|
with non-default constructible value types (GitHub* #885).
|
||||||
|
* Fixed incorrect splitting of iteration space in case there is no
|
||||||
|
support for proportional splitting in custom ranges.
|
||||||
|
- Add patch to link against libatomic where necessary
|
||||||
|
* add-cmake-check-for-libatomic-requirement-when-build.patch
|
||||||
|
- Drop 5cb212d44732947396abdd39eae1229c7cd51644.patch, merged upstream
|
||||||
|
- Use correct changelog entries for v2021.7.0
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sun Dec 11 18:37:06 UTC 2022 - Dirk Müller <dmueller@suse.com>
|
Sun Dec 11 18:37:06 UTC 2022 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
- update to v2021.7.0:
|
- update to v2021.7.0:
|
||||||
* Memory allocator crash on a system with an incomplete /proc/meminfo
|
* Memory allocator crash when allocating ~1TB on 64-bit systems (GitHub* #838).
|
||||||
(GitHub* #584).
|
* Thread Distribution over NUMA Nodes on Windows OS systems.
|
||||||
* Incorrect blocking of task stealing (GitHub* #478).
|
* For oneapi::tbb::suspend it is now guaranteed that the user-specified
|
||||||
* Hang due to incorrect decrement of a limiter_node (GitHub* #634).
|
callable object is executed by the calling thread.
|
||||||
* Memory corruption in some rare cases when passing big messages in a flow
|
|
||||||
graph (GitHub* #639).
|
|
||||||
* Possible deadlock in a throwable flow graph node with a lightweight
|
|
||||||
policy. The lightweight policy is now ignored for functors that can
|
|
||||||
throw exceptions (GitHub* #420).
|
|
||||||
* Crash when obtaining a range from empty ordered and unordered containers
|
|
||||||
(GitHub* #641).
|
|
||||||
* Deadlock in a concurrent_vector resize() that could happen when the new
|
|
||||||
size is less than the previous size (GitHub* #733).
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sat Sep 24 12:16:41 UTC 2022 - Dirk Müller <dmueller@suse.com>
|
Sat Sep 24 12:16:41 UTC 2022 - Dirk Müller <dmueller@suse.com>
|
||||||
|
4
tbb.spec
4
tbb.spec
@ -40,7 +40,7 @@
|
|||||||
%bcond_with python3
|
%bcond_with python3
|
||||||
%endif
|
%endif
|
||||||
Name: tbb
|
Name: tbb
|
||||||
Version: 2021.7.0
|
Version: 2021.8.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Threading Building Blocks (TBB)
|
Summary: Threading Building Blocks (TBB)
|
||||||
License: Apache-2.0
|
License: Apache-2.0
|
||||||
@ -48,11 +48,11 @@ Group: Development/Libraries/C and C++
|
|||||||
URL: https://www.threadingbuildingblocks.org/
|
URL: https://www.threadingbuildingblocks.org/
|
||||||
Source0: https://github.com/oneapi-src/oneTBB/archive/v%{version}.tar.gz#/tbb-%{version}.tar.gz
|
Source0: https://github.com/oneapi-src/oneTBB/archive/v%{version}.tar.gz#/tbb-%{version}.tar.gz
|
||||||
Source99: tbb-rpmlintrc
|
Source99: tbb-rpmlintrc
|
||||||
Patch0: https://github.com/oneapi-src/oneTBB/commit/5cb212d44732947396abdd39eae1229c7cd51644.patch
|
|
||||||
Patch1: https://github.com/oneapi-src/oneTBB/pull/917.patch
|
Patch1: https://github.com/oneapi-src/oneTBB/pull/917.patch
|
||||||
# PATCH-FIX-OPENSUSE cmake-remove-include-path.patch -- openCV include error
|
# PATCH-FIX-OPENSUSE cmake-remove-include-path.patch -- openCV include error
|
||||||
Patch2: cmake-remove-include-path.patch
|
Patch2: cmake-remove-include-path.patch
|
||||||
Patch3: retry-pthread_create.patch
|
Patch3: retry-pthread_create.patch
|
||||||
|
Patch4: add-cmake-check-for-libatomic-requirement-when-build.patch
|
||||||
BuildRequires: cmake
|
BuildRequires: cmake
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
|
Loading…
Reference in New Issue
Block a user