Skip to content

ds_report bug fix on cpu and guard torch import in setup.py#524

Merged
jeffra merged 4 commits into
masterfrom
jeffra/cuda_home_missing_Fix
Nov 12, 2020
Merged

ds_report bug fix on cpu and guard torch import in setup.py#524
jeffra merged 4 commits into
masterfrom
jeffra/cuda_home_missing_Fix

Conversation

@jeffra

@jeffra jeffra commented Nov 12, 2020

Copy link
Copy Markdown
Collaborator

No description provided.

@jeffra jeffra changed the title ds_report, on cpu error gracefully if cuda home doesn't exist ds_report bug fix on cpu and guard torch import in setup.py Nov 12, 2020
Comment thread deepspeed/env_report.py
import torch.utils.cpp_extension
cuda_home = torch.utils.cpp_extension.CUDA_HOME
if cuda_home is None:
return f"{RED} [FAIL] cannot find CUDA_HOME via torch.utils.cpp_extension.CUDA_HOME={torch.utils.cpp_extension.CUDA_HOME} {END}"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Do we need to guard against torch import error?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I think this is okay, the torch guard in setup.py is more related to the pip install deepspeed assumes now that torch is installed already. But we won't even install deepspeed at all if torch isn't installed.

@jeffra jeffra merged commit ca9ab12 into master Nov 12, 2020
@jeffra jeffra deleted the jeffra/cuda_home_missing_Fix branch November 12, 2020 21:58
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