Skip to content

Error: This program needs a CUDA Enabled GPU

Remy Mellet edited this page Jan 21, 2021 · 25 revisions

Meshroom 2020 requires at least compute capability 3 (built with CUDA SDK 10). Take a look at this table to find your device https://en.wikipedia.org/wiki/CUDA. Otherwise you can use Meshroom 2019 which requires compute capability 2.

This error message on a computer with NVIDIA GPU

[error] This program needs a CUDA-Enabled GPU (with at least compute capability 3.0),

but Meshroom is running on a computer with an NVIDIA GPU.

Solution: update/reinstall your drivers

  • Open the NVIDia Control Center and go to the left panel 3D Settings / Manage 3D Settings. In the right panel use the Program Setting Tab to Add Meshroom. In the Feature List set CUDA - GPUs to All.

  • For laptops: make sure the NVIDIA GPU is set as primary GPU (sometimes laptops use Intel HD graphics chip to save power)

More details: #182 #197 #203

Also: https://github.com/alicevision/meshroom/wiki/DepthMap-slow-or-red-bar-or-crash

With FeatureExtraction

Force CPU extraction disabled (experimental) https://github.com/alicevision/popsift used in FeatureExtraction needs cuda compute capability 3+

Does my GPU support CUDA?

Check https://developer.nvidia.com/cuda-gpus

This Error message on a computer without NVIDIA GPU

The depth map computation is implemented with CUDA and requires an NVIDIA GPU.

#218 #260

[Request] Remove CUDA dependency alicevision/#439

Currently, we have neither the interest nor the resources to do another implementation of the CUDA code to another GPU framework. If someone is willing to make this contribution, we will support and help for integration.*

Can I use Meshroom without a NVIDIA GPU?

Yes, but you have to use Draft Meshing to complete the reconstruction.

Why CUDA?

Background on why CUDA is more popular than OpenCL/Vulkan

CUDA vs. OpenCL

CUDA on Linux

Read https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html

On Debian installing nvidia-cuda-dev is known to work: https://github.com/alicevision/meshroom/issues/624#issuecomment-549392265

On Ubuntu, installing sudo ubuntu-drivers autoinstall is know to work (tested on fresh Ubuntu 20 LTS)

Run Meshroom in the cloud

Meshroom-on-Google-Colab

or

Amazon Web Service