diff options
author | Jingbei Li | 2019-07-05 16:47:08 +0800 |
---|---|---|
committer | Jingbei Li | 2019-07-05 16:47:08 +0800 |
commit | cb5e605b996458e741564b62d4949085a47d8350 (patch) | |
tree | 78d6ce5882eac49843d7ab6ac451848764df2522 | |
parent | b9659a7e11d0483d0ab57b1d4f1b4494994a8a48 (diff) | |
download | aur-cb5e605b996458e741564b62d4949085a47d8350.tar.gz |
added patch
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 9 |
2 files changed, 9 insertions, 2 deletions
@@ -1,7 +1,7 @@ pkgbase = torch7-cunn-git pkgdesc = CUDA backend for Torch7 Neural Network Package pkgver = r819.1ae6aa0 - pkgrel = 4 + pkgrel = 5 url = https://github.com/torch/cunn arch = x86_64 arch = i686 @@ -2,7 +2,7 @@ pkgdesc='CUDA backend for Torch7 Neural Network Package' pkgname='torch7-cunn-git' pkgver=r819.1ae6aa0 -pkgrel=4 +pkgrel=5 makedepends=('cmake' 'git') depends=('torch7-git>=r819' 'cuda' 'torch7-nn-git' 'torch7-cutorch-git') conflicts=('torch7-cunn') @@ -22,6 +22,13 @@ pkgver () { ) } +prepare() { + cd "${pkgname}" + + # https://stackoverflow.com/questions/46345811/cuda-9-shfl-vs-shfl-sync + sed -e 's/__shfl(/__shfl_sync(0xFFFFFFFF, /g' -e 's/__any(/__any_sync(0xFFFFFFFF, /g' -i lib/THCUNN/LookupTable.cu +} + build () { CFLAGS="${CFLAGS/-fno-plt/}" CXXFLAGS="${CFLAGS/-fno-plt/}" |