Gentoo Archives: gentoo-commits

From: Conrad Kostecki <conikost@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/intel-compute-runtime/files/, dev-libs/intel-compute-runtime/
Date: Tue, 31 Jan 2023 15:17:50
Message-Id: 1675178134.55d493463c20191e900f1b1fcd7fb19a809e3938.conikost@gentoo
1 commit: 55d493463c20191e900f1b1fcd7fb19a809e3938
2 Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jan 31 15:11:53 2023 +0000
4 Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
5 CommitDate: Tue Jan 31 15:15:34 2023 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=55d49346
7
8 dev-libs/intel-compute-runtime: add 22.49.25018.24
9
10 Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>
11
12 dev-libs/intel-compute-runtime/Manifest | 1 +
13 ...ute-runtime-22.49.25018.24-level-zero-1.9.patch | 22 ++++++
14 .../intel-compute-runtime-22.49.25018.24.ebuild | 82 ++++++++++++++++++++++
15 3 files changed, 105 insertions(+)
16
17 diff --git a/dev-libs/intel-compute-runtime/Manifest b/dev-libs/intel-compute-runtime/Manifest
18 index b0218b59ad7a..2e9434168059 100644
19 --- a/dev-libs/intel-compute-runtime/Manifest
20 +++ b/dev-libs/intel-compute-runtime/Manifest
21 @@ -1 +1,2 @@
22 DIST intel-compute-runtime-22.43.24595.35.tar.gz 5880869 BLAKE2B c9d4a16e9908427b69154a5a6550e4eec47bcce4fa811a9121c54de75bcd3e17e1d4cff8b1fa7486b2ffe0dd01f7fae06e5fd3b1d241378dcf521d1f8822bedb SHA512 0aab6cc16f7d523819c9a9eb58fba916c3b06c4be450c94cfc30b36038c768d6ddb79937ded7d9df68b7bdc97679756450c1c54844caed1655ddc688a6ae8a54
23 +DIST intel-compute-runtime-22.49.25018.24.tar.gz 5991968 BLAKE2B 06589bd63d3cfe35ed0a1af3a94c9e12cc2588143dcf52a371b71f827ca006989a74edabb58b6ecc0a08cfa850f582e47e441ee8d9bffdf672653e8a7809375e SHA512 9c0cc541cd635063ed49e8f807c0a81035abd46367deb43fe7187c00c017f2609cd9c5e55d0b40bb3cb54d05f01306df3a843f3b35683b0ab732881b5192182f
24
25 diff --git a/dev-libs/intel-compute-runtime/files/intel-compute-runtime-22.49.25018.24-level-zero-1.9.patch b/dev-libs/intel-compute-runtime/files/intel-compute-runtime-22.49.25018.24-level-zero-1.9.patch
26 new file mode 100644
27 index 000000000000..7527117ca032
28 --- /dev/null
29 +++ b/dev-libs/intel-compute-runtime/files/intel-compute-runtime-22.49.25018.24-level-zero-1.9.patch
30 @@ -0,0 +1,22 @@
31 +--- a/level_zero/core/test/unit_tests/sources/fabric/test_fabric.cpp
32 ++++ b/level_zero/core/test/unit_tests/sources/fabric/test_fabric.cpp
33 +@@ -110,7 +110,7 @@
34 + const ze_pci_ext_properties_t &pciProperties) {
35 + EXPECT_TRUE(0 == std::memcmp(vertexProperties.uuid.id, deviceProperties.uuid.id, sizeof(vertexProperties.uuid.id)));
36 + if (deviceProperties.flags & ZE_DEVICE_PROPERTY_FLAG_SUBDEVICE) {
37 +- EXPECT_EQ(vertexProperties.type, ZE_FABRIC_VERTEX_EXP_TYPE_SUBEVICE);
38 ++ EXPECT_EQ(vertexProperties.type, ZE_FABRIC_VERTEX_EXP_TYPE_SUBDEVICE);
39 + } else {
40 + EXPECT_EQ(vertexProperties.type, ZE_FABRIC_VERTEX_EXP_TYPE_DEVICE);
41 + }
42 +--- a/level_zero/core/source/fabric/fabric.cpp
43 ++++ b/level_zero/core/source/fabric/fabric.cpp
44 +@@ -56,7 +56,7 @@
45 + memcpy_s(fabricVertex->properties.uuid.id, ZE_MAX_UUID_SIZE, deviceProperties.uuid.id, ZE_MAX_DEVICE_UUID_SIZE);
46 +
47 + if (deviceProperties.flags & ZE_DEVICE_PROPERTY_FLAG_SUBDEVICE) {
48 +- fabricVertex->properties.type = ZE_FABRIC_VERTEX_EXP_TYPE_SUBEVICE;
49 ++ fabricVertex->properties.type = ZE_FABRIC_VERTEX_EXP_TYPE_SUBDEVICE;
50 + } else {
51 + fabricVertex->properties.type = ZE_FABRIC_VERTEX_EXP_TYPE_DEVICE;
52 + }
53
54 diff --git a/dev-libs/intel-compute-runtime/intel-compute-runtime-22.49.25018.24.ebuild b/dev-libs/intel-compute-runtime/intel-compute-runtime-22.49.25018.24.ebuild
55 new file mode 100644
56 index 000000000000..0af0d80dab75
57 --- /dev/null
58 +++ b/dev-libs/intel-compute-runtime/intel-compute-runtime-22.49.25018.24.ebuild
59 @@ -0,0 +1,82 @@
60 +# Copyright 1999-2023 Gentoo Authors
61 +# Distributed under the terms of the GNU General Public License v2
62 +
63 +EAPI=8
64 +
65 +CMAKE_BUILD_TYPE="Release"
66 +MY_PN="${PN/intel-/}"
67 +MY_P="${MY_PN}-${PV}"
68 +
69 +inherit cmake flag-o-matic
70 +
71 +DESCRIPTION="Intel Graphics Compute Runtime for oneAPI Level Zero and OpenCL Driver"
72 +HOMEPAGE="https://github.com/intel/compute-runtime"
73 +SRC_URI="https://github.com/intel/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
74 +S="${WORKDIR}/${MY_P}"
75 +
76 +LICENSE="MIT"
77 +SLOT="0"
78 +KEYWORDS="~amd64"
79 +IUSE="+l0 +vaapi"
80 +
81 +RDEPEND=">=media-libs/gmmlib-22.1.7:="
82 +
83 +DEPEND="
84 + ${DEPEND}
85 + >=dev-libs/intel-metrics-library-0_pre20220930:=
86 + dev-libs/libnl:3
87 + dev-libs/libxml2:2
88 + >=dev-util/intel-graphics-compiler-1.0.12812.26
89 + >=dev-util/intel-graphics-system-controller-0.8.7:=
90 + media-libs/mesa
91 + >=virtual/opencl-3
92 + l0? ( >=dev-libs/level-zero-1.9.4:= )
93 + vaapi? (
94 + x11-libs/libdrm[video_cards_intel]
95 + media-libs/libva
96 + )
97 +"
98 +
99 +BDEPEND="virtual/pkgconfig"
100 +
101 +DOCS=( "README.md" "FAQ.md" )
102 +
103 +PATCHES=(
104 + "${FILESDIR}/${PN}-22.24.23453-remove-fortify-sources.patch"
105 + "${FILESDIR}/${PN}-22.49.25018.24-level-zero-1.9.patch"
106 +)
107 +
108 +src_prepare() {
109 + # Remove '-Werror' from default
110 + sed -e '/Werror/d' -i CMakeLists.txt || die
111 +
112 + cmake_src_prepare
113 +}
114 +
115 +src_configure() {
116 + # See https://github.com/intel/compute-runtime/issues/531
117 + filter-flags -flto=* -flto
118 +
119 + local mycmakeargs=(
120 + -DCCACHE_ALLOWED="OFF"
121 + -DCMAKE_INSTALL_PREFIX="${EPREFIX}/usr"
122 + -DCMAKE_INSTALL_LIBDIR="$(get_libdir)"
123 + -DBUILD_WITH_L0="$(usex l0)"
124 + -DDISABLE_LIBVA="$(usex !vaapi)"
125 + -DNEO__METRICS_LIBRARY_INCLUDE_DIR="${ESYSROOT}/usr/include"
126 + -DKHRONOS_GL_HEADERS_DIR="${ESYSROOT}/usr/include"
127 + -DOCL_ICD_VENDORDIR="${EPREFIX}/etc/OpenCL/vendors"
128 + -DSUPPORT_DG1="ON"
129 + -Wno-dev
130 +
131 + # See https://github.com/intel/intel-graphics-compiler/issues/204
132 + # -DNEO_DISABLE_BUILTINS_COMPILATION="ON"
133 +
134 + # If enabled, tests are automatically run during
135 + # the compile phase and we cannot run them because
136 + # they require permissions to access the hardware.
137 + -DSKIP_UNIT_TESTS="1"
138 + )
139 +
140 + cmake_src_configure
141 +}