Sven-Hendrik Haase pushed to branch main at Arch Linux / Packaging / Packages / 
openimagedenoise


Commits:
c01b7492 by Sven-Hendrik Haase at 2024-10-11T04:52:49+02:00
upgpkg: 2.3.0-2: Try to add GPU support

See also #22.

- - - - -


2 changed files:

- .SRCINFO
- PKGBUILD


Changes:

=====================================
.SRCINFO
=====================================
@@ -1,7 +1,7 @@
 pkgbase = openimagedenoise
        pkgdesc = Intel(R) Open Image Denoise library
        pkgver = 2.3.0
-       pkgrel = 1
+       pkgrel = 2
        url = https://openimagedenoise.github.io
        arch = x86_64
        license = Apache-2.0
@@ -9,6 +9,8 @@ pkgbase = openimagedenoise
        makedepends = ninja
        makedepends = ispc
        makedepends = python
+       makedepends = cuda
+       makedepends = hip-runtime-amd
        depends = intel-tbb
        source = 
https://github.com/OpenImageDenoise/oidn/releases/download/v2.3.0/oidn-2.3.0.src.tar.gz
        sha512sums = 
4f68ce3b0da37e1861090d60d7cd823046f325c45a8e2c3f4098eb3b4f7ec676d2acbb9c138ff60a9f83188dd0dcbaba42106aad96beafc5e65045c77c00f2f8


=====================================
PKGBUILD
=====================================
@@ -3,23 +3,27 @@
 
 pkgname=openimagedenoise
 pkgver=2.3.0
-pkgrel=1
+pkgrel=2
 pkgdesc='Intel(R) Open Image Denoise library'
 arch=('x86_64')
 url='https://openimagedenoise.github.io'
 license=('Apache-2.0')
 depends=('intel-tbb')
-makedepends=('cmake' 'ninja' 'ispc' 'python')
+makedepends=('cmake' 'ninja' 'ispc' 'python' 'cuda' 'hip-runtime-amd')
 
source=("https://github.com/OpenImageDenoise/oidn/releases/download/v${pkgver}/oidn-${pkgver}.src.tar.gz";)
 
sha512sums=('4f68ce3b0da37e1861090d60d7cd823046f325c45a8e2c3f4098eb3b4f7ec676d2acbb9c138ff60a9f83188dd0dcbaba42106aad96beafc5e65045c77c00f2f8')
 
 build() {
   cd oidn-$pkgver
 
+  export CXXFLAGS+=" -fcf-protection=none"
+
   cmake \
     -B build \
     -G Ninja \
     -DCMAKE_INSTALL_PREFIX=/usr \
+    -DOIDN_DEVICE_CUDA=ON \
+    -DOIDN_DEVICE_HIP=ON \
     -DCMAKE_BUILD_TYPE=Release
   ninja -C build
 }
@@ -27,4 +31,6 @@ build() {
 package() {
   cd oidn-$pkgver
   DESTDIR="$pkgdir" ninja -C build install
+
+  rm -r "${pkgdir}"/build
 }



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/openimagedenoise/-/commit/c01b7492fdae96823d0dfd0f5ca75bc34243a0aa

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/openimagedenoise/-/commit/c01b7492fdae96823d0dfd0f5ca75bc34243a0aa
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to