1 |
commit: 352e3c2c6364f9e9a8aeb20f53183e32c248d756 |
2 |
Author: Marek Szuba <marecki <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Apr 26 21:19:57 2020 +0000 |
4 |
Commit: Marek Szuba <marecki <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Apr 26 21:24:53 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=352e3c2c |
7 |
|
8 |
dev-libs/intel-neo: bump to 20.16.16582 |
9 |
|
10 |
The first version in the tree supporting oneAPI Level Zero in |
11 |
addition to OpenCL. Moreover, we now use centrally installed Khronos |
12 |
OpenCL headers instead of bundled ones. |
13 |
|
14 |
Signed-off-by: Marek Szuba <marecki <AT> gentoo.org> |
15 |
|
16 |
dev-libs/intel-neo/Manifest | 1 + |
17 |
dev-libs/intel-neo/intel-neo-20.16.16582.ebuild | 55 +++++++++++++++++++++++++ |
18 |
dev-libs/intel-neo/metadata.xml | 14 +++++-- |
19 |
3 files changed, 66 insertions(+), 4 deletions(-) |
20 |
|
21 |
diff --git a/dev-libs/intel-neo/Manifest b/dev-libs/intel-neo/Manifest |
22 |
index da3fb138398..d9bbf0a28f9 100644 |
23 |
--- a/dev-libs/intel-neo/Manifest |
24 |
+++ b/dev-libs/intel-neo/Manifest |
25 |
@@ -1,2 +1,3 @@ |
26 |
DIST intel-neo-20.03.15346.tar.gz 2671869 BLAKE2B cf1e242563a377d533b1e5adc89257e3fdd879a0f275f069e9c1c3c8436e269a1ec57e951394d2a487148bfc5393fed0ce1f3feb6954c7ece9de59cccffd628c SHA512 4d2cc8fdcba714832306e6353e8688e12c44eb0f848aad981951ee092274ba8ae032db462b49e874b7ac72e1b8b2b9ba71a84b6715ca241c06a1c70e753e5ed3 |
27 |
DIST intel-neo-20.10.16087.tar.gz 2942516 BLAKE2B ed77e5dfe950794e9e34cc6a0d8c053292b5673b9fa244ef7b861da93bb6aa58161ad890719013c838b0bbd80f3c22aaafc60dcb72a1e1e565cab51e5467c810 SHA512 8a728a3cffb5960dba8e8ecc160a6f0dd9c2cbadead3db3af2df71af492fdb346628a20c55112e64debb32eb25cf549e42dc78a606ef4bb8f746913781dbb446 |
28 |
+DIST intel-neo-20.16.16582.tar.gz 3042531 BLAKE2B adfc0aee2a315e67ccb3e4fe39ab09b618930607d3de931d1367881642d8e542385589299f593d3ab1cd6e16de7a8fce7b55fa1b4259097e15da7e55034d344b SHA512 700bee3ccf72c2bc89f5c8a75591de9dafbfe0a6480e3216258842c6b68ce1b527569d5fe1327a0a80cfbf79dca1d956820f060b602feefa83fc9b47cb46d7d0 |
29 |
|
30 |
diff --git a/dev-libs/intel-neo/intel-neo-20.16.16582.ebuild b/dev-libs/intel-neo/intel-neo-20.16.16582.ebuild |
31 |
new file mode 100644 |
32 |
index 00000000000..4cad6048399 |
33 |
--- /dev/null |
34 |
+++ b/dev-libs/intel-neo/intel-neo-20.16.16582.ebuild |
35 |
@@ -0,0 +1,55 @@ |
36 |
+# Copyright 1999-2020 Gentoo Authors |
37 |
+# Distributed under the terms of the GNU General Public License v2 |
38 |
+ |
39 |
+EAPI=7 |
40 |
+ |
41 |
+inherit cmake |
42 |
+ |
43 |
+MY_PN="compute-runtime" |
44 |
+MY_P="${MY_PN}-${PV}" |
45 |
+ |
46 |
+DESCRIPTION="Intel Graphics Compute Runtime for L0 and OpenCL, for Broadwell and beyond" |
47 |
+HOMEPAGE="https://github.com/intel/compute-runtime" |
48 |
+SRC_URI="https://github.com/intel/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
49 |
+ |
50 |
+LICENSE="MIT" |
51 |
+SLOT="0" |
52 |
+KEYWORDS="~amd64" |
53 |
+IUSE="l0 vaapi" |
54 |
+ |
55 |
+BDEPEND="virtual/pkgconfig" |
56 |
+COMMON=">=virtual/opencl-3 |
57 |
+ >=dev-util/intel-graphics-compiler-1.0.3826 |
58 |
+ >=media-libs/gmmlib-20.1.1 |
59 |
+ l0? ( >=dev-libs/level-zero-0.91.10 ) |
60 |
+ vaapi? ( |
61 |
+ x11-libs/libdrm[video_cards_intel] |
62 |
+ x11-libs/libva |
63 |
+ )" |
64 |
+DEPEND="${COMMON} |
65 |
+ dev-util/opencl-headers |
66 |
+ media-libs/mesa" # for Khronos OpenGL headers |
67 |
+RDEPEND="${COMMON}" |
68 |
+ |
69 |
+DOCS=( |
70 |
+ README.md |
71 |
+ FAQ.md |
72 |
+) |
73 |
+ |
74 |
+S="${WORKDIR}"/${MY_P} |
75 |
+ |
76 |
+src_configure() { |
77 |
+ local mycmakeargs=( |
78 |
+ -DKHRONOS_HEADERS_DIR="${EPREFIX}/usr/include" |
79 |
+ # CMake only sets this automatically for bundled OpenCL headers |
80 |
+ -DNEO_EXTRA_DEFINES="CL_TARGET_OPENCL_VERSION=220" |
81 |
+ -DKHRONOS_GL_HEADERS_DIR="${EPREFIX}/usr/include" |
82 |
+ -DBUILD_WITH_L0=$(usex l0) |
83 |
+ -DDISABLE_LIBVA=$(usex vaapi "no" "yes") |
84 |
+ # If enabled, tests are automatically run during the compile phase |
85 |
+ # - and we cannot run them because they require permissions to access |
86 |
+ # the hardware. |
87 |
+ -DSKIP_UNIT_TESTS=ON |
88 |
+ ) |
89 |
+ cmake_src_configure |
90 |
+} |
91 |
|
92 |
diff --git a/dev-libs/intel-neo/metadata.xml b/dev-libs/intel-neo/metadata.xml |
93 |
index d7b990043c1..0cb86b12169 100644 |
94 |
--- a/dev-libs/intel-neo/metadata.xml |
95 |
+++ b/dev-libs/intel-neo/metadata.xml |
96 |
@@ -5,11 +5,17 @@ |
97 |
<email>marecki@g.o</email> |
98 |
<name>Marek Szuba</name> |
99 |
</maintainer> |
100 |
- <longdescription>The Intel Graphics Compute Runtime for OpenCL, informally |
101 |
- known as NEO, is an open source project to converge Intel's development |
102 |
- efforts on OpenCL compute stacks supporting Gen8 graphics devices |
103 |
- (Broadwell architecture) and newer.</longdescription> |
104 |
+ <longdescription>The Intel Graphics Compute Runtime for for oneAPI Level Zero and |
105 |
+ OpenCL Driver, informally known as NEO, is an open source project providing |
106 |
+ compute API support (Level Zero, OpenCL) for Intel graphics hardware |
107 |
+ architectures (HD Graphics, Xe). |
108 |
+ For OpenCL, NEO supports Intel Core processors with Gen8 graphics devices |
109 |
+ (Broadwell architecture) and newer, as well as Intel Atom processors with Gen9 |
110 |
+ graphics devices (Apollo Lake, Gemini Lake). |
111 |
+ Level Zero support is more limited and as of April 2020 still in early stages, |
112 |
+ please consult upstream release notices for details.</longdescription> |
113 |
<use> |
114 |
+ <flag name="l0">Install the oneAPI Level Zero driver alongside the OpenCL one</flag> |
115 |
<flag name="vaapi">Support the sharing of surfaces with Video Acceleration API |
116 |
(OpenCL Extension #36)</flag> |
117 |
</use> |