Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-libs/libomp/
Date: Sat, 14 Dec 2019 09:55:23
Message-Id: 1576317309.1f609d67e6d859f1e5c3704310e20c3fd5cc0345.mgorny@gentoo
1 commit: 1f609d67e6d859f1e5c3704310e20c3fd5cc0345
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sat Dec 14 08:57:08 2019 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sat Dec 14 09:55:09 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1f609d67
7
8 sys-libs/libomp: Bump to 9.0.1_rc3
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 sys-libs/libomp/Manifest | 1 +
13 sys-libs/libomp/libomp-9.0.1_rc3.ebuild | 106 ++++++++++++++++++++++++++++++++
14 2 files changed, 107 insertions(+)
15
16 diff --git a/sys-libs/libomp/Manifest b/sys-libs/libomp/Manifest
17 index 7de934fd969..6da90755254 100644
18 --- a/sys-libs/libomp/Manifest
19 +++ b/sys-libs/libomp/Manifest
20 @@ -1,4 +1,5 @@
21 DIST llvmorg-9.0.1-rc2.tar.gz 113203311 BLAKE2B 6e426060853e1587febedb75189444a1451236b713f800a4f3401c54318e48b0f5e0c484e9e4ef261faceed9b43b445a4153b061d4dadcc617047f9320b4f56a SHA512 fececd9365645920b9afdad1e94d5e10553ad4a39d84b3ac811b86014c395d51f7e4dabe54bb095a99481400c408bee3c9a2044168724d5e094e3258587a5d2c
22 +DIST llvmorg-9.0.1-rc3.tar.gz 113205740 BLAKE2B 3ca81e812833ecc2ac1bacfdeb86f54609ee125ba7390ce6af0113e949496149102360f35a9a0194dff93fb5cb6ade40a68382a03a7e55771a13198abb7ca9de SHA512 ea56a4ee57aacdd00a1d6551cdc768ecce3124a0eb6a9d09fe060bb147019a5119b2a9eaca576474be42e0296293daa923edd86dadb6759df0c2d7fc7a74f9f1
23 DIST openmp-7.1.0.src.tar.xz 909320 BLAKE2B 7a5fd4374992b7c440ff27917c0af6a2ec64aaeb2fda645f75b5affd4981e3ceef7f15cba61c37934c5b35be543af315cc4bff2937545fbf5eaa6593f1aa8b83 SHA512 57f18beede401c1c39766e13a03b52083a0f7b437758069f66b73d6d1388dc51e48c34b0a7ecd3552244fd35e2db57388642588febef413c161f5c5411ab1e5d
24 DIST openmp-8.0.1.src.tar.xz 933320 BLAKE2B 02a7bf70cd3a217845ef1c5a35e0d7dbfbb39069a9029d462c797b5ddf2240fd627dee55856146ca4bb81622a41f31ecd11e0ed66baf3b7d99447087271991b0 SHA512 9ded785c8129e7b3a70b54f07c4dde529456edcc94904ad77fc578cf7f096cfa3ff2279959d7f7f1db51571e11c53375f33b597c7f36ce6dc6b512c44ced8026
25 DIST openmp-9.0.0.src.tar.xz 939036 BLAKE2B 3eee75f05f65a294db6e65c29b8871bb2dd4e0ee753447d2356010ca1a114f3ad2dc54c2f39ad7ffcebd510d912e96f54a2884ecdc7f50864f909184c707e7a5 SHA512 0be0e95026db574ad75d4a9d2fe4234056d16dc4fe24760f3e9e39f3e10099c7eea4ff76d7236e5a570809111fa18fa017cb679391c16a995ba0c194eb9391d4
26
27 diff --git a/sys-libs/libomp/libomp-9.0.1_rc3.ebuild b/sys-libs/libomp/libomp-9.0.1_rc3.ebuild
28 new file mode 100644
29 index 00000000000..50704d49743
30 --- /dev/null
31 +++ b/sys-libs/libomp/libomp-9.0.1_rc3.ebuild
32 @@ -0,0 +1,106 @@
33 +# Copyright 1999-2019 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +
38 +PYTHON_COMPAT=( python{2_7,3_{5,6,7}} )
39 +inherit cmake-multilib linux-info llvm.org multiprocessing python-any-r1
40 +
41 +DESCRIPTION="OpenMP runtime library for LLVM/clang compiler"
42 +HOMEPAGE="https://openmp.llvm.org"
43 +LLVM_COMPONENTS=( openmp )
44 +llvm.org_set_globals
45 +
46 +LICENSE="Apache-2.0-with-LLVM-exceptions || ( UoI-NCSA MIT )"
47 +SLOT="0"
48 +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86 ~amd64-linux ~x64-macos"
49 +IUSE="cuda hwloc kernel_linux offload ompt test"
50 +# CUDA works only with the x86_64 ABI
51 +REQUIRED_USE="offload? ( cuda? ( abi_x86_64 ) )"
52 +RESTRICT="!test? ( test )"
53 +
54 +RDEPEND="
55 + hwloc? ( sys-apps/hwloc:0=[${MULTILIB_USEDEP}] )
56 + offload? (
57 + virtual/libelf:=[${MULTILIB_USEDEP}]
58 + virtual/libffi:=[${MULTILIB_USEDEP}]
59 + cuda? ( dev-util/nvidia-cuda-toolkit:= )
60 + )"
61 +# tests:
62 +# - dev-python/lit provides the test runner
63 +# - sys-devel/llvm provide test utils (e.g. FileCheck)
64 +# - sys-devel/clang provides the compiler to run tests
65 +DEPEND="${RDEPEND}"
66 +BDEPEND="dev-lang/perl
67 + offload? ( virtual/pkgconfig[${MULTILIB_USEDEP}] )
68 + test? (
69 + $(python_gen_any_dep 'dev-python/lit[${PYTHON_USEDEP}]')
70 + >=sys-devel/clang-6
71 + )"
72 +
73 +# least intrusive of all
74 +CMAKE_BUILD_TYPE=RelWithDebInfo
75 +
76 +python_check_deps() {
77 + has_version "dev-python/lit[${PYTHON_USEDEP}]"
78 +}
79 +
80 +kernel_pds_check() {
81 + if use kernel_linux && kernel_is -lt 4 15 && kernel_is -ge 4 13; then
82 + local CONFIG_CHECK="~!SCHED_PDS"
83 + local ERROR_SCHED_PDS="\
84 +PDS scheduler versions >= 0.98c < 0.98i (e.g. used in kernels >= 4.13-pf11
85 +< 4.14-pf9) do not implement sched_yield() call which may result in horrible
86 +performance problems with libomp. If you are using one of the specified
87 +kernel versions, you may want to disable the PDS scheduler."
88 +
89 + check_extra_config
90 + fi
91 +}
92 +
93 +pkg_pretend() {
94 + kernel_pds_check
95 +}
96 +
97 +pkg_setup() {
98 + use test && python-any-r1_pkg_setup
99 +}
100 +
101 +multilib_src_configure() {
102 + local libdir="$(get_libdir)"
103 + local mycmakeargs=(
104 + -DOPENMP_LIBDIR_SUFFIX="${libdir#lib}"
105 +
106 + -DLIBOMP_USE_HWLOC=$(usex hwloc)
107 + -DLIBOMP_OMPT_SUPPORT=$(usex ompt)
108 +
109 + -DOPENMP_ENABLE_LIBOMPTARGET=$(usex offload)
110 +
111 + # do not install libgomp.so & libiomp5.so aliases
112 + -DLIBOMP_INSTALL_ALIASES=OFF
113 + # disable unnecessary hack copying stuff back to srcdir
114 + -DLIBOMP_COPY_EXPORTS=OFF
115 + )
116 + use offload && mycmakeargs+=(
117 + # this is non-fatal and libomp checks for CUDA conditionally
118 + # to ABI, so we can just ignore passing the wrong value
119 + # on non-amd64 ABIs
120 + -DCMAKE_DISABLE_FIND_PACKAGE_CUDA=$(usex !cuda)
121 + )
122 + use test && mycmakeargs+=(
123 + # this project does not use standard LLVM cmake macros
124 + -DOPENMP_LLVM_LIT_EXECUTABLE="${EPREFIX}/usr/bin/lit"
125 + -DOPENMP_LIT_ARGS="-vv;-j;${LIT_JOBS:-$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")}"
126 +
127 + -DOPENMP_TEST_C_COMPILER="$(type -P "${CHOST}-clang")"
128 + -DOPENMP_TEST_CXX_COMPILER="$(type -P "${CHOST}-clang++")"
129 + )
130 + cmake-utils_src_configure
131 +}
132 +
133 +multilib_src_test() {
134 + # respect TMPDIR!
135 + local -x LIT_PRESERVES_TMP=1
136 +
137 + cmake-utils_src_make check-libomp
138 +}