diff options
author | Will Feng <yf225@cornell.edu> | 2018-02-23 15:25:03 -0500 |
---|---|---|
committer | Soumith Chintala <soumith@gmail.com> | 2018-02-23 15:25:03 -0500 |
commit | da8e037e03c37569258a0fb2fba8a02a45bd497d (patch) | |
tree | 77ce3e7d2616325855914d141199fd3a4c496a03 /.jenkins | |
parent | 6a2afe3b59e3ebc501d945cd8790c5e05670aaa4 (diff) | |
download | pytorch-da8e037e03c37569258a0fb2fba8a02a45bd497d.tar.gz pytorch-da8e037e03c37569258a0fb2fba8a02a45bd497d.tar.bz2 pytorch-da8e037e03c37569258a0fb2fba8a02a45bd497d.zip |
Test both CPU build and CUDA build for Windows (#5364)
Diffstat (limited to '.jenkins')
-rwxr-xr-x | .jenkins/win-build.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/.jenkins/win-build.sh b/.jenkins/win-build.sh index 54e92f32f6..1a2734c307 100755 --- a/.jenkins/win-build.sh +++ b/.jenkins/win-build.sh @@ -76,6 +76,16 @@ set CMAKE_GENERATOR=Ninja xcopy /Y aten\\src\\ATen\\common_with_cwrap.py tools\\shared\\cwrap_common.py +set NO_CUDA=1 + +python setup.py install + +if %errorlevel% neq 0 exit /b %errorlevel% + +rd /s /q C:\\Jenkins\\Miniconda3\\Lib\\site-packages\\torch + +set NO_CUDA= + python setup.py install && 7z a %IMAGE_COMMIT_TAG%.7z C:\\Jenkins\\Miniconda3\\Lib\\site-packages\\torch && python ci_scripts\\upload_image.py %IMAGE_COMMIT_TAG%.7z EOL |