@Harvie
PKGBUILD is cuda
aware - if you build on system without cuda
it won't be turned on:
52 # determine whether we can precompile CUDA kernels
53 _CUDA_PKG=`pacman -Qq cuda 2>/dev/null` || true
54 if [ "$_CUDA_PKG" != "" ]; then
55 _EXTRAOPTS="-DCUDA_ENABLED=ON -DCUDA_HOST_COMPILER=/opt/cuda/bin/gcc -DCUDA_TOOLKIT_ROOT_DIR=/opt/cuda"
56 fi
If you want to disble cuda
kernel you can always comment out _EXTRAOPTS
.
If you have any better ide, I'm open for patching ;)
Pinned Comments
bartus commented on 2019-04-10 11:42 (UTC) (edited on 2024-02-12 15:16 (UTC) by bartus)
This package is also hosted on GitHub.
issues
andpatches
at GitHub.Use env vars to control build process:
BUILD_CUDA=ON|OFF
to skip cuda kernel build (default 'ON')CUDA_ARCH="5.2,7.2"
to build for a specific Cuda arch, supports multiple values.MAKEFLAGS="xxx:yyy"
to override default make flags (colon-separated list)Usage cases:
export BUILD_CUDA=OFF
before buildBUILD_CUDA=OFF ~your-aur-helper~
makepkg BUILD_CUDA=OFF
yay -S colmap-git --mflags "BUILD_CUDA=OFF"
bartus commented on 2017-03-21 11:02 (UTC) (edited on 2017-04-25 08:04 (UTC) by bartus)