Skip to content

[Docs] Fix CUDA include directory env var name in installation guide - #3900

Closed
ArchanaChetan07 wants to merge 2 commits into
NVIDIA:mainfrom
ArchanaChetan07:docs/fix-cuda-include-dir-envvar
Closed

ArchanaChetan07 wants to merge 2 commits into
NVIDIA:mainfrom
ArchanaChetan07:docs/fix-cuda-include-dir-envvar

Conversation

@ArchanaChetan07

Copy link
Copy Markdown

Description

docs/installation.rst tells users to set NVTE_CUDA_INCLUDE_PATH when 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__.py sets it automatically from the pip nvidia-cuda-runtime wheel when the user hasn't set it.
  • docs/envvars.rst already documents it under that name.

So the installation guide has the wrong name. This PR corrects it and links to the existing envvars.rst entry using :envvar:.

Fixes #3882

Type of change

  • Documentation change (change only to the documentation, either a fix or a new content)
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Infra/Build change
  • Code refactoring

Changes

  • docs/installation.rst: NVTE_CUDA_INCLUDE_PATH → :envvar:NVTE_CUDA_INCLUDE_DIR

Checklist:

  • I have read and followed the contributing guidelines
  • The functionality is complete
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

🤖 Generated with Claude Code

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>
@github-actions github-actions Bot added the community-contribution PRs from external contributor outside the core maintainers, representing community-driven work. label Nov 19, 2026
@ArchanaChetan07
ArchanaChetan07 marked this pull request as draft November 19, 2026 01:32
@greptile-apps

greptile-apps Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] This documentation correction appears safe to merge.

Summary

Corrects the CUDA header environment variable in docs/installation.rst.

  • The installation guide names the setting used to find CUDA headers.

Reviews (3) · Last reviewed commit: "Merge branch 'main' into docs/fix-cuda-i..." · Reviewed by Greptile

@ArchanaChetan07
ArchanaChetan07 marked this pull request as ready for review November 19, 2026 02:48
@pggPL pggPL mentioned this pull request Nov 24, 2026
8 of 13 tasks
@pggPL

pggPL commented Nov 24, 2026

Copy link
Copy Markdown
Collaborator

Thank you for the contribution! This fix has been included in #3935 (with original commit authorship preserved) so we can run CI and land several small community fixes together. Closing this PR in favor of #3935.

@pggPL pggPL closed this Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community-contribution PRs from external contributor outside the core maintainers, representing community-driven work.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs: NVTE_CUDA_INCLUDE_PATH is documented as the header-discovery override, but nothing reads it

2 participants