Skip to content

Instantly share code, notes, and snippets.

@YCmove
Last active May 8, 2024 11:58
Show Gist options
  • Save YCmove/09f191676d776a33ac8d6ea1982c80af to your computer and use it in GitHub Desktop.
Save YCmove/09f191676d776a33ac8d6ea1982c80af to your computer and use it in GitHub Desktop.
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

Environment

  • OS: Ubuntu 22.04
  • Driver: 545.29.06
  • CUDA: 12.3
  • nvcc: 11.5

Reference

Cmake - CUDA_ARCHITECTURES

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment