You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
docs(cuda_core): document toolkit version pinning for PTX driver compatibility - #3537
When compiling PTX dynamically with cuda.core compilation APIs, the resulting PTX ISA version must be supported by the host GPU driver. Installing cuda-core[cu12] or cuda-core[cu13] pulls the newest available cuda-toolkit wheels for that major release, which can lead to driver mismatch / unsupported PTX errors on machines where the display driver has not been updated to match the newest toolkit release.
Changes
Added documentation in cuda_core/docs/source/install.rst outlining two recommended approaches to avoid driver mismatches:
Using system-installed CUDA Toolkit: installing cuda-core[minimal-sysctk12] or cuda-core[minimal-sysctk13] to bind directly to a system toolkit compatible with the host driver.
Constraining toolkit package versions: constraining cuda-toolkit<... with pip or pinning cuda-version=... with Conda.
…atibility
When dynamically compiling PTX with cuda-core, the resulting PTX ISA version
must be supported by the host system GPU driver. By default, installing
cuda-core[cu12] or cuda-core[cu13] pulls the latest cuda-toolkit wheel release,
which may require a newer driver than the host system possesses.
Document how to ensure PTX and driver compatibility by either:
1. Using cuda-core[minimal-sysctk12/13] with a system-installed CUDA Toolkit.
2. Constraining the cuda-toolkit wheel version (e.g., cuda-toolkit<12.5) or
conda cuda-version package to match host driver limits.
ClosesNVIDIA#3379
Signed-off-by: Utkarsh Patwa <utkarshpatwa393@gmail.com>
Added guidance for choosing CUDA toolkit versions compatible with the host driver when compiling and running PTX.
Documented options for using a system toolkit, selecting a specific toolkit wheel version, or pinning the CUDA version in Conda.
The installation guide explains how CUDA toolkit selection affects PTX compatibility with the host driver. It documents options for using a system toolkit or constraining the toolkit version for PyPI and Conda installations.
Changes: PTX and CUDA Toolkit Version Guidance
Layer / File(s)
Summary
Document toolkit version selection cuda_core/docs/source/install.rst
The guide describes potential driver and PTX compatibility errors when cu12 or cu13 selects a toolkit newer than the host driver supports. It documents use of a matching system toolkit with minimal-sysctk12 or minimal-sysctk13, a constrained cuda-toolkit wheel version, or a pinned Conda cuda-version.
Assessment against linked issues
Objective
Addressed
Explanation
Document how to select a toolkit version compatible with the system and host driver [#3379]
✅
Suggested reviewers:leofang, rwgk
Change: Other · Severity of issue fixed: Medium
Merge Risk: Moderate · up to 0d639
The new install guidance can leave users with a toolkit compiler newer than their driver supports. Following the system-toolkit steps over an existing cu12 install, or the CUDA 12 pip constraint command, may still produce unsupported-PTX errors. Correct the instructions before merging.
Architecture risk: Low · up to 0d639
The change affects 1 system.
Changed systems:cuda_core
Architecture concerns
No architecture-level concerns identified.
Review details
Systems and components
observed — cuda_core (service) was modified; 1 changed file maps to changed impact.
Before / after behavior
observed — Modified behavior in cuda_core/docs/source/install.rst: Adds documentation that dynamically compiled PTX must be supported by the host driver, and that using the latest toolkit wheel selected by cu12 or cu13 can cause driver-mismatch or unsupported-PTX errors when the system driver is too old.
observed — Modified behavior in cuda_core/docs/source/install.rst: Documents using a matching system-installed toolkit with minimal-sysctk12 or minimal-sysctk13 instead of toolkit wheels.
observed — Modified behavior in cuda_core/docs/source/install.rst: Documents constraining the cuda-toolkit wheel version for PyPI installations or pinning cuda-version to a CUDA minor version in Conda.
Finishing Touches
Fix failing CI checks
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Reviewing files that changed from the base of the PR and between edf1b31 and 0d63962.
Files selected for processing: 1
cuda_core/docs/source/install.rst
Included review availability: This review used your included allowance. Your plan provides up to 12 included reviews per hour; 10 remain after this review.
The reason will be displayed to describe this comment to others. Learn more.
Major · Functional Correctness · Quick win
important: Account for previously installed toolkit wheels.
If the user previously installed cuda-core[cu12], this command does not remove the NVRTC wheel. Pathfinder searches installed wheels before the system toolkit, so the incompatible compiler can remain in use. Document a clean environment or removal of conflicting wheels. (nvidia.github.io)
The reason will be displayed to describe this comment to others. Learn more.
Major · Functional Correctness · Quick win
important: Constrain the NVRTC wheel.
For CUDA 12, cuda-bindings[all] independently requires nvidia-cuda-nvrtc-cu12 without a version bound. The bare cuda-toolkit<12.5 metapackage does not constrain that wheel. Pip can therefore install a newer NVRTC and produce unsupported PTX. Request the matching cuda-toolkit[nvrtc] extra or explicitly constrain the NVRTC package. (pypi.org)
This branch has not been deployed
No deployments
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
cuda.coreEverything related to the cuda.core module
1 participant
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.
Summary
Closes #3379.
When compiling PTX dynamically with
cuda.corecompilation APIs, the resulting PTX ISA version must be supported by the host GPU driver. Installingcuda-core[cu12]orcuda-core[cu13]pulls the newest availablecuda-toolkitwheels for that major release, which can lead to driver mismatch / unsupported PTX errors on machines where the display driver has not been updated to match the newest toolkit release.Changes
Added documentation in
cuda_core/docs/source/install.rstoutlining two recommended approaches to avoid driver mismatches:cuda-core[minimal-sysctk12]orcuda-core[minimal-sysctk13]to bind directly to a system toolkit compatible with the host driver.cuda-toolkit<...with pip or pinningcuda-version=...with Conda.