Repository navigation
Conversation
…d into jeffra/jit_extensions
ShadenSmith
reviewed
Oct 27, 2020
ShadenSmith
reviewed
Oct 29, 2020
| import torch.utils.cpp_extension | ||
| cuda_home = torch.utils.cpp_extension.CUDA_HOME | ||
| # Ensure there is not a cuda version mismatch between torch and nvcc compiler | ||
| output = subprocess.check_output([cuda_home + "/bin/nvcc", |
Contributor
There was a problem hiding this comment.
This crashes on systems without CUDA installed.
DS_BUILD_OPS=0
Traceback (most recent call last):
File "setup.py", line 74, in <module>
assert_no_cuda_mismatch()
File "/home/shsmit/src/deepspeed/op_builder/builder.py", line 20, in assert_no_cuda_mismatch
output = subprocess.check_output([cuda_home + "/bin/nvcc",
TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'
| return version_ge_1_1 + version_ge_1_3 + version_ge_1_5 | ||
|
|
||
| def is_compatible(self): | ||
| assert_no_cuda_mismatch() |
Contributor
There was a problem hiding this comment.
I totally agree that a version mismatch should be a showstopper when we go to build an op. However, asserting here in the compatibility check seems very aggressive and stops us installing on non-CUDA systems.
Collaborator
Author
|
Closed and replaced with #496 which is a squashed and rebased version of this PR. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
pip install deepspeedsupportds_reportreports op install status and compatibility