Skip to content

Instantly share code, notes, and snippets.

View YCmove's full-sized avatar

YCmove

  • Taiwan
View GitHub Profile
@YCmove
YCmove / colmap1.md
Last active May 8, 2024 12:06
colmap - error: parameter packs not expanded with ‘...’

colmap - error: parameter packs not expanded with ‘...’

Problem

colmap make failed with with error message error: parameter packs not expanded with ‘...’

Solution

Make sure you have gcc 10 and g++ 10, if not, install them first sudo apt install gcc-10 g++-10

@YCmove
YCmove / gist:09f191676d776a33ac8d6ea1982c80af
Last active May 8, 2024 11:58
colmap - Unsupported gpu architecture 'compute_native’ and error: parameter packs not expanded with ‘...’

colmap - Unsupported gpu architecture 'compute_native’

Problem

Compiling colmap failed with error message Unsupported gpu architecture 'compute_native’.

Solution

Check your GPU's Compute Capability. For example, GeForce RTX 3090 has Compute Capability 8.6, then compile with the number:

cmake .. -GNinja -DCMAKE_CUDA_ARCHITECTURES=86

@YCmove
YCmove / cuda_remove.md
Last active May 8, 2024 14:55
Remove/Uninstall all CUDA driver

Remove/Uninstall all CUDA driver

Remove nvidia driver

sudo apt-get --purge remove "*cuda*" "*cublas*" "*cufft*" "*cufile*" "*curand*" \
 "*cusolver*" "*cusparse*" "*gds-tools*" "*npp*" "*nvjpeg*" "nsight*" "*nvvm*"
sudo apt-get --purge remove "*nvidia*" "libxnvctrl*"
sudo apt --purge remove cudnn*