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

Daniel Bermond dbermond at archlinux.org
Sun May 30 15:10:19 UTC 2021


    Date: Sunday, May 30, 2021 @ 15:10:19
  Author: dbermond
Revision: 950398

archrelease: copy trunk to community-staging-x86_64

Added:
  intel-compute-runtime/repos/community-staging-x86_64/
  intel-compute-runtime/repos/community-staging-x86_64/010-intel-compute-runtime-fix-build.patch
    (from rev 950397, intel-compute-runtime/trunk/010-intel-compute-runtime-fix-build.patch)
  intel-compute-runtime/repos/community-staging-x86_64/PKGBUILD
    (from rev 950397, intel-compute-runtime/trunk/PKGBUILD)

-------------------------------------------+
 010-intel-compute-runtime-fix-build.patch |   12 ++++++++
 PKGBUILD                                  |   40 ++++++++++++++++++++++++++++
 2 files changed, 52 insertions(+)

Copied: intel-compute-runtime/repos/community-staging-x86_64/010-intel-compute-runtime-fix-build.patch (from rev 950397, intel-compute-runtime/trunk/010-intel-compute-runtime-fix-build.patch)
===================================================================
--- community-staging-x86_64/010-intel-compute-runtime-fix-build.patch	                        (rev 0)
+++ community-staging-x86_64/010-intel-compute-runtime-fix-build.patch	2021-05-30 15:10:19 UTC (rev 950398)
@@ -0,0 +1,12 @@
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -835,9 +835,6 @@ if(NOT MSVC)
+       set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-noexcept-type") # Added for gtest
+     endif()
+   endif()
+-  if(NOT WDDM_LINUX)
+-    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror")
+-  endif()
+   if(USE_SANITIZE_UB)
+     check_cxx_compiler_flag(-fsanitize=undefined COMPILER_SUPPORTS_UNDEFINED_BEHAVIOR_SANITIZER)
+     if(COMPILER_SUPPORTS_UNDEFINED_BEHAVIOR_SANITIZER)

Copied: intel-compute-runtime/repos/community-staging-x86_64/PKGBUILD (from rev 950397, intel-compute-runtime/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2021-05-30 15:10:19 UTC (rev 950398)
@@ -0,0 +1,40 @@
+# Maintainer: Daniel Bermond <dbermond at archlinux.org>
+# Maintainer: Bruno Pagani <archange at archlinux.org>
+
+pkgname=intel-compute-runtime
+pkgver=21.21.19914
+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)
+optdepends=('libva: for cl_intel_va_api_media_sharing'
+            'libdrm: for cl_intel_va_api_media_sharing')
+provides=(opencl-driver level-zero-driver)
+source=(https://github.com/intel/compute-runtime/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz
+        010-intel-compute-runtime-fix-build.patch)
+sha256sums=('a9573af507a5482cf27672a636f04b4329e36fabc72e1c0a0fe686832c4f95d7'
+            '1fe3bd33b964811309fd86ddb426767a1247dd382f6d5c577f58b3a114f5577b')
+
+prepare() {
+  patch -d compute-runtime-${pkgver} -Np1 -i "${srcdir}"/010-intel-compute-runtime-fix-build.patch
+}
+
+build() {
+  cmake -B build -S compute-runtime-${pkgver} \
+    -DCMAKE_BUILD_TYPE=Release \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DCMAKE_INSTALL_LIBDIR=lib \
+    -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 -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