Skip to content

Fix support for containers w/ CUDA 13.0+#831

Merged
alvarobartt merged 4 commits intomainfrom
use-cuda-compat-13-1
Feb 17, 2026
Merged

Fix support for containers w/ CUDA 13.0+#831
alvarobartt merged 4 commits intomainfrom
use-cuda-compat-13-1

Conversation

@alvarobartt
Copy link
Member

@alvarobartt alvarobartt commented Feb 17, 2026

What does this PR do?

This PR fixes the Dockerfile-cuda and Dockerfile-cuda-all images with a custom entrypoint cuda-entrypoint.sh and cuda-all-entrypoint.sh, respectively; to dynamically include the cuda-compat-12-9 in the path under LD_LIBRARY_PATH or not, depending on whether it's required or not.

Note

Installing cuda-compat-12-9 on the CUDA 12.9 runtime inside the container means that it can run on any CUDA version from 12.2 to 12.9 included, but it also prevents the container from running with later CUDA versions as 13.0 onwards. So, installing it but not including it under LD_LIBRARY_PATH when CUDA is greater than 12.9.1, solves the issue CUDA_ERROR_SYSTEM_DRIVER_MISMATCH = 803 when running the container with CUDA 13.0+.

More information can be found at https://docs.nvidia.com/deploy/cuda-compatibility/forward-compatibility.html

Before submitting

  • This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).
  • Did you read the contributor guideline?
  • Was this discussed/approved via a GitHub issue or the forum? Please add a link to it if that's the case.
  • Did you make sure to update the documentation with your changes? Here are the documentation guidelines.
  • Did you write any new necessary tests? If applicable, did you include or update the insta snapshots?

Who can review?

Anyone in the community is free to review the PR once the tests have passed. Feel free to tag
members/contributors who may be interested in your PR.

@alvarobartt alvarobartt changed the title Install cuda-compat-13-1 (latest) instead Fix support for containers w/ CUDA 13.0+ Feb 17, 2026
@alvarobartt alvarobartt marked this pull request as ready for review February 17, 2026 20:56
@alvarobartt alvarobartt merged commit b38b8f1 into main Feb 17, 2026
16 checks passed
@alvarobartt alvarobartt deleted the use-cuda-compat-13-1 branch February 17, 2026 20:56
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.

1 participant