Repository navigation
[Docs] Fix CUDA include directory env var name in installation guide - #3900
Closed
ArchanaChetan07 wants to merge 2 commits into
Closed
ArchanaChetan07 wants to merge 2 commits into
ArchanaChetan07 wants to merge 2 commits into
Conversation
The installation guide tells users to set NVTE_CUDA_INCLUDE_PATH when CUDA headers are not in a standard location, but nothing reads that variable. The runtime header lookup in common/util/cuda_runtime.cpp (used for NVRTC) reads NVTE_CUDA_INCLUDE_DIR, which is also the name documented in envvars.rst and set by transformer_engine/common/__init__.py. Use the correct name and link it to its envvars.rst entry. Fixes NVIDIA#3882 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: ArchanaChetan07 <apatil@sandiego.edu>
ArchanaChetan07
marked this pull request as draft
November 19, 2026 01:32
Contributor
[Low impact] This documentation correction appears safe to merge. SummaryCorrects the CUDA header environment variable in
Reviews (3) · Last reviewed commit: "Merge branch 'main' into docs/fix-cuda-i..." · Reviewed by Greptile |
ArchanaChetan07
marked this pull request as ready for review
November 19, 2026 02:48
8 of 13 tasks
Collaborator
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.
Description
docs/installation.rsttells users to setNVTE_CUDA_INCLUDE_PATHwhen CUDA Toolkit headers are not in a standard location. Nothing reads that variable. #3882 reports this.The variable that is read is
NVTE_CUDA_INCLUDE_DIR:transformer_engine/common/util/cuda_runtime.cpp(cuda::include_directory) checks it first in the NVRTC header search. Its error message already says "Specify path to CUDA Toolkit headers with NVTE_CUDA_INCLUDE_DIR".transformer_engine/common/__init__.pysets it automatically from the pipnvidia-cuda-runtimewheel when the user hasn't set it.docs/envvars.rstalready documents it under that name.So the installation guide has the wrong name. This PR corrects it and links to the existing
envvars.rstentry using:envvar:.Fixes #3882
Type of change
Changes
docs/installation.rst:NVTE_CUDA_INCLUDE_PATH→ :envvar:NVTE_CUDA_INCLUDE_DIRChecklist:
🤖 Generated with Claude Code