Skip to content

Commit

Permalink
devel/onetbb: Update to 2021.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
martymac committed Jul 9, 2021
1 parent 2602a64 commit 0da9b8b
Show file tree
Hide file tree
Showing 20 changed files with 46 additions and 55 deletions.
11 changes: 1 addition & 10 deletions devel/onetbb/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Created by: Arun Sharma <arun@sharma-home.net>

PORTNAME= onetbb
PORTVERSION= 2021.2.0
PORTVERSION= 2021.3.0
DISTVERSIONPREFIX= v
CATEGORIES= devel

Expand All @@ -25,12 +25,6 @@ USE_GITHUB= yes
GH_ACCOUNT= oneapi-src
GH_PROJECT= oneTBB

SUB_FILES= onetbb.pc
SUB_LIST= prefix="${PREFIX}" \
name="${PORTNAME}" \
description="${COMMENT}" \
version="${PORTVERSION}"

USE_LDCONFIG= yes

PORTDOCS= README.md
Expand All @@ -43,7 +37,4 @@ OPTIONS_DEFINE= DOCS
EXTRA_PATCHES= ${FILESDIR}/extra-patch-src_tbb_tools__api_ittnotify__config.h
.endif

post-install:
${INSTALL_DATA} ${WRKDIR}/onetbb.pc ${STAGEDIR}${PREFIX}/libdata/pkgconfig

.include <bsd.port.post.mk>
6 changes: 3 additions & 3 deletions devel/onetbb/distinfo
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
TIMESTAMP = 1617819323
SHA256 (oneapi-src-oneTBB-v2021.2.0_GH0.tar.gz) = cee20b0a71d977416f3e3b4ec643ee4f38cedeb2a9ff015303431dd9d8d79854
SIZE (oneapi-src-oneTBB-v2021.2.0_GH0.tar.gz) = 1606919
TIMESTAMP = 1625085505
SHA256 (oneapi-src-oneTBB-v2021.3.0_GH0.tar.gz) = 8f616561603695bbb83871875d2c6051ea28f8187dbe59299961369904d1d49e
SIZE (oneapi-src-oneTBB-v2021.3.0_GH0.tar.gz) = 1651329
10 changes: 0 additions & 10 deletions devel/onetbb/files/onetbb.pc.in

This file was deleted.

12 changes: 0 additions & 12 deletions devel/onetbb/files/patch-test-common-memory_usage.h

This file was deleted.

16 changes: 16 additions & 0 deletions devel/onetbb/files/patch-test-common-utils_concurrency_limit.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
Backport edc39b844a483b69c39c64a136c4d62342884892 and 5c5d500d4fd502baed5176a19306e70c72d9c4e4

--- test/common/utils_concurrency_limit.h.orig 2021-06-30 08:19:55 UTC
+++ test/common/utils_concurrency_limit.h
@@ -166,9 +166,10 @@ int limit_number_of_threads( int max_threads ) {

#endif // __TBB_TEST_SKIP_AFFINITY

-#define OS_AFFINITY_SYSCALL_PRESENT ((__linux__ && !__ANDROID__) || (__FreeBSD_version >= 701000))
+#define OS_AFFINITY_SYSCALL_PRESENT (__linux__ && !__ANDROID__)

#if OS_AFFINITY_SYSCALL_PRESENT
+
void get_thread_affinity_mask(std::size_t& ncpus, std::vector<int>& free_indexes) {
cpu_set_t* mask = nullptr;
ncpus = sizeof(cpu_set_t) * CHAR_BIT;
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
error: comparison of integers of different signs: 'size_t' (aka 'unsigned long') and 'rlim_t' (aka 'long')
Backport b2b2a9d65b30b869962de8140a44f5b29a3072fd

--- test/tbbmalloc/test_malloc_compliance.cpp.orig 2020-12-08 11:00:57 UTC
--- test/tbbmalloc/test_malloc_compliance.cpp.orig 2021-06-30 08:19:55 UTC
+++ test/tbbmalloc/test_malloc_compliance.cpp
@@ -91,7 +91,7 @@ void limitMem( size_t limit )
}
if (rlim.rlim_max==(rlim_t)RLIM_INFINITY)
rlim.rlim_cur = (limit > 0) ? limit*MByte : rlim.rlim_max;
- else rlim.rlim_cur = (limit > 0 && limit<rlim.rlim_max) ? limit*MByte : rlim.rlim_max;
+ else rlim.rlim_cur = (limit > 0 && limit<(size_t)rlim.rlim_max) ? limit*MByte : rlim.rlim_max;
+ else rlim.rlim_cur = (limit > 0 && static_cast<rlim_t>(limit)<rlim.rlim_max) ? limit*MByte : rlim.rlim_max;
ret = setrlimit(RLIMIT_AS,&rlim);
if (0 != ret) {
REPORT("Can't set limits: errno %d\n", errno);
15 changes: 10 additions & 5 deletions devel/onetbb/pkg-plist
Original file line number Diff line number Diff line change
Expand Up @@ -38,25 +38,29 @@ include/oneapi/tbb/detail/_flow_graph_trace_impl.h
include/oneapi/tbb/detail/_flow_graph_types_impl.h
include/oneapi/tbb/detail/_hash_compare.h
include/oneapi/tbb/detail/_machine.h
include/oneapi/tbb/detail/_mutex_common.h
include/oneapi/tbb/detail/_namespace_injection.h
include/oneapi/tbb/detail/_node_handle.h
include/oneapi/tbb/detail/_pipeline_filters.h
include/oneapi/tbb/detail/_pipeline_filters_deduction.h
include/oneapi/tbb/detail/_range_common.h
include/oneapi/tbb/detail/_rtm_mutex.h
include/oneapi/tbb/detail/_rtm_rw_mutex.h
include/oneapi/tbb/detail/_scoped_lock.h
include/oneapi/tbb/detail/_segment_table.h
include/oneapi/tbb/detail/_small_object_pool.h
include/oneapi/tbb/detail/_string_resource.h
include/oneapi/tbb/detail/_task.h
include/oneapi/tbb/detail/_template_helpers.h
include/oneapi/tbb/detail/_utils.h
include/oneapi/tbb/detail/_waitable_atomic.h
include/oneapi/tbb/enumerable_thread_specific.h
include/oneapi/tbb/flow_graph.h
include/oneapi/tbb/flow_graph_abstractions.h
include/oneapi/tbb/global_control.h
include/oneapi/tbb/info.h
include/oneapi/tbb/memory_pool.h
include/oneapi/tbb/mutex.h
include/oneapi/tbb/null_mutex.h
include/oneapi/tbb/null_rw_mutex.h
include/oneapi/tbb/parallel_for.h
Expand All @@ -70,6 +74,7 @@ include/oneapi/tbb/partitioner.h
include/oneapi/tbb/profiling.h
include/oneapi/tbb/queuing_mutex.h
include/oneapi/tbb/queuing_rw_mutex.h
include/oneapi/tbb/rw_mutex.h
include/oneapi/tbb/scalable_allocator.h
include/oneapi/tbb/spin_mutex.h
include/oneapi/tbb/spin_rw_mutex.h
Expand Down Expand Up @@ -133,14 +138,14 @@ lib/cmake/TBB/TBBTargets-%%CMAKE_BUILD_TYPE%%.cmake
lib/cmake/TBB/TBBTargets.cmake
lib/libtbb.so
lib/libtbb.so.12
lib/libtbb.so.12.2
lib/libtbb.so.12.3
lib/libtbbbind_2_4.so
lib/libtbbbind_2_4.so.3
lib/libtbbbind_2_4.so.3.2
lib/libtbbbind_2_4.so.3.3
lib/libtbbmalloc.so
lib/libtbbmalloc.so.2
lib/libtbbmalloc.so.2.2
lib/libtbbmalloc.so.2.3
lib/libtbbmalloc_proxy.so
lib/libtbbmalloc_proxy.so.2
lib/libtbbmalloc_proxy.so.2.2
libdata/pkgconfig/onetbb.pc
lib/libtbbmalloc_proxy.so.2.3
libdata/pkgconfig/tbb.pc
2 changes: 1 addition & 1 deletion graphics/blender-lts28/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
PORTNAME= blender
DISTVERSION= 2.83.15
PORTREVISION= 3
PORTREVISION= 4
CATEGORIES= graphics multimedia
MASTER_SITES= http://download.blender.org/source/ \
http://mirror.cs.umn.edu/blender.org/source/ \
Expand Down
2 changes: 1 addition & 1 deletion graphics/blender/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

PORTNAME= blender
DISTVERSION= 2.91.0
PORTREVISION= 9
PORTREVISION= 10
CATEGORIES= graphics multimedia
MASTER_SITES= http://download.blender.org/source/ \
http://mirror.cs.umn.edu/blender.org/source/ \
Expand Down
2 changes: 1 addition & 1 deletion graphics/embree/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
PORTNAME= embree
PORTVERSION= 3.13.0
DISTVERSIONPREFIX= v
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= graphics

MAINTAINER= danfe@FreeBSD.org
Expand Down
1 change: 1 addition & 0 deletions graphics/oidn/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
PORTNAME= oidn
DISTVERSIONPREFIX= v
DISTVERSION= 1.4.1
PORTREVISION= 1
CATEGORIES= graphics
MASTER_SITES= http://freebsd.org/:weights # bogus URL to make the framework happy, the fetch uses Git URL below
DISTFILES= ${PORTNAME}-weights-${WEIGHTS_GIT_HASH}${EXTRACT_SUFX}:weights
Expand Down
2 changes: 1 addition & 1 deletion graphics/openimageio/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ DISTVERSION= 2.2.13.1
# py-openimageio's PORTREVISION.
# Also, just to be on the safe side, when resetting,
# best keep PORTREVISION?= 0.
PORTREVISION?= 4
PORTREVISION?= 5
CATEGORIES?= graphics multimedia

MAINTAINER?= FreeBSD@Shaneware.biz
Expand Down
2 changes: 1 addition & 1 deletion math/dune-common/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PORTNAME= dune-common
DISTVERSIONPREFIX= v
DISTVERSION= 2.7.1
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= math

MAINTAINER= yuri@FreeBSD.org
Expand Down
2 changes: 1 addition & 1 deletion math/dune-geometry/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PORTNAME= dune-geometry
DISTVERSIONPREFIX= v
DISTVERSION= 2.7.1
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= math

MAINTAINER= yuri@FreeBSD.org
Expand Down
2 changes: 1 addition & 1 deletion math/dune-grid/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PORTNAME= dune-grid
DISTVERSIONPREFIX= v
DISTVERSION= 2.7.1
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= math

MAINTAINER= yuri@FreeBSD.org
Expand Down
2 changes: 1 addition & 1 deletion math/dune-pdelab/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PORTNAME= dune-pdelab
DISTVERSIONPREFIX= v
DISTVERSION= 2.7.0
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= math

MAINTAINER= yuri@FreeBSD.org
Expand Down
2 changes: 1 addition & 1 deletion math/dune-uggrid/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PORTNAME= dune-uggrid
DISTVERSIONPREFIX= v
DISTVERSION= 2.7.1
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= math

MAINTAINER= yuri@FreeBSD.org
Expand Down
2 changes: 1 addition & 1 deletion math/openturns/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PORTNAME= openturns
DISTVERSIONPREFIX= v
DISTVERSION= 1.17
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= math

MAINTAINER= yuri@FreeBSD.org
Expand Down
2 changes: 1 addition & 1 deletion math/saga/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

PORTNAME= saga
PORTVERSION= 7.9.0
PORTREVISION= 5
PORTREVISION= 6
CATEGORIES= math
MASTER_SITES= SF/saga-gis/SAGA%20-%20${PORTVERSION:C/\.[[:digit:]]\.[[:digit:]]*$//}/SAGA%20-%20${PORTVERSION}

Expand Down
2 changes: 1 addition & 1 deletion misc/ngraph/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ PORTNAME= ngraph
DISTVERSIONPREFIX= v
DISTVERSION= 0.29.0-rc.0-345
DISTVERSIONSUFFIX= -g58b649aa6
PORTREVISION= 6
PORTREVISION= 7
CATEGORIES= misc # machine-learning
PKGNAMESUFFIX= -machine-learning-library

Expand Down

0 comments on commit 0da9b8b

Please sign in to comment.