Thanks to visit codestin.com
Credit goes to github.com

Skip to content

set CUDA_MODULE_LOADING for older drivers only #152695

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

ptrblck
Copy link
Collaborator

@ptrblck ptrblck commented May 2, 2025

CUDA_MODULE_LOADING=LAZY is the default for all drivers shipped with CUDA >=12.2 and we should check the driver version before setting the env variable.

(the LOG(WARNING) has to be removed before merging)

cc @msaroufim @eqy @jerryzh168

@ptrblck ptrblck requested review from eqy and syed-ahmed as code owners May 2, 2025 17:04
Copy link

pytorch-bot bot commented May 2, 2025

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/152695

Note: Links to docs will display an error until the docs builds have been completed.

❗ 1 Active SEVs

There are 1 currently active SEVs. If your PR is affected, please view them below:

❌ 1 New Failure

As of commit 822da20 with merge base 50d4698 (image):

NEW FAILURE - The following job has failed:

This comment was automatically generated by Dr. CI and updates every 15 minutes.

Comment on lines 53 to 54
_(nvmlDeviceGetComputeRunningProcesses)\
_(nvmlSystemGetCudaDriverVersion_v2)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
_(nvmlDeviceGetComputeRunningProcesses)\
_(nvmlSystemGetCudaDriverVersion_v2)
#if defined(CUDA_VERSION) && !defined(USE_ROCM)
_(nvmlDeviceGetComputeRunningProcesses)\
#endif
_(nvmlSystemGetCudaDriverVersion_v2)

@eqy eqy added module: cuda Related to torch.cuda, and CUDA support in general topic: not user facing topic category labels May 2, 2025
@facebook-github-bot
Copy link
Contributor

@atalman has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@pytorch-bot pytorch-bot bot added the ciflow/trunk Trigger trunk jobs on your pull request label May 2, 2025
@ptrblck ptrblck changed the title [WIP] set CUDA_MODULE_LOADING for older drivers only set CUDA_MODULE_LOADING for older drivers only May 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ciflow/trunk Trigger trunk jobs on your pull request module: cuda Related to torch.cuda, and CUDA support in general open source topic: not user facing topic category
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants