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

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

hj-wei
Copy link

@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
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