@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 2026-04-29 21:18 (UTC) by bartus)
This package is also hosted on GitHub.
issuesandpatchesat GitHub.Use env vars to control build process:
BUILD_CUDA=ON|OFFto skip cuda kernel build (default 'ON')CUDA_ARCH="5.2,7.2"to build for a specific Cuda arch, supports multiple values.CMAKE_FLAGS="xxx:yyy"to add extra CMake switches (colon-separated list)Usage cases:
export BUILD_CUDA=OFFbefore buildBUILD_CUDA=OFF ~your-aur-helper~makepkg BUILD_CUDA=OFFyay -S colmap-git --mflags "BUILD_CUDA=OFF"