Skip to content
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

[BUG FIX]:fix get torch.version.cuda error when cuda is None in rocm #6909

Merged
merged 7 commits into from
Jan 6, 2025

Conversation

hj-wei
Copy link
Contributor

@hj-wei hj-wei commented Dec 24, 2024

HI, I found some error when using deepspeed with rocm-torch

torch_cuda_version = ".".join(torch.version.cuda.split('.')[:2]) 

will raise an AttributeError when torch.version.cuda is None. This occurs because the CUDA version in rocm-torch/version.py is set to always be None, leading to potential runtime errors in environments where ROCm is being used.

op_builder/builder.py Outdated Show resolved Hide resolved
@loadams loadams enabled auto-merge January 2, 2025 23:41
@loadams loadams added this pull request to the merge queue Jan 6, 2025
Merged via the queue into microsoft:master with commit f8c9f31 Jan 6, 2025
11 checks passed
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.

3 participants