Skip to content

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

Merged
merged 1 commit into from
Jun 16, 2020

Conversation

guyang3532
Copy link
Contributor

@guyang3532 guyang3532 commented Jun 12, 2020

@guyang3532
Copy link
Contributor Author

@peterjc123

)

if "%DESIRED_CUDA%" == "cpu" (
call conda list torch | grep cuda || exit /b 0
Copy link
Contributor

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.

Copy link
Contributor

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?

Copy link
Contributor Author

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.

ok

Copy link
Contributor Author

@guyang3532 guyang3532 Jun 13, 2020

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

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
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: grep -> findstr

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@guyang3532 guyang3532 force-pushed the add_win_smoke_test branch from e6e1a86 to eff4857 Compare June 13, 2020 07:25
@peterjc123
Copy link
Contributor

@seemethere

@guyang3532 guyang3532 force-pushed the add_win_smoke_test branch from eff4857 to 601a85d Compare June 15, 2020 07:55
@peterjc123
Copy link
Contributor

peterjc123 commented Jun 16, 2020

@soumith @seemethere Could you please take a look?

@seemethere seemethere merged commit 65e9171 into pytorch:master Jun 16, 2020
facebook-github-bot pushed a commit to pytorch/pytorch that referenced this pull request Jun 16, 2020
Summary:
Related pr: pytorch/builder#456
test at:#39943
Pull Request resolved: #39941

Differential Revision: D22068004

Pulled By: ezyang

fbshipit-source-id: 5244f64d842b3a8bf0af720dffb4b1a0370cc178
xwang233 pushed a commit to xwang233/pytorch that referenced this pull request Jun 20, 2020
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
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