Repository navigation
fix: GPU on Docker Desktop/WSL2 uses the host driver - #19
Merged
Merged
Conversation
… libcuda The CUDA image puts /usr/local/cuda-12.6/compat first on LD_LIBRARY_PATH (Cloud Run's L4 driver needs it). On Docker Desktop/WSL2 that compat libcuda hides the WSL driver Docker injects, CUDA reports error 100 "no CUDA-capable device is detected" and every model falls back to CPU, while /health still says gpu: true. docker-compose.yml and the README GPU command now set LD_LIBRARY_PATH=/usr/lib/onnxruntime; docs/CONFIGURATION.md says when. Checked locally on an RTX 3060: with the override the log shows "Creating BFCArena for Cuda" and no CPU fallback. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The local
shivvrcontainer ran every model on CPU. The CUDA image puts/usr/local/cuda-12.6/compatfirst onLD_LIBRARY_PATH(Cloud Run's L4 driver needs it). On Docker Desktop/WSL2 that compatlibcuda.so.560hides the WSL driver Docker injects, so CUDA reports error 100 "no CUDA-capable device is detected" and ONNX Runtime falls back to CPU./healthstill saysgpu: true.Change
docker-compose.ymland the README GPUdocker runsetLD_LIBRARY_PATH=/usr/lib/onnxruntime.docs/CONFIGURATION.mdsays when to use which.Cloud Run is unchanged: the image default keeps the compat path.
Checked
Recreated the local container with the override on an RTX 3060: the log shows
Creating BFCArena for Cudaand nofalling back to CPU.Follow-ups (not here)
/healthgpushould report whether CUDA actually registered, not the build feature.🤖 Generated with Claude Code