summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorbartus2020-06-18 18:25:20 +0200
committerbartus2020-06-18 18:25:20 +0200
commit86516e9b4b88d2b086c81d053aa2dad62401e186 (patch)
treea82f21cf7ae3f8424a51a47fbe3153db87c9b096 /PKGBUILD
parent7d1e296cca5ef42454176ff4d5f2d8f2593bbed7 (diff)
downloadaur-86516e9b4b88d2b086c81d053aa2dad62401e186.tar.gz
Add CUDA_ARCH control variable.
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD6
1 files changed, 5 insertions, 1 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 1a979f876ef..1f37d7df2cf 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,10 @@
#!/hint/bash
# Maintainer : bartus <arch-user-repoᘓbartus.33mail.com>
# -> disable check() until #63 is fixed
-DISABLE_CHECK=1
+
+#Configuration variables
+# CUDA_ARCH : sm_50, sm_50 ...
+DISABLE_CHECK=${DISABLE_CHECK:-1}
_name=popsift
pkgname=(${_name} ${_name}-libs)
@@ -25,6 +28,7 @@ _CMAKE_FLAGS=( -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release )
build() {
cd ${srcdir}
+ [[ -v CUDA_ARCH ]] && _CMAKE_FLAGS+=( -DPopSift_CUDA_CC_LIST="$CUDA_ARCH" )
msg2 "Build static ${_name} library"
mkdir -p build_static && pushd build_static