public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] proj/sci:master commit in: sys-devel/oneDPL/
@ 2022-12-01 21:39 Andrew Ammerlaan
  0 siblings, 0 replies; 6+ messages in thread
From: Andrew Ammerlaan @ 2022-12-01 21:39 UTC (permalink / raw
  To: gentoo-commits

commit:     2376be379ba28a6e57a4aaf9e8fab9ad7ce3a5aa
Author:     Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
AuthorDate: Thu Dec  1 21:30:23 2022 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
CommitDate: Thu Dec  1 21:39:31 2022 +0000
URL:        https://gitweb.gentoo.org/proj/sci.git/commit/?id=2376be37

sys-devel/oneDPL: new package, add 2021.7.1

See-also: https://github.com/gentoo/sci/pull/1040
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>

 sys-devel/oneDPL/metadata.xml           | 11 +++++++
 sys-devel/oneDPL/oneDPL-2021.7.1.ebuild | 57 +++++++++++++++++++++++++++++++++
 2 files changed, 68 insertions(+)

diff --git a/sys-devel/oneDPL/metadata.xml b/sys-devel/oneDPL/metadata.xml
new file mode 100644
index 000000000..5fbeb1b05
--- /dev/null
+++ b/sys-devel/oneDPL/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+	<maintainer type="project">
+		<email>sci@gentoo.org</email>
+		<name>Gentoo Science Project</name>
+	</maintainer>
+	<upstream>
+		<remote-id type="github">oneapi-src/oneDPL</remote-id>
+	</upstream>
+</pkgmetadata>

diff --git a/sys-devel/oneDPL/oneDPL-2021.7.1.ebuild b/sys-devel/oneDPL/oneDPL-2021.7.1.ebuild
new file mode 100644
index 000000000..e9f773726
--- /dev/null
+++ b/sys-devel/oneDPL/oneDPL-2021.7.1.ebuild
@@ -0,0 +1,57 @@
+# Copyright 2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{8..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}-release.tar.gz"
+S="${WORKDIR}/${PN}-${P}-release"
+
+LICENSE="Apache-2.0-with-LLVM-exceptions"
+SLOT="0"
+KEYWORDS="~amd64"
+
+#TODO: Figure out how to use the test
+RESTRICT="test"
+
+BDEPEND="virtual/pkgconfig"
+
+DEPEND="
+	sys-devel/DPC++
+	dev-libs/level-zero:=
+	dev-cpp/tbb:=
+"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+	cmake_src_prepare
+	# Not using the DPC++ compiler doesn't really make sense here
+	export CXX="${ESYSROOT}/usr/lib/llvm/intel/bin/clang"
+}
+
+src_configure() {
+	local mycmakeargs=(
+		-DONEDPL_DEVICE_BACKEND="level_zero"
+		-DONEDPL_BACKEND="dpcpp"
+	)
+
+	cmake_src_configure
+}
+
+src_compile() {
+	# Nothing to compile, header only
+	docs_compile
+}
+
+src_install() {
+	einstalldocs
+	dodir /usr/include
+	mv "${S}/include/oneapi" "${ED}/usr/include/" || die
+}


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [gentoo-commits] proj/sci:master commit in: sys-devel/oneDPL/
@ 2022-12-06 18:53 Andrew Ammerlaan
  0 siblings, 0 replies; 6+ messages in thread
From: Andrew Ammerlaan @ 2022-12-06 18:53 UTC (permalink / raw
  To: gentoo-commits

commit:     cc501074ea4617a32c89034fe0024eabba39b080
Author:     Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
AuthorDate: Tue Dec  6 18:53:10 2022 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
CommitDate: Tue Dec  6 18:53:10 2022 +0000
URL:        https://gitweb.gentoo.org/proj/sci.git/commit/?id=cc501074

sys-devel/oneDPL: restrict doc building, missing deps

Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>

 sys-devel/oneDPL/oneDPL-2021.7.1.ebuild | 22 +++++++++++-----------
 1 file changed, 11 insertions(+), 11 deletions(-)

diff --git a/sys-devel/oneDPL/oneDPL-2021.7.1.ebuild b/sys-devel/oneDPL/oneDPL-2021.7.1.ebuild
index e9f773726..01f225aea 100644
--- a/sys-devel/oneDPL/oneDPL-2021.7.1.ebuild
+++ b/sys-devel/oneDPL/oneDPL-2021.7.1.ebuild
@@ -3,11 +3,12 @@
 
 EAPI=8
 
-PYTHON_COMPAT=( python3_{8..11} )
-DOCS_BUILDER="sphinx"
-DOCS_DIR="documentation/library_guide"
-DOCS_AUTODOC=0
-inherit cmake python-any-r1 docs
+# Missing deps for documentation
+# PYTHON_COMPAT=( python3_{8..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"
@@ -25,8 +26,8 @@ BDEPEND="virtual/pkgconfig"
 
 DEPEND="
 	sys-devel/DPC++
-	dev-libs/level-zero:=
-	dev-cpp/tbb:=
+	dev-libs/level-zero
+	dev-cpp/tbb
 "
 RDEPEND="${DEPEND}"
 
@@ -46,12 +47,11 @@ src_configure() {
 }
 
 src_compile() {
-	# Nothing to compile, header only
-	docs_compile
+	cmake_src_compile
+	# docs_compile
 }
 
 src_install() {
 	einstalldocs
-	dodir /usr/include
-	mv "${S}/include/oneapi" "${ED}/usr/include/" || die
+	doheader -r "${S}/include/oneapi"
 }


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [gentoo-commits] proj/sci:master commit in: sys-devel/oneDPL/
@ 2022-12-12 15:16 Andrew Ammerlaan
  0 siblings, 0 replies; 6+ messages in thread
From: Andrew Ammerlaan @ 2022-12-12 15:16 UTC (permalink / raw
  To: gentoo-commits

commit:     44cc24ddc13674ce295cdee335581728ac9a1d4c
Author:     Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
AuthorDate: Mon Dec 12 10:31:25 2022 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
CommitDate: Mon Dec 12 10:33:36 2022 +0000
URL:        https://gitweb.gentoo.org/proj/sci.git/commit/?id=44cc24dd

sys-devel/oneDPL: restrict to DPC++ subslot 5

Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>

 sys-devel/oneDPL/oneDPL-2021.7.1.ebuild | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/sys-devel/oneDPL/oneDPL-2021.7.1.ebuild b/sys-devel/oneDPL/oneDPL-2021.7.1.ebuild
index 01f225aea..a7a6ee748 100644
--- a/sys-devel/oneDPL/oneDPL-2021.7.1.ebuild
+++ b/sys-devel/oneDPL/oneDPL-2021.7.1.ebuild
@@ -25,16 +25,17 @@ RESTRICT="test"
 BDEPEND="virtual/pkgconfig"
 
 DEPEND="
-	sys-devel/DPC++
+	sys-devel/DPC++:0/5
 	dev-libs/level-zero
 	dev-cpp/tbb
 "
 RDEPEND="${DEPEND}"
 
 src_prepare() {
-	cmake_src_prepare
 	# Not using the DPC++ compiler doesn't really make sense here
-	export CXX="${ESYSROOT}/usr/lib/llvm/intel/bin/clang"
+	export CXX="${ESYSROOT}/usr/lib/llvm/intel/bin/clang++"
+	export CC="${ESYSROOT}/usr/lib/llvm/intel/bin/clang"
+	cmake_src_prepare
 }
 
 src_configure() {


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [gentoo-commits] proj/sci:master commit in: sys-devel/oneDPL/
@ 2023-02-25  8:54 Andrew Ammerlaan
  0 siblings, 0 replies; 6+ messages in thread
From: Andrew Ammerlaan @ 2023-02-25  8:54 UTC (permalink / raw
  To: gentoo-commits

commit:     e2897f066d926deecb6649d886514758eba1acf0
Author:     Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
AuthorDate: Sat Feb 25 08:54:07 2023 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
CommitDate: Sat Feb 25 08:54:07 2023 +0000
URL:        https://gitweb.gentoo.org/proj/sci.git/commit/?id=e2897f06

sys-devel/oneDPL: add 2022.0.0

Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>

 sys-devel/oneDPL/metadata.xml           |  3 ++
 sys-devel/oneDPL/oneDPL-2022.0.0.ebuild | 60 +++++++++++++++++++++++++++++++++
 2 files changed, 63 insertions(+)

diff --git a/sys-devel/oneDPL/metadata.xml b/sys-devel/oneDPL/metadata.xml
index 5fbeb1b05..474176a00 100644
--- a/sys-devel/oneDPL/metadata.xml
+++ b/sys-devel/oneDPL/metadata.xml
@@ -8,4 +8,7 @@
 	<upstream>
 		<remote-id type="github">oneapi-src/oneDPL</remote-id>
 	</upstream>
+	<use>
+		<flag name="esimd_emulator">enable ESIMD CPU emulation</flag>
+	</use>
 </pkgmetadata>

diff --git a/sys-devel/oneDPL/oneDPL-2022.0.0.ebuild b/sys-devel/oneDPL/oneDPL-2022.0.0.ebuild
new file mode 100644
index 000000000..6d36dc409
--- /dev/null
+++ b/sys-devel/oneDPL/oneDPL-2022.0.0.ebuild
@@ -0,0 +1,60 @@
+# 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}-release.tar.gz"
+S="${WORKDIR}/${PN}-${P}-release"
+
+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_BACKEND="level_zero"
+		-DONEDPL_BACKEND="dpcpp"
+		-DONEDPL_ENABLE_SIMD="$(usex esimd_emulator)"
+	)
+
+	cmake_src_configure
+}
+
+src_compile() {
+	cmake_src_compile
+	# docs_compile
+}
+
+src_install() {
+	einstalldocs
+	doheader -r "${S}/include/oneapi"
+}


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [gentoo-commits] proj/sci:master commit in: sys-devel/oneDPL/
@ 2023-02-25  9:24 Andrew Ammerlaan
  0 siblings, 0 replies; 6+ messages in thread
From: Andrew Ammerlaan @ 2023-02-25  9:24 UTC (permalink / raw
  To: gentoo-commits

commit:     5ffa5ff294bbcf85b9121de5054dc4658b0827e3
Author:     Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
AuthorDate: Sat Feb 25 09:24:31 2023 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
CommitDate: Sat Feb 25 09:24:31 2023 +0000
URL:        https://gitweb.gentoo.org/proj/sci.git/commit/?id=5ffa5ff2

sys-devel/oneDPL: also generate and install cmake/pkgconfig files

Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>

 .../oneDPL/{oneDPL-2022.0.0.ebuild => oneDPL-2022.0.0-r1.ebuild}     | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/sys-devel/oneDPL/oneDPL-2022.0.0.ebuild b/sys-devel/oneDPL/oneDPL-2022.0.0-r1.ebuild
similarity index 87%
rename from sys-devel/oneDPL/oneDPL-2022.0.0.ebuild
rename to sys-devel/oneDPL/oneDPL-2022.0.0-r1.ebuild
index 6d36dc409..895c53c37 100644
--- a/sys-devel/oneDPL/oneDPL-2022.0.0.ebuild
+++ b/sys-devel/oneDPL/oneDPL-2022.0.0-r1.ebuild
@@ -51,10 +51,15 @@ 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
 }


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [gentoo-commits] proj/sci:master commit in: sys-devel/oneDPL/
@ 2023-08-22 10:13 Andrew Ammerlaan
  0 siblings, 0 replies; 6+ messages in thread
From: Andrew Ammerlaan @ 2023-08-22 10:13 UTC (permalink / raw
  To: gentoo-commits

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
+}


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-08-22 10:13 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-12 15:16 [gentoo-commits] proj/sci:master commit in: sys-devel/oneDPL/ Andrew Ammerlaan
  -- strict thread matches above, loose matches on Subject: below --
2023-08-22 10:13 Andrew Ammerlaan
2023-02-25  9:24 Andrew Ammerlaan
2023-02-25  8:54 Andrew Ammerlaan
2022-12-06 18:53 Andrew Ammerlaan
2022-12-01 21:39 Andrew Ammerlaan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox