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

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

Merged
merged 4 commits into from
Nov 12, 2020

Conversation

jeffra
Copy link
Collaborator

@jeffra jeffra commented Nov 12, 2020

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
@@ -62,6 +62,8 @@ def ninja_installed():
def nvcc_version():
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
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
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