diff options
-rw-r--r-- | .SRCINFO | 6 | ||||
-rw-r--r-- | PKGBUILD | 28 |
2 files changed, 5 insertions, 29 deletions
@@ -1,9 +1,9 @@ # Generated by mksrcinfo v8 -# Sun May 7 15:16:19 UTC 2017 +# Sun May 7 15:28:04 UTC 2017 pkgbase = tiny-dnn-git pkgdesc = A C++11 implementation of deep learning for limited computational resource, embedded systems and IoT devices (git version) - pkgver = 1.0.0a3.r73.gb89239c - pkgrel = 2 + pkgver = 1.0.0a3.r140.g77901b97 + pkgrel = 1 url = https://github.com/tiny-dnn/tiny-dnn arch = any license = BSD @@ -1,8 +1,8 @@ # Maintainer : Daniel Bermond < yahoo-com: danielbermond > pkgname=tiny-dnn-git -pkgver=1.0.0a3.r73.gb89239c -pkgrel=2 +pkgver=1.0.0a3.r140.g77901b97 +pkgrel=1 pkgdesc="A C++11 implementation of deep learning for limited computational resource, embedded systems and IoT devices (git version)" arch=('any') url="https://github.com/tiny-dnn/tiny-dnn" @@ -23,39 +23,15 @@ pkgver() { build() { cd "${pkgname}" - # set CPU options - if [ "$CARCH" = "x86_64" ] - then - # get CPU flags (contains supported CPU instruction sets) - _cpuflags="$(grep -m1 'flags' /proc/cpuinfo | sed 's/^flags[[:space:]]*:[[:space:]]//')" - - # check if optional instructions are supported by the CPU - { printf "%s" "$_cpuflags" | grep -q 'avx' && _avx="-DUSE_AVX:BOOL=ON" ; } || _avx="-DUSE_AVX:BOOL=OFF" - { printf "%s" "$_cpuflags" | grep -q 'avx2' && _avx2="-DUSE_AVX2:BOOL=ON" ; } || _avx2="-DUSE_AVX2:BOOL=OFF" - - _cpuopts="-DUSE_SSE:BOOL=ON ${_avx} ${_avx2}" - else - _cpuopts="-DUSE_SSE:BOOL=OFF -DUSE_AVX:BOOL=OFF -DUSE_AVX2:BOOL=OFF" - fi - cmake \ -DCMAKE_BUILD_TYPE:STRING=Release \ -DCMAKE_COLOR_MAKEFILE:BOOL=ON \ -DCMAKE_INSTALL_PREFIX:PATH="/usr" \ - -DUSE_TBB=ON \ - -DUSE_OMP:BOOL=OFF \ - $_cpuopts \ - -DUSE_DOUBLE:BOOL=ON \ - -DUSE_NNPACK:BOOL=OFF \ - -DUSE_OPENCL:BOOL=ON \ - -DUSE_LIBDNN:BOOL=OFF \ - -DUSE_SERIALIZER:BOOL=ON \ -DBUILD_TESTS:BOOL=OFF \ -DBUILD_EXAMPLES:BOOL=OFF \ -DBUILD_DOCS:BOOL=OFF \ -Wno-dev \ . - make } package() { |