public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: dev-libs/intel-neo/, dev-libs/intel-neo/files/
@ 2019-05-01 16:52 Marek Szuba
  0 siblings, 0 replies; 2+ messages in thread
From: Marek Szuba @ 2019-05-01 16:52 UTC (permalink / raw
  To: gentoo-commits

commit:     5a43f127415abee4ab3a03d2cd39626b28e7ed2e
Author:     Marek Szuba <marecki <AT> gentoo <DOT> org>
AuthorDate: Wed May  1 16:45:19 2019 +0000
Commit:     Marek Szuba <marecki <AT> gentoo <DOT> org>
CommitDate: Wed May  1 16:51:43 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5a43f127

dev-libs/intel-neo: new package

New OpenCL driver for Broadwell and newer. For older systems stick with
dev-libs/beignet.

Tested on Kaby Lake and Kaby Lake R, in both cases LuxMark manages to
render all three scenes without errors or crashes.

No multilib support yet because running a 32-bit build on amd64 causes
type conflicts, will look at it later.

Signed-off-by: Marek Szuba <marecki <AT> gentoo.org>
Package-Manager: Portage-2.3.62, Repoman-2.3.11

 dev-libs/intel-neo/Manifest                        |  1 +
 ...-neo-19.16.12873_cmake_no_libva_automagic.patch | 14 ++++++
 dev-libs/intel-neo/intel-neo-19.16.12873.ebuild    | 56 ++++++++++++++++++++++
 dev-libs/intel-neo/metadata.xml                    | 22 +++++++++
 4 files changed, 93 insertions(+)

diff --git a/dev-libs/intel-neo/Manifest b/dev-libs/intel-neo/Manifest
new file mode 100644
index 00000000000..a9076df296b
--- /dev/null
+++ b/dev-libs/intel-neo/Manifest
@@ -0,0 +1 @@
+DIST intel-neo-19.16.12873.tar.gz 2370395 BLAKE2B 2efc76c9729d3ec000455270e923df1e3d0ec5d0a5c31cd156401b37c63ba01ee2a6051f487a98c4db10f61c2a70434f994f15472f54741ef4a80a71b036636f SHA512 1ec8b7883bfeefc1ed2095eac6111803a44e3c88e8bd1a478fb89a5baa4484fc96894f7ef0c01f4b6b9cb94731cdfc633f38ef2f636fdeb2d5e4344ca4aaa2ae

diff --git a/dev-libs/intel-neo/files/intel-neo-19.16.12873_cmake_no_libva_automagic.patch b/dev-libs/intel-neo/files/intel-neo-19.16.12873_cmake_no_libva_automagic.patch
new file mode 100644
index 00000000000..fbfdfd32dff
--- /dev/null
+++ b/dev-libs/intel-neo/files/intel-neo-19.16.12873_cmake_no_libva_automagic.patch
@@ -0,0 +1,14 @@
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -374,9 +374,9 @@
+ endif()
+ 
+ # LibVA detection
+-if(UNIX)
++if(UNIX AND ENABLE_VAAPI_MEDIA_SHARING)
+   set(IGDRCL__LIBVA_IS_REQUIRED "")
+-  if(IGDRCL_FORCE_USE_LIBVA)
++  if(IGDRCL_FORCE_USE_LIBVA OR ENABLE_VAAPI_MEDIA_SHARING)
+     set(IGDRCL__LIBVA_IS_REQUIRED "REQUIRED")
+   endif()
+ 

diff --git a/dev-libs/intel-neo/intel-neo-19.16.12873.ebuild b/dev-libs/intel-neo/intel-neo-19.16.12873.ebuild
new file mode 100644
index 00000000000..ac08c8c0ab2
--- /dev/null
+++ b/dev-libs/intel-neo/intel-neo-19.16.12873.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cmake-utils
+
+MY_PN="compute-runtime"
+MY_P="${MY_PN}-${PV}"
+
+DESCRIPTION="Intel Graphics Compute Runtime for OpenCL, for Gen8 (Broadwell) and beyond"
+HOMEPAGE="https://github.com/intel/compute-runtime"
+SRC_URI="https://github.com/intel/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="vaapi"
+
+COMMON="dev-libs/ocl-icd
+	dev-util/intel-graphics-compiler
+	>=media-libs/gmmlib-19.0.0
+	vaapi? (
+		x11-libs/libdrm[video_cards_intel]
+		>=x11-libs/libva-2.0.0
+	)"
+DEPEND="${COMMON}
+	virtual/pkgconfig"
+RDEPEND="${COMMON}"
+
+DOCS=(
+	README.md
+	documentation/FAQ.md
+	documentation/LIMITATIONS.md
+)
+
+PATCHES=(
+	"${FILESDIR}"/${PN}-19.16.12873_cmake_no_libva_automagic.patch
+)
+
+S="${WORKDIR}"/${MY_P}
+
+src_configure() {
+	local mycmakeargs=(
+		-DENABLE_VAAPI_MEDIA_SHARING=$(usex vaapi "ON" "OFF")
+		# If enabled, tests are automatically run during the compile phase
+		# - and we cannot run them because they require permissions to access
+		# the hardware.
+		-DSKIP_UNIT_TESTS=ON
+	)
+	cmake-utils_src_configure
+}
+
+pkg_postinst() {
+	"${ROOT}"/usr/bin/eselect opencl set --use-old ocl-icd
+}

diff --git a/dev-libs/intel-neo/metadata.xml b/dev-libs/intel-neo/metadata.xml
new file mode 100644
index 00000000000..2c902f21332
--- /dev/null
+++ b/dev-libs/intel-neo/metadata.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+	<maintainer type="person">
+		<email>marecki@gentoo.org</email>
+		<name>Marek Szuba</name>
+	</maintainer>
+	<longdescription>The Intel Graphics Compute Runtime for OpenCL, informally
+		known as NEO, is an open source project to converge Intel's development
+		efforts on OpenCL compute stacks supporting Gen8 graphics devices
+		(Broadwell architecture) and newer.
+		For OpenCL support on Sandy Bridge, Ivy Bridge and Haswell architectures
+		please have a look at <pkg>dev-libs/beignet</pkg> instead.</longdescription>
+	<use>
+		<flag name="vaapi">Support the sharing of surfaces with Video Acceleration API
+			(OpenCL Extension #36)</flag>
+	</use>
+	<upstream>
+		<remote-id type="github">intel/compute-runtime</remote-id>
+	</upstream>
+</pkgmetadata>
+


^ permalink raw reply related	[flat|nested] 2+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-libs/intel-neo/, dev-libs/intel-neo/files/
@ 2021-08-16 17:12 Conrad Kostecki
  0 siblings, 0 replies; 2+ messages in thread
From: Conrad Kostecki @ 2021-08-16 17:12 UTC (permalink / raw
  To: gentoo-commits

commit:     8491d7b5afcb5f89989b33e385898a170dd938a4
Author:     Jan Henke <Jan.Henke <AT> taujhe <DOT> de>
AuthorDate: Sun Aug  8 16:30:13 2021 +0000
Commit:     Conrad Kostecki <conikost <AT> gentoo <DOT> org>
CommitDate: Mon Aug 16 17:09:55 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8491d7b5

dev-libs/intel-neo: Version bump 21.31.20514

Closes: https://github.com/gentoo/gentoo/pull/21917
Closes: https://bugs.gentoo.org/759988
Package-Manager: Portage-3.0.20, Repoman-3.0.2
Signed-off-by: Jan Henke <Jan.Henke <AT> taujhe.de>
Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>

 dev-libs/intel-neo/Manifest                        |  1 +
 .../files/intel-neo-21.31.20514-no_Werror.patch    | 10 ++++
 dev-libs/intel-neo/intel-neo-21.31.20514.ebuild    | 54 ++++++++++++++++++++++
 dev-libs/intel-neo/metadata.xml                    |  9 +++-
 4 files changed, 73 insertions(+), 1 deletion(-)

diff --git a/dev-libs/intel-neo/Manifest b/dev-libs/intel-neo/Manifest
index 0a5d7e182c9..f884e0698f4 100644
--- a/dev-libs/intel-neo/Manifest
+++ b/dev-libs/intel-neo/Manifest
@@ -1,3 +1,4 @@
 DIST intel-neo-20.16.16582.tar.gz 3042531 BLAKE2B adfc0aee2a315e67ccb3e4fe39ab09b618930607d3de931d1367881642d8e542385589299f593d3ab1cd6e16de7a8fce7b55fa1b4259097e15da7e55034d344b SHA512 700bee3ccf72c2bc89f5c8a75591de9dafbfe0a6480e3216258842c6b68ce1b527569d5fe1327a0a80cfbf79dca1d956820f060b602feefa83fc9b47cb46d7d0
 DIST intel-neo-20.37.17906.tar.gz 3492080 BLAKE2B e133dde18c67e5b50dc65372faeaf78ee2512adf80f6869e9a99ff18aba5463b2c47e62cac3122eb899c644f5bbea6dd3205d348d071ea8854e3271b9e25fb34 SHA512 3db9b05dbfc05de8e5aad4eac631320642ff03444ff3eafe0f9cf72897e2dfb723563ad9f953a900a19511cc8affd3832d3f3fa966d9388714c326c71180e8f6
 DIST intel-neo-20.44.18297.tar.gz 3586089 BLAKE2B ddaa719db25bb9b57b76a47c438e7a3185a15ce0863665efa7dd205354684773dbc89a05c943a87987588dcc2220683b47e7209ff959b2a8ad596090ff253c15 SHA512 919aba7cde56304c84db7c7ba30c53fabcca72ceab362a2b406f5ecf124e1c024980c29689f19b173b76c903da1cb25a4f1e4b19ba9279bc6ca2ad1d100e046a
+DIST intel-neo-21.31.20514.tar.gz 4434425 BLAKE2B 8fd27547dd487c78b724b0f0a715bf002d81e12ae30f10620329da998412c96e2dd7f94cb5fd84259e36ff3754efdfadd5428160e057040c1aa38727c8f6753e SHA512 0060add6df301ed85bfb2634f0a10e3cccc5d1ac751597e520bda6ae9241638242c784054201ccf8c1f3046501c20362e9942716ab728c6a4717a63278adf7a5

diff --git a/dev-libs/intel-neo/files/intel-neo-21.31.20514-no_Werror.patch b/dev-libs/intel-neo/files/intel-neo-21.31.20514-no_Werror.patch
new file mode 100644
index 00000000000..bd77b7c4e9a
--- /dev/null
+++ b/dev-libs/intel-neo/files/intel-neo-21.31.20514-no_Werror.patch
@@ -0,0 +1,10 @@
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -868,7 +868,6 @@
+       set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-noexcept-type") # Added for gtest
+     endif()
+   endif()
+-  set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror")
+
+  if(USE_SANITIZE_UB)
+     check_cxx_compiler_flag(-fsanitize=undefined COMPILER_SUPPORTS_UNDEFINED_BEHAVIOR_SANITIZER)

diff --git a/dev-libs/intel-neo/intel-neo-21.31.20514.ebuild b/dev-libs/intel-neo/intel-neo-21.31.20514.ebuild
new file mode 100644
index 00000000000..d3597b338c0
--- /dev/null
+++ b/dev-libs/intel-neo/intel-neo-21.31.20514.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit cmake
+
+MY_PN="compute-runtime"
+MY_P="${MY_PN}-${PV}"
+
+DESCRIPTION="Intel Graphics Compute Runtime for L0 and OpenCL, for Broadwell and beyond"
+HOMEPAGE="https://github.com/intel/compute-runtime"
+SRC_URI="https://github.com/intel/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+S="${WORKDIR}"/${MY_P}
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="l0 vaapi"
+
+RDEPEND=">=virtual/opencl-3
+	>=dev-util/intel-graphics-compiler-1.0.8173
+	>=media-libs/gmmlib-21.2.1
+	l0? ( >=dev-libs/level-zero-1.4.1 )
+	vaapi? (
+		x11-libs/libdrm[video_cards_intel]
+		x11-libs/libva
+	)"
+DEPEND="${RDEPEND}
+	media-libs/mesa"	# for Khronos OpenGL headers
+BDEPEND="virtual/pkgconfig"
+
+PATCHES=(
+	"${FILESDIR}"/${PN}-21.31.20514-no_Werror.patch
+)
+
+DOCS=(
+	README.md
+	FAQ.md
+)
+
+src_configure() {
+	local mycmakeargs=(
+		-DKHRONOS_GL_HEADERS_DIR="${ESYSROOT}/usr/include"
+		-DOCL_ICD_VENDORDIR="${EPREFIX}/etc/OpenCL/vendors"
+		-DBUILD_WITH_L0=$(usex l0)
+		-DDISABLE_LIBVA=$(usex vaapi "no" "yes")
+		# If enabled, tests are automatically run during the compile phase
+		# - and we cannot run them because they require permissions to access
+		# the hardware.
+		-DSKIP_UNIT_TESTS=ON
+	)
+	cmake_src_configure
+}

diff --git a/dev-libs/intel-neo/metadata.xml b/dev-libs/intel-neo/metadata.xml
index acc2fc710e6..ff18ebf683b 100644
--- a/dev-libs/intel-neo/metadata.xml
+++ b/dev-libs/intel-neo/metadata.xml
@@ -1,7 +1,14 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
 <pkgmetadata>
-	<!-- maintainer-needed -->
+	<maintainer type="person" proxied="yes">
+		<email>gentoo@taujhe.de</email>
+		<name>Jan Henke</name>
+	</maintainer>
+	<maintainer type="project" proxied="proxy">
+		<email>proxy-maint@gentoo.org</email>
+		<name>Proxy Maintainers</name>
+	</maintainer>
 	<longdescription>The Intel Graphics Compute Runtime for for oneAPI Level Zero and
 		OpenCL Driver, informally known as NEO, is an open source project providing
 		compute API support (Level Zero, OpenCL) for Intel graphics hardware


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

end of thread, other threads:[~2021-08-16 20:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-05-01 16:52 [gentoo-commits] repo/gentoo:master commit in: dev-libs/intel-neo/, dev-libs/intel-neo/files/ Marek Szuba
  -- strict thread matches above, loose matches on Subject: below --
2021-08-16 17:12 Conrad Kostecki

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