From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lang/ispc/
Date: Sun, 31 Dec 2023 15:30:12 +0000 (UTC) [thread overview]
Message-ID: <1704036324.9b3e40bb2ab6366003b2dc967b3265a46a2fa14a.mgorny@gentoo> (raw)
commit: 9b3e40bb2ab6366003b2dc967b3265a46a2fa14a
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Dec 31 15:25:24 2023 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Dec 31 15:25:24 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9b3e40bb
dev-lang/ispc: Add OpenMP task model support
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
dev-lang/ispc/ispc-1.22.0-r1.ebuild | 12 +++++++++---
dev-lang/ispc/metadata.xml | 5 +++++
2 files changed, 14 insertions(+), 3 deletions(-)
diff --git a/dev-lang/ispc/ispc-1.22.0-r1.ebuild b/dev-lang/ispc/ispc-1.22.0-r1.ebuild
index 129779363d29..7b18a7303e8a 100644
--- a/dev-lang/ispc/ispc-1.22.0-r1.ebuild
+++ b/dev-lang/ispc/ispc-1.22.0-r1.ebuild
@@ -6,7 +6,7 @@ EAPI=8
PYTHON_COMPAT=( python3_{10..12} )
LLVM_MAX_SLOT=17
-inherit cmake multiprocessing python-any-r1 llvm
+inherit cmake llvm multiprocessing python-any-r1 toolchain-funcs
DESCRIPTION="Intel SPMD Program Compiler"
HOMEPAGE="
@@ -21,13 +21,13 @@ SRC_URI="
LICENSE="BSD BSD-2 UoI-NCSA"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
-IUSE="examples test"
+IUSE="examples openmp test"
RESTRICT="!test? ( test )"
DEPEND="
- dev-cpp/tbb:=
<sys-devel/clang-$((${LLVM_MAX_SLOT} + 1)):=
sys-libs/ncurses:=
+ !openmp? ( dev-cpp/tbb:= )
"
RDEPEND="
${DEPEND}
@@ -38,7 +38,12 @@ BDEPEND="
${PYTHON_DEPS}
"
+pkg_pretend() {
+ [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
+}
+
pkg_setup() {
+ [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
llvm_pkg_setup
python-any-r1_pkg_setup
}
@@ -62,6 +67,7 @@ src_configure() {
-DISPC_INCLUDE_EXAMPLES=OFF
-DISPC_INCLUDE_TESTS=$(usex test)
-DISPC_INCLUDE_UTILS=OFF
+ -DISPCRT_BUILD_TASK_MODEL=$(usex openmp OpenMP TBB)
)
cmake_src_configure
}
diff --git a/dev-lang/ispc/metadata.xml b/dev-lang/ispc/metadata.xml
index d25a0ca74f67..eb96ff15c20a 100644
--- a/dev-lang/ispc/metadata.xml
+++ b/dev-lang/ispc/metadata.xml
@@ -8,4 +8,9 @@
<upstream>
<remote-id type="github">ispc/ispc</remote-id>
</upstream>
+ <use>
+ <flag name="openmp">
+ Build with OpenMP task model (otherwise, TBB task model is used).
+ </flag>
+ </use>
</pkgmetadata>
next reply other threads:[~2023-12-31 15:30 UTC|newest]
Thread overview: 67+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-12-31 15:30 Michał Górny [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-11-23 17:23 [gentoo-commits] repo/gentoo:master commit in: dev-lang/ispc/ Michał Górny
2024-11-23 17:21 Michał Górny
2024-11-08 4:52 Michał Górny
2024-11-02 7:14 Michał Górny
2024-11-02 6:32 Michał Górny
2024-11-02 6:32 Michał Górny
2024-10-17 2:51 Michał Górny
2024-10-15 7:00 Michał Górny
2024-06-15 13:08 Michał Górny
2024-06-15 10:54 Arthur Zamarin
2024-05-23 2:11 Michał Górny
2024-03-10 3:35 Michał Górny
2024-03-09 21:10 Sam James
2024-02-16 5:40 Michał Górny
2024-01-25 3:14 Sam James
2023-12-31 14:56 Michał Górny
2023-12-31 10:07 Michał Górny
2023-12-31 9:57 Michał Górny
2023-12-31 9:57 Michał Górny
2023-10-19 15:13 Michał Górny
2023-06-12 15:44 Sam James
2023-02-26 8:27 罗百科
2023-01-26 20:51 Andreas Sturmlechner
2023-01-08 16:04 Joonas Niilola
2022-12-24 14:03 Andreas Sturmlechner
2022-12-24 14:01 Andreas Sturmlechner
2022-12-19 14:47 Andreas Sturmlechner
2022-10-13 10:31 Ionen Wolkens
2022-07-19 7:47 Michał Górny
2022-05-20 13:21 Joonas Niilola
2022-05-20 11:25 Joonas Niilola
2022-04-25 2:40 Sam James
2022-01-20 7:41 罗百科
2022-01-19 7:32 罗百科
2021-11-07 11:38 Jakov Smolić
2021-10-31 5:53 Sam James
2021-10-20 4:11 Sam James
2021-09-19 3:30 Sam James
2021-09-19 3:09 Sam James
2021-09-19 3:09 Sam James
2021-06-19 23:23 Ionen Wolkens
2021-06-19 23:23 Ionen Wolkens
2020-12-09 9:42 Joonas Niilola
2020-09-10 3:18 Sam James
2020-09-10 2:16 Sam James
2020-09-10 1:18 Sam James
2020-09-10 1:18 Sam James
2020-09-10 1:18 Sam James
2020-09-10 1:18 Sam James
2020-09-10 0:42 Sam James
2020-09-10 0:42 Sam James
2020-07-29 16:52 Andreas Sturmlechner
2018-04-11 16:19 Michał Górny
2018-04-04 13:17 Christoph Junghans
2017-09-29 22:40 Christoph Junghans
2017-07-30 8:47 Michał Górny
2017-03-19 14:06 Christoph Junghans
2016-07-13 15:26 Christoph Junghans
2016-07-13 15:26 Christoph Junghans
2016-07-12 19:31 Christoph Junghans
2016-05-30 20:11 Christoph Junghans
2016-05-30 20:11 Christoph Junghans
2015-10-20 23:27 Christoph Junghans
2015-10-20 16:01 Christoph Junghans
2015-10-07 15:59 Christoph Junghans
2015-10-07 15:59 Christoph Junghans
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1704036324.9b3e40bb2ab6366003b2dc967b3265a46a2fa14a.mgorny@gentoo \
--to=mgorny@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox