Skip to content

Bump minimum CUDA version to 12.0 - #1103

Merged
timmoon10 merged 8 commits into
NVIDIA:mainfrom
timmoon10:min-cuda-12
Aug 14, 2024
Merged

timmoon10 merged 8 commits into
NVIDIA:mainfrom
timmoon10:min-cuda-12

Conversation

@timmoon10

@timmoon10 timmoon10 commented Aug 13, 2024 •

Copy link
Copy Markdown
Member

Description

#970 uses an overload for cudaGetDriverEntryPoint that was first added in CUDA 12.0. This PR updates the docs and adds a check that should fail if users build with CUDA <12.0.

Closes #1086, #1093.

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 refractor

Changes

  • Updates the minimum CUDA version in the docs
  • Checks for CUDA 12.0+ in CMake
  • Expands comments in the CMakeLists.txt
  • Uses CUDA 12.0 in the GitHub core build test

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

Signed-off-by: Tim Moon <tmoon@nvidia.com>
@timmoon10
timmoon10 requested a review from ptrendx August 13, 2024 21:27
@timmoon10

Copy link
Copy Markdown
Member Author

/te-ci

Signed-off-by: Tim Moon <tmoon@nvidia.com>
Signed-off-by: Tim Moon <tmoon@nvidia.com>
@ptrendx ptrendx linked an issue Aug 13, 2024 that may be closed by this pull request
@timmoon10
timmoon10 marked this pull request as ready for review August 14, 2024 01:08
@timmoon10

Copy link
Copy Markdown
Member Author

/te-ci

@ksivaman ksivaman left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The README.rst would also need modification since it mentions 11.8 requirement for installation.

@ksivaman ksivaman left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

build_tools/pytorch.py and build_tools/paddle.py also have checks for various cuda 11.* versions to include the correct compilation flags, those checks should also be removed. Generally we could add a cuda version check during the setup process as well on the python side when querying the version.

@ksivaman
ksivaman self-requested a review August 14, 2024 03:22
Comment thread docs/installation.rst Resolved
timmoon10 and others added 3 commits August 14, 2024 13:13
Remove logic for CUDA <12.0 in PyTorch and Paddle builds. Update version in docs and README.

Signed-off-by: Tim Moon <tmoon@nvidia.com>
@timmoon10
timmoon10 requested a review from ptrendx August 14, 2024 20:15

@ksivaman ksivaman left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@timmoon10

Copy link
Copy Markdown
Member Author

/te-ci

@timmoon10
timmoon10 merged commit cc329b7 into NVIDIA:main Aug 14, 2024
@timmoon10
timmoon10 deleted the min-cuda-12 branch December 3, 2024 08:21
xiaoteng-cui-mt pushed a commit to MooreThreads/MT-TransformerEngine that referenced this pull request Oct 9, 2026
* Bump minimum CUDA version to 12.0

Signed-off-by: Tim Moon <tmoon@nvidia.com>

* Debug CUDA version check

Signed-off-by: Tim Moon <tmoon@nvidia.com>

* Debug CMake build

Signed-off-by: Tim Moon <tmoon@nvidia.com>

* Review suggestions from @ksivaman and @ptrendx

Remove logic for CUDA <12.0 in PyTorch and Paddle builds. Update version in docs and README.

Signed-off-by: Tim Moon <tmoon@nvidia.com>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Signed-off-by: Tim Moon <tmoon@nvidia.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

cudaDriverEntryPointQueryResult not defined [ERROR] in the last step of pip install .

3 participants