[arch-commits] Commit in intel-compute-runtime/repos (2 files)

Bruno Pagani archange at gemini.archlinux.org
Sat Apr 30 13:52:59 UTC 2022


    Date: Saturday, April 30, 2022 @ 13:52:59
  Author: archange
Revision: 1191967

archrelease: copy trunk to community-testing-x86_64

Added:
  intel-compute-runtime/repos/community-testing-x86_64/
  intel-compute-runtime/repos/community-testing-x86_64/PKGBUILD
    (from rev 1191966, intel-compute-runtime/trunk/PKGBUILD)

----------+
 PKGBUILD |   42 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 42 insertions(+)

Copied: intel-compute-runtime/repos/community-testing-x86_64/PKGBUILD (from rev 1191966, intel-compute-runtime/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD	                        (rev 0)
+++ community-testing-x86_64/PKGBUILD	2022-04-30 13:52:59 UTC (rev 1191967)
@@ -0,0 +1,42 @@
+# Maintainer: Daniel Bermond <dbermond at archlinux.org>
+# Maintainer: Bruno Pagani <archange at archlinux.org>
+
+pkgname=intel-compute-runtime
+pkgver=22.17.23034
+pkgrel=1
+pkgdesc="Intel(R) Graphics Compute Runtime for oneAPI Level Zero and OpenCL(TM) Driver"
+arch=(x86_64)
+url="https://01.org/compute-runtime"
+license=(MIT)
+depends=(gcc-libs intel-gmmlib intel-graphics-compiler)
+makedepends=(cmake libva level-zero-headers igsc)
+optdepends=('libva: for cl_intel_va_api_media_sharing'
+            'libdrm: for cl_intel_va_api_media_sharing')
+provides=(opencl-driver level-zero-driver)
+# https://github.com/intel/compute-runtime/issues/528
+options=(!lto)
+source=(https://github.com/intel/compute-runtime/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz)
+sha256sums=('d46ef4801b202f031d516da62e7e4f7da26288238f8371f67d63e1dd57d98b62')
+
+build() {
+  # ${${pkgver#*.}%.*} not supported by bash?
+  cmake -B build -S compute-runtime-${pkgver} \
+    -DCMAKE_BUILD_TYPE=Release \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DCMAKE_INSTALL_LIBDIR=lib \
+    -DNEO_OCL_VERSION_MAJOR=${pkgver%%.*} \
+    -DNEO_OCL_VERSION_MINOR=$(echo ${pkgver} | cut -d . -f2) \
+    -DNEO_VERSION_BUILD=${pkgver##*.} \
+    -DSUPPORT_DG1=ON \
+    -DSKIP_UNIT_TESTS=1 \
+    -Wno-dev
+  make -C build
+}
+
+package() {
+  make -C build DESTDIR="${pkgdir}" install
+  install -Dm755 build/bin/libocloc.so -t "${pkgdir}"/usr/lib/intel-opencl
+  install -Dm644 compute-runtime-${pkgver}/LICENSE.md -t "${pkgdir}"/usr/share/licenses/${pkgname}
+  
+  ln -s $(find "${pkgdir}"/usr/lib -regex '.*libze_intel_gpu.so.[0-9]*' -exec basename {} \;) "${pkgdir}"/usr/lib/libze_intel_gpu.so
+}



More information about the arch-commits mailing list