Skip to content

Commit

Permalink
Fix build version for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
peterjc123 authored and soumith committed Jul 26, 2019
1 parent 24c3f46 commit 4bb73dc
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion windows/internal/nightly_defaults.bat
Original file line number Diff line number Diff line change
Expand Up @@ -122,12 +122,18 @@ popd

:clone_end

if "%CUDA_VERSION%" == "cpu" (
set _DESIRED_CUDA=cpu
) else (
set _DESIRED_CUDA=cu%CUDA_VERSION%
)

:: PYTORCH_BUILD_VERSION
:: The actual version string. Used in conda like
:: pytorch-nightly==1.0.0.dev20180908
:: or in manylinux like
:: torch_nightly-1.0.0.dev20180908-cp27-cp27m-linux_x86_64.whl
if "%PYTORCH_BUILD_VERSION%" == "" set PYTORCH_BUILD_VERSION=1.2.0.dev%NIGHTLIES_DATE_COMPACT%
if "%PYTORCH_BUILD_VERSION%" == "" set PYTORCH_BUILD_VERSION=1.2.0.dev%NIGHTLIES_DATE_COMPACT%+%_DESIRED_CUDA%

:: PYTORCH_BUILD_NUMBER
:: This is usually the number 1. If more than one build is uploaded for the
Expand Down

0 comments on commit 4bb73dc

Please sign in to comment.