From: "Andrew Ammerlaan" <andrewammerlaan@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/sci:master commit in: sys-devel/oneDPL/
Date: Tue, 22 Aug 2023 10:13:40 +0000 (UTC) [thread overview]
Message-ID: <1692694569.6e87febfff9cc941d9a48a37d5999adc3feae6ec.andrewammerlaan@gentoo> (raw)
commit: 6e87febfff9cc941d9a48a37d5999adc3feae6ec
Author: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
AuthorDate: Tue Aug 22 08:56:09 2023 +0000
Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
CommitDate: Tue Aug 22 08:56:09 2023 +0000
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=6e87febf
sys-devel/oneDPL: add 2022.2.0
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>
sys-devel/oneDPL/oneDPL-2022.2.0.ebuild | 66 +++++++++++++++++++++++++++++++++
1 file changed, 66 insertions(+)
diff --git a/sys-devel/oneDPL/oneDPL-2022.2.0.ebuild b/sys-devel/oneDPL/oneDPL-2022.2.0.ebuild
new file mode 100644
index 000000000..7b1010ab1
--- /dev/null
+++ b/sys-devel/oneDPL/oneDPL-2022.2.0.ebuild
@@ -0,0 +1,66 @@
+# Copyright 2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+# Missing deps for documentation
+# PYTHON_COMPAT=( python3_{10..11} )
+# DOCS_BUILDER="sphinx"
+# DOCS_DIR="documentation/library_guide"
+# DOCS_AUTODOC=0
+inherit cmake #python-any-r1 docs
+
+DESCRIPTION="oneAPI Data Parallel C++ Library"
+HOMEPAGE="https://github.com/oneapi-src/oneDPL"
+SRC_URI="https://github.com/oneapi-src/oneDPL/archive/refs/tags/${P}-rc1.tar.gz"
+S="${WORKDIR}/${PN}-${P}-rc1"
+
+LICENSE="Apache-2.0-with-LLVM-exceptions"
+SLOT="0"
+KEYWORDS="~amd64"
+
+IUSE="esimd_emulator"
+#TODO: Figure out how to use the test
+RESTRICT="test"
+
+BDEPEND="virtual/pkgconfig"
+
+DEPEND="
+ sys-devel/DPC++:0/6[esimd_emulator?]
+ dev-libs/level-zero
+ dev-cpp/tbb
+"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ # Not using the DPC++ compiler doesn't really make sense here
+ export CXX="${ESYSROOT}/usr/lib/llvm/intel/bin/clang++"
+ export CC="${ESYSROOT}/usr/lib/llvm/intel/bin/clang"
+ cmake_src_prepare
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DONEDPL_DEVICE_TYPE="GPU"
+ -DONEDPL_DEVICE_BACKEND="level_zero"
+ -DONEDPL_BACKEND="dpcpp"
+ -DONEDPL_ENABLE_SIMD="$(usex esimd_emulator)"
+ )
+
+ cmake_src_configure
+}
+
+src_compile() {
+ cmake_src_compile
+ cmake -P cmake/scripts/generate_config.cmake || die
+ # docs_compile
+}
+
+src_install() {
+ einstalldocs
+ doheader -r "${S}/include/oneapi"
+ insinto "/usr/$(get_libdir)/cmake/oneDPL/"
+ doins output/*.cmake
+ insinto "/usr/$(get_libdir)/pkgconfig/"
+ doins output/pkgconfig-lin/*.pc
+}
next reply other threads:[~2023-08-22 10:13 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-22 10:13 Andrew Ammerlaan [this message]
-- strict thread matches above, loose matches on Subject: below --
2023-02-25 9:24 [gentoo-commits] proj/sci:master commit in: sys-devel/oneDPL/ Andrew Ammerlaan
2023-02-25 8:54 Andrew Ammerlaan
2022-12-12 15:16 Andrew Ammerlaan
2022-12-06 18:53 Andrew Ammerlaan
2022-12-01 21:39 Andrew Ammerlaan
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=1692694569.6e87febfff9cc941d9a48a37d5999adc3feae6ec.andrewammerlaan@gentoo \
--to=andrewammerlaan@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