Add CUDA 12.8 support for RTX 5090 / Blackwell GPUs #72
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.
Pull Request: Add CUDA 12.8 Support for RTX 5090 / Blackwell GPUs
Summary
This PR adds support for NVIDIA's RTX 5090 and Blackwell architecture GPUs (sm_120 compute capability) while maintaining full backward compatibility with existing CUDA 12.1 configurations.
Problem
The RTX 5090 uses the new Blackwell architecture with CUDA compute capability
sm_120
. Current stable PyTorch releases with CUDA 12.1 do not support sm_120, causing the error:Solution
PyTorch 2.8.0 with CUDA 12.8 is the first stable release to include sm_120 support. This PR provides an additional configuration option for users with Blackwell GPUs while keeping the existing CUDA 12.1 setup as the default.
Changes
New Files Added
Dockerfile.cu128
- Alternative Dockerfile with CUDA 12.8 supportnvidia/cuda:12.8.1-runtime-ubuntu22.04
base image--no-deps
to maintain PyTorch versiondocker-compose-cu128.yml
- Docker Compose configuration for CUDA 12.8Dockerfile.cu128
requirements-nvidia-cu128.txt
- CUDA 12.8 Python requirementsREADME_CUDA128.md
- Complete setup guide for CUDA 12.8README_PR_CHANGES.md
- Suggested additions to main READMEFiles Modified
None - This PR is 100% backward compatible and adds files only.
Backward Compatibility
✅ Fully backward compatible - No existing files are modified:
Dockerfile
remains unchanged (CUDA 12.1)docker-compose.yml
remains unchangedUsage
For RTX 5090 / Blackwell Users
For All Other Users
Continue using the standard setup - no changes needed:
docker compose up -d # or pip install -r requirements-nvidia.txt
Verification
Users can verify sm_120 support with:
Expected output should include:
['sm_70', 'sm_75', 'sm_80', 'sm_86', 'sm_90', 'sm_100', 'sm_120']
Benefits
Testing
Tested on:
Verified:
Compatibility Matrix
Documentation Updates
Optional README additions provided in
README_PR_CHANGES.md
:These can be applied or modified as preferred by the maintainer.
Dependencies
All new dependencies are identical to existing ones, just different versions:
Open Question for Maintainer
Checklist
Related Links