Github messages for voidlinux
 help / color / mirror / Atom feed
From: zlice <zlice@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] New packages - Intel OpenCL (NEO)
Date: Fri, 28 Apr 2023 15:33:43 +0200	[thread overview]
Message-ID: <20230428133343.M0dAJiSxNZvPgCXH8gekR6AyIUynTQapQiig2aWGoto@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-43084@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 1182 bytes --]

There is an updated pull request by zlice against master on the void-packages repository

https://github.com/zlice/void-packages intel-opencl
https://github.com/void-linux/void-packages/pull/43084

New packages - Intel OpenCL (NEO)
[ci skip]

#### Testing the changes
- I tested the changes in this PR: **YES**

Ran a few OpenCL examples and [cl-mem](https://github.com/nerdralph/cl-mem). `clinfo` reports more stats also

#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**

#### Local build testing
- I built this PR locally for my native architecture, **x86_64**

Could not get musl to build `intel-compute-runtime`. There are a few patches for execinfo, backtrace and RTLD_XXX but even sorting those out gets to a 'error code: -11'.

#### Comments

closes #11364

depends on #41132 for gmmlib bump (didn't want to add there in case it delays merge)

MIT license not in the tar for `intel-vc-intrinsics` yet? Was just added the other day.


A patch file from https://github.com/void-linux/void-packages/pull/43084.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-intel-opencl-43084.patch --]
[-- Type: text/x-diff, Size: 10044 bytes --]

From 2cc1ee12c621e534ffe1ef5098b9a69021a8e7c1 Mon Sep 17 00:00:00 2001
From: zlice <zlice555@gmail.com>
Date: Sun, 26 Mar 2023 10:46:11 -0400
Subject: [PATCH 1/7] New package: intel-opencl-clang-15.0.0

---
 common/shlibs                       |  1 +
 srcpkgs/intel-opencl-clang/template | 18 ++++++++++++++++++
 2 files changed, 19 insertions(+)
 create mode 100644 srcpkgs/intel-opencl-clang/template

diff --git a/common/shlibs b/common/shlibs
index c6258bbf1e4d..a828119a9e07 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -999,6 +999,7 @@ libLLVM-15.so libllvm15-15.0.7_1
 libLLVMSPIRVLib.so.15 SPIRV-LLVM-Translator-15.0.0_1
 libomp.so.5 libomp-15.0.7_1
 libomptarget.so.15 libomp-15.0.7_1
+libopencl-clang.so.15 intel-opencl-clang-15.0.0_1
 libisofs.so.6 libisofs-0.6.24_1
 libmpack.so.0 libmpack-1.0.5_1
 libGeoIP.so.1 libgeoip-1.4.8_1
diff --git a/srcpkgs/intel-opencl-clang/template b/srcpkgs/intel-opencl-clang/template
new file mode 100644
index 000000000000..e6f09f6ad724
--- /dev/null
+++ b/srcpkgs/intel-opencl-clang/template
@@ -0,0 +1,18 @@
+# Template file for 'intel-opencl-clang'
+pkgname=intel-opencl-clang
+version=15.0.0
+revision=1
+archs="x86_64*"
+build_style=cmake
+hostmakedepends="cmake"
+makedepends="llvm clang clang-tools-extra SPIRV-LLVM-Translator-devel"
+short_desc="LLVM linked opencl-clang"
+maintainer="Zlice <zlice555@gmail.com>"
+license="NCSA"
+homepage="https://github.com/intel/opencl-clang"
+distfiles="${homepage}/archive/refs/tags/v${version}.tar.gz"
+checksum=ea179674e52bc8c658e2655f76be467f7052f7d2c37ebcfdb102dce645ad1411
+
+post_install() {
+	vlicense LICENSE
+}

From fd42b125b8ccc2f165358753a6976dffadab6723 Mon Sep 17 00:00:00 2001
From: zlice <zlice555@gmail.com>
Date: Sun, 26 Mar 2023 10:46:58 -0400
Subject: [PATCH 2/7] New package: intel-vc-intrinsics-0.12.3

---
 srcpkgs/intel-vc-intrinsics/template | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)
 create mode 100644 srcpkgs/intel-vc-intrinsics/template

diff --git a/srcpkgs/intel-vc-intrinsics/template b/srcpkgs/intel-vc-intrinsics/template
new file mode 100644
index 000000000000..129482bdf985
--- /dev/null
+++ b/srcpkgs/intel-vc-intrinsics/template
@@ -0,0 +1,21 @@
+# Template file for 'intel-vc-intrinsics'
+pkgname=intel-vc-intrinsics
+version=0.12.3
+revision=1
+archs="x86_64*"
+build_style=cmake
+configure_args="-Wno-dev -DLLVM_DIR=/usr/lib/cmake/llvm -DCMAKE_BUILD_TYPE=Release"
+hostmakedepends="cmake python"
+makedepends="llvm clang clang-tools-extra"
+short_desc="Set of intrinsics on top of core LLVM IR"
+maintainer="Zlice <zlice555@gmail.com>"
+license="MIT"
+homepage="https://github.com/intel/vc-intrinsics"
+distfiles="${homepage}/archive/refs/tags/v${version}.tar.gz"
+checksum=ed1c0d968cb2f8ee7b2840a14c3261639f1700e844fb7d2a89856babffd5e1d1
+
+# TODO: license isn't bundled in tar?
+#       just added 2 days ago... mar 24th 2023
+#post_install() {
+#	vlicense LICENSE.md
+#}

From 4bb9a081002240b1b547aec1b4860e4ce5e745a7 Mon Sep 17 00:00:00 2001
From: zlice <zlice555@gmail.com>
Date: Sun, 26 Mar 2023 10:48:05 -0400
Subject: [PATCH 3/7] New package: intel-compute-runtime-23.09.25812.14

---
 srcpkgs/intel-compute-runtime/template | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)
 create mode 100644 srcpkgs/intel-compute-runtime/template

diff --git a/srcpkgs/intel-compute-runtime/template b/srcpkgs/intel-compute-runtime/template
new file mode 100644
index 000000000000..1132b830d348
--- /dev/null
+++ b/srcpkgs/intel-compute-runtime/template
@@ -0,0 +1,22 @@
+# Template file for 'intel-compute-runtime'
+pkgname=intel-compute-runtime
+version=23.09.25812.14
+revision=1
+archs="x86_64"
+build_style=cmake
+configure_args="-Wno-dev -DNEO_SKIP_UNIT_TESTS=1 -DSUPPORT_DG1=ON -DSUPPORT_DG2=ON"
+hostmakedepends="cmake pkg-config"
+makedepends="gcc intel-gmmlib-devel libva-devel ocl-icd-devel
+ intel-opencl-clang intel-graphics-compiler level-zero-devel
+ intel-metrics-library intel-metrics-discovery"
+depends="intel-graphics-compiler"
+short_desc="Intel Graphics Compute Runtime for oneAPI Level Zero and OpenCL"
+maintainer="Zlice <zlice555@gmail.com>"
+license="MIT"
+homepage="https://github.com/intel/compute-runtime"
+distfiles="${homepage}/archive/refs/tags/${version}.tar.gz"
+checksum=abe2e6d9d2ac771d5f42ee2357ce897ca3b00dc6185c06f3f62772f729c7f8e1
+
+post_install() {
+	vlicense LICENSE.md
+}

From ebfcd8828892968fbeeb347d73457e4036d92204 Mon Sep 17 00:00:00 2001
From: zlice <zlice555@gmail.com>
Date: Sun, 26 Mar 2023 10:48:34 -0400
Subject: [PATCH 4/7] New package: intel-graphics-compiler-1.0.13463.18

---
 srcpkgs/intel-graphics-compiler/template | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)
 create mode 100644 srcpkgs/intel-graphics-compiler/template

diff --git a/srcpkgs/intel-graphics-compiler/template b/srcpkgs/intel-graphics-compiler/template
new file mode 100644
index 000000000000..44d38214f929
--- /dev/null
+++ b/srcpkgs/intel-graphics-compiler/template
@@ -0,0 +1,22 @@
+# Template file for 'intel-graphics-compiler'
+pkgname=intel-graphics-compiler
+version=1.0.13463.18
+revision=1
+archs="x86_64*"
+build_style=cmake
+configure_args="-Wno-dev -DIGC_OPTION__LLVM_PREFERRED_VERSION=15.0.7 -DCCLANG_FROM_SYSTEM=ON
+ -DIGC_OPTION__SPIRV_TOOLS_MODE=Prebuilds -DIGC_OPTION__USE_PREINSTALLED_SPRIV_HEADERS=ON
+ -DIGC_OPTION__VC_INTRINSICS_MODE=Prebuilds"
+hostmakedepends="flex bison zlib-devel libzstd-devel cmake"
+makedepends="llvm clang clang-tools-extra intel-opencl-clang intel-vc-intrinsics
+ lld lld-devel SPIRV-Headers  SPIRV-LLVM-Translator-devel SPIRV-Tools-devel"
+short_desc="LLVM based compiler for OpenCL targeting Intel"
+maintainer="Zlice <zlice555@gmail.com>"
+license="MIT"
+homepage="https://github.com/intel/intel-graphics-compiler"
+distfiles="${homepage}/archive/refs/tags/igc-${version}.tar.gz"
+checksum=0b960878a5feffd6aa10197c48bf73a0a3a19d0105428d48163e91db0444070a
+
+post_install() {
+	vlicense LICENSE.md
+}

From ae355e67d9eda5438f4969e8acc252f9808d5688 Mon Sep 17 00:00:00 2001
From: zlice <zlice555@gmail.com>
Date: Tue, 28 Mar 2023 19:54:18 -0400
Subject: [PATCH 5/7] New package: intel-metrics-discovery 1.12.163

---
 srcpkgs/intel-metrics-discovery/template | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
 create mode 100644 srcpkgs/intel-metrics-discovery/template

diff --git a/srcpkgs/intel-metrics-discovery/template b/srcpkgs/intel-metrics-discovery/template
new file mode 100644
index 000000000000..6083595e273c
--- /dev/null
+++ b/srcpkgs/intel-metrics-discovery/template
@@ -0,0 +1,19 @@
+# Template file for 'intel-metrics-discovery'
+pkgname=intel-metrics-discovery
+version=1.12.163
+revision=1
+archs="x86_64*"
+build_style=cmake
+configure_args="-Wdev-no -DCMAKE_BUILD_TYPE=Release"
+hostmakedepends="cmake"
+makedepends="libdrm-devel"
+short_desc="Helper library that provides access to GPU performance data"
+maintainer="Zlice <zlice555@gmail.com>"
+license="MIT"
+homepage="https://github.com/intel/metrics-discovery"
+distfiles="${homepage}/archive/refs/tags/metrics-discovery-${version}.tar.gz"
+checksum=6dfe8d11c58625bf3ebf656ec2a95dc96bbb05705ec71c6c3c3dd0ef5cd2319c
+
+post_install() {
+	vlicense LICENSE.md
+}

From 9e7874f369f883ae6b47993ce6d3348e3e390e4d Mon Sep 17 00:00:00 2001
From: zlice <zlice555@gmail.com>
Date: Tue, 28 Mar 2023 19:54:49 -0400
Subject: [PATCH 6/7] New package: intel-metrics-library 1.0.133

---
 srcpkgs/intel-metrics-library/template | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
 create mode 100644 srcpkgs/intel-metrics-library/template

diff --git a/srcpkgs/intel-metrics-library/template b/srcpkgs/intel-metrics-library/template
new file mode 100644
index 000000000000..50f1a6079d7b
--- /dev/null
+++ b/srcpkgs/intel-metrics-library/template
@@ -0,0 +1,19 @@
+# Template file for 'intel-metrics-library'
+pkgname=intel-metrics-library
+version=1.0.133
+revision=1
+archs="x86_64*"
+build_style=cmake
+configure_args="-Wdev-no -DCMAKE_BUILD_TYPE=Release"
+hostmakedepends="cmake"
+makedepends="libdrm-devel"
+short_desc="Helper library that provides access to GPU performance counters"
+maintainer="Zlice <zlice555@gmail.com>"
+license="MIT"
+homepage="https://github.com/intel/metrics-library"
+distfiles="${homepage}/archive/refs/tags/metrics-library-${version}.tar.gz"
+checksum=83f7b2de3af5ffd2f1b487df8836e6d212e11668bd958bebae622a483fb1231f
+
+post_install() {
+	vlicense LICENSE.md
+}

From 9d7ca825bc0014a10287b440f03e7f26c8fe77c1 Mon Sep 17 00:00:00 2001
From: zlice <zlice555@gmail.com>
Date: Thu, 27 Apr 2023 20:41:10 -0400
Subject: [PATCH 7/7] New package: level-zero-1.10.0

---
 srcpkgs/level-zero-devel    |  1 +
 srcpkgs/level-zero/template | 28 ++++++++++++++++++++++++++++
 2 files changed, 29 insertions(+)
 create mode 120000 srcpkgs/level-zero-devel
 create mode 100644 srcpkgs/level-zero/template

diff --git a/srcpkgs/level-zero-devel b/srcpkgs/level-zero-devel
new file mode 120000
index 000000000000..96ee8adf7303
--- /dev/null
+++ b/srcpkgs/level-zero-devel
@@ -0,0 +1 @@
+level-zero
\ No newline at end of file
diff --git a/srcpkgs/level-zero/template b/srcpkgs/level-zero/template
new file mode 100644
index 000000000000..2338482a0fda
--- /dev/null
+++ b/srcpkgs/level-zero/template
@@ -0,0 +1,28 @@
+# Template file for 'level-zero'
+pkgname=level-zero
+version=1.10.0
+revision=1
+archs="x86_64*"
+build_style=cmake
+hostmakedepends="cmake"
+makedepends="llvm clang clang-tools-extra SPIRV-LLVM-Translator-devel"
+short_desc="OneAPI Level Zero Specification"
+maintainer="Zlice <zlice555@gmail.com>"
+license="NCSA"
+homepage="https://github.com/oneapi-src/level-zero"
+distfiles="${homepage}/archive/refs/tags/v${version}.tar.gz"
+checksum=2811e4128ff6114020d0a147c2769b9b2e782e68ad49827685c33b9e716bf6ab
+
+post_install() {
+	vlicense LICENSE
+}
+
+level-zero-devel_package() {
+	depends="${makedepends} ${sourcepkg}-${version}_${revision}"
+	short_desc+=" - development files"
+	pkg_install() {
+		vmove usr/include
+		vmove usr/lib/pkgconfig
+		vmove "usr/lib/*.so"
+	}
+}

  parent reply	other threads:[~2023-04-28 13:33 UTC|newest]

Thread overview: 41+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-29  0:04 [PR PATCH] " zlice
2023-03-29  0:05 ` [PR PATCH] [Updated] " zlice
2023-03-29  0:06 ` zlice
2023-03-29  0:12 ` zlice
2023-03-29  0:16 ` zlice
2023-03-29  1:17 ` zlice
2023-04-27 22:05 ` ja-cop
2023-04-27 23:45 ` zlice
2023-04-27 23:47 ` zlice
2023-04-28 13:31 ` [PR PATCH] [Updated] " zlice
2023-04-28 13:33 ` zlice [this message]
2023-04-28 13:33 ` zlice
2023-04-28 13:34 ` zlice
2023-04-28 13:34 ` zlice
2023-05-01 20:03 ` ja-cop
2023-07-31  1:52 ` github-actions
2023-08-02 14:00 ` zlice
2023-10-09  4:57 ` cy1der
2023-11-20 13:04 ` [PR PATCH] [Updated] " zlice
2023-12-03 14:31 ` zlice
2023-12-03 14:32 ` zlice
2024-02-03 20:39 ` [PR PATCH] [Updated] " zlice
2024-02-03 20:39 ` zlice
2024-02-03 20:41 ` zlice
2024-02-03 20:41 ` zlice
2024-02-03 20:42 ` [PR PATCH] [Updated] " zlice
2024-02-15 20:31 ` zlice
2024-02-25 16:20 ` motorto
2024-02-25 17:13 ` [PR PATCH] [Updated] " zlice
2024-02-25 17:15 ` zlice
2024-02-25 17:16 ` [WIP] " zlice
2024-02-25 17:21 ` motorto
2024-02-25 17:23 ` zlice
2024-03-16 11:41 ` basiliscos
2024-04-18 15:30 ` [PR PATCH] [Updated] " zlice
2024-04-18 15:32 ` zlice
2024-04-19  9:57 ` nodatapoints
2024-05-12  0:55 ` [PR PATCH] [Updated] " zlice
2024-05-12  0:56 ` zlice
2024-05-16 21:22 ` [PR PATCH] [Updated] " zlice
2024-05-16 21:24 ` zlice

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=20230428133343.M0dAJiSxNZvPgCXH8gekR6AyIUynTQapQiig2aWGoto@z \
    --to=zlice@users.noreply.github.com \
    --cc=ml@inbox.vuxu.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;
as well as URLs for NNTP newsgroup(s).