Skip to content

Conversation

@MasahiroOgawa
Copy link
Contributor

Objective

Select compatible nvidia libraries automatically.
Select automatically in this order; Nvidia driver -> Nvidia container toolkit -> Cuda -> nvidia container

Original Problem and solution

Problem

When I ran

 ./run.sh ../dataset

I encountered below error;

docker: Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error running prestart hook #0: exit status 1, stdout: , stderr: Auto-detected mode as 'legacy'
nvidia-container-cli: requirement error: unsatisfied condition: cuda>=12.9

Cause

This is because I didn't install the proper Nvidia driver.

Solution

But it is preferable that setup-ubuntu.sh automatically select compatible drivers and Cuda version.

Test

I confirmed all below procedure finished successfully using South building dataset

cd docker
./setup-ubuntu.sh
./build.sh
./run.sh ../dataset
colmap automatic_reconstructor --image_path ./images --workspace_path .

@ahojnnes ahojnnes changed the title Feature/autoselect compatible nvidia Autoselect compatible nvidia Jul 5, 2025
@ahojnnes ahojnnes changed the title Autoselect compatible nvidia Autoselect compatible nvidia for docker Jul 5, 2025
@ahojnnes ahojnnes enabled auto-merge (squash) July 5, 2025 12:40
@ahojnnes
Copy link
Contributor

ahojnnes commented Jul 5, 2025

Thanks, looks good to me.

@ahojnnes ahojnnes merged commit d2dbf68 into colmap:main Jul 5, 2025
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants