-
Notifications
You must be signed in to change notification settings - Fork 227
WIN smoke test support for nightly package #456
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
Conversation
) | ||
|
||
if "%DESIRED_CUDA%" == "cpu" ( | ||
call conda list torch | grep cuda || exit /b 0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: Consider replacing grep
with findstr
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do you search for cuda here? Could you please explain?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: Consider replacing
grep
withfindstr
.
ok
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do you search for cuda here? Could you please explain?
If 'cuda' is found in torch package name, then it's build for cuda, not for cpu, print the error info and exit /b 1
, else exit /b 0
corresponding linux code is
Line 172 in 39d5dd4
if [[ -n "$(conda list torch | grep -o cuda)" ]]; then |
echo "The installed package is built for CUDA, the full package is" | ||
call conda list torch | ||
) else ( | ||
call conda list torch | grep cuda%CUDA_VERSION% && exit /b 0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: grep -> findstr
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
e6e1a86
to
eff4857
Compare
eff4857
to
601a85d
Compare
@soumith @seemethere Could you please take a look? |
Summary: Related pr: pytorch/builder#456 test at:#39943 Pull Request resolved: #39941 Differential Revision: D22068004 Pulled By: ezyang fbshipit-source-id: 5244f64d842b3a8bf0af720dffb4b1a0370cc178
Summary: Related pr: pytorch/builder#456 test at:pytorch#39943 Pull Request resolved: pytorch#39941 Differential Revision: D22068004 Pulled By: ezyang fbshipit-source-id: 5244f64d842b3a8bf0af720dffb4b1a0370cc178
Related pr: pytorch/pytorch#39941
test at: pytorch/pytorch#39943