Date: Thursday, April 28, 2022 @ 11:10:20 Author: kgizdov Revision: 1191550
archrelease: copy trunk to community-testing-x86_64 Added: arrayfire/repos/community-testing-x86_64/ arrayfire/repos/community-testing-x86_64/PKGBUILD (from rev 1191548, arrayfire/trunk/PKGBUILD) arrayfire/repos/community-testing-x86_64/arrayfire-boost-1.76.0.patch (from rev 1191548, arrayfire/trunk/arrayfire-boost-1.76.0.patch) ------------------------------+ PKGBUILD | 66 +++++++++++++++++++++++++++++++++++++++++ arrayfire-boost-1.76.0.patch | 12 +++++++ 2 files changed, 78 insertions(+) Copied: arrayfire/repos/community-testing-x86_64/PKGBUILD (from rev 1191548, arrayfire/trunk/PKGBUILD) =================================================================== --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2022-04-28 11:10:20 UTC (rev 1191550) @@ -0,0 +1,66 @@ +# Maintainer: Sven-Hendrik Haase <svenst...@archlinux.org> +pkgname=arrayfire +pkgver=3.8.1 +pkgrel=6 +pkgdesc="High performance software library for parallel computing with an easy-to-use API" +arch=('x86_64') +url='https://arrayfire.com' +license=('BSD') +depends=('cblas' 'fftw' 'lapacke' 'forge' 'freeimage' 'glfw' 'glew' 'intel-mkl') +makedepends=('cmake' 'graphviz' 'doxygen' 'opencl-headers' 'python' 'ocl-icd' 'cuda' 'cudnn' 'git' 'ninja' 'boost') +optdepends=('cuda: Required for using CUDA backend' + 'nvidia-utils: Required for using CUDA backend' + 'cudnn: Required for using CUDA backend' + 'opencl-driver: Required for using OpenCL backend' + 'ocl-icd: Required for OpenCL ICD Bindings') +options=('!lto') +source=("http://github.com/${pkgname}/${pkgname}/releases/download/v${pkgver}/${pkgname}-full-${pkgver}.tar.bz2" + 'arrayfire-boost-1.76.0.patch') +sha512sums=('341bccdc52c995a58367640574037626476c3836061a93d49344d63cfdda791c171d0908e66a13aff0fc6c4e6b747d801e5b2c637f9576177f91ce0b6cf387bb' + '92e34c28e4b6222febef5a3047f4faf64756a50b46a68507931b989984bbc6729aa4d1560dc267650f1890cb1ad7aa0866dd3debc0073f9103f764af7618d795') + +prepare() { + cd "${srcdir}/arrayfire-full-${pkgver}" + patch -Np1 -i "${srcdir}/arrayfire-boost-1.76.0.patch" +} + +build() { + cd "${srcdir}/arrayfire-full-${pkgver}" + + cmake \ + -GNinja \ + -Bbuild \ + -DUSE_CPU_MKL=ON \ + -DGOOGLETEST_VERSION=1.9.0 \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=/usr/lib \ + -DAF_WITH_IMAGEIO=ON \ + -DAF_BUILD_CPU=ON \ + -DAF_BUILD_OPENCL=ON \ + -DAF_WITH_NONFREE=ON \ + -DAF_BUILD_EXAMPLES=ON \ + -DAF_BUILD_DOCS=ON \ + -DCUDA_architecture_build_targets="5.2;5.3;6.0;6.1;6.2;7.0;7.2;7.5;8.0;8.6;8.6+PTX" \ + -DCMAKE_BUILD_TYPE=Release \ + -DCUDA_HOST_COMPILER=/usr/bin/gcc \ + -DBoost_NO_BOOST_CMAKE=ON + + ninja -C build +} + +check() { + cd "${srcdir}/arrayfire-full-${pkgver}" + + # Tests currently broken :( + # ninja -C build test +} + +package() { + cd "${srcdir}/arrayfire-full-${pkgver}" + + install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE + + DESTDIR="${pkgdir}/" ninja -C build install + rm -r "${pkgdir}"/usr/LICENSES + rm -r "${pkgdir}"/usr/lib/libforge* +} Copied: arrayfire/repos/community-testing-x86_64/arrayfire-boost-1.76.0.patch (from rev 1191548, arrayfire/trunk/arrayfire-boost-1.76.0.patch) =================================================================== --- community-testing-x86_64/arrayfire-boost-1.76.0.patch (rev 0) +++ community-testing-x86_64/arrayfire-boost-1.76.0.patch 2022-04-28 11:10:20 UTC (rev 1191550) @@ -0,0 +1,12 @@ +diff --git a/src/backend/opencl/kernel/homography.hpp b/src/backend/opencl/kernel/homography.hpp +index b84e599..3034658 100644 +--- a/src/backend/opencl/kernel/homography.hpp ++++ b/src/backend/opencl/kernel/homography.hpp +@@ -21,6 +21,7 @@ + + #include <string> + #include <vector> ++#include <cfloat> + + namespace opencl { + namespace kernel {