Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
471 changes: 29 additions & 442 deletions windows/azure-pipelines.yml

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions windows/cuda100.bat
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ set NO_CUDA=
set CMAKE_GENERATOR=Visual Studio 15 2017 Win64

IF "%NVTOOLSEXT_PATH%"=="" (
echo NVTX ^(Visual Studio Extension ^for CUDA^) ^not installed, disabling CUDA
set NO_CUDA=1
echo NVTX ^(Visual Studio Extension ^for CUDA^) ^not installed, failing
exit /b 1
goto optcheck
)

IF "%CUDA_PATH_V10_0%"=="" (
echo CUDA 10.0 not found, disabling it
set NO_CUDA=1
echo CUDA 10.0 not found, failing
exit /b 1
) ELSE (
set TORCH_CUDA_ARCH_LIST=3.5;5.0+PTX;6.0;6.1;7.0;7.5
set TORCH_NVCC_FLAGS=-Xfatbin -compress-all
Expand Down
12 changes: 6 additions & 6 deletions windows/cuda80.bat
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,18 @@ set NO_CUDA=
set CMAKE_GENERATOR=Visual Studio 15 2017 Win64

IF "%NVTOOLSEXT_PATH%"=="" (
echo NVTX ^(Visual Studio Extension ^for CUDA^) ^not installed, disabling CUDA
set NO_CUDA=1
echo NVTX ^(Visual Studio Extension ^for CUDA^) ^not installed, failing
exit /b 1
goto optcheck
)

IF "%CUDA_PATH_V8_0%"=="" (
echo CUDA 8 not found, disabling it
set NO_CUDA=1
echo CUDA 8 not found, failing
exit /b 1
) ELSE (
IF "%VS140COMNTOOLS%"=="" (
echo CUDA 8 found, but VS2015 not found, disabling it
set NO_CUDA=1
echo CUDA 8 found, but VS2015 not found, failing
exit /b 1
) ELSE (
set TORCH_CUDA_ARCH_LIST=3.5;5.0+PTX;6.0;6.1
set TORCH_NVCC_FLAGS=-Xfatbin -compress-all
Expand Down
8 changes: 4 additions & 4 deletions windows/cuda90.bat
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ set NO_CUDA=
set CMAKE_GENERATOR=Visual Studio 15 2017 Win64

IF "%NVTOOLSEXT_PATH%"=="" (
echo NVTX ^(Visual Studio Extension ^for CUDA^) ^not installed, disabling CUDA
set NO_CUDA=1
echo NVTX ^(Visual Studio Extension ^for CUDA^) ^not installed, failing
exit /b 1
goto optcheck
)

IF "%CUDA_PATH_V9_0%"=="" (
echo CUDA 9 not found, disabling it
set NO_CUDA=1
echo CUDA 9 not found, failing
exit /b 1
) ELSE (
set TORCH_CUDA_ARCH_LIST=3.5;5.0+PTX;6.0;7.0
set TORCH_NVCC_FLAGS=-Xfatbin -compress-all
Expand Down
94 changes: 47 additions & 47 deletions windows/cuda91.bat → windows/old/cuda91.bat
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,47 +1,47 @@
@echo off
IF NOT EXIST "setup.py" IF NOT EXIST "pytorch" (
call internal\clone.bat
cd ..
IF ERRORLEVEL 1 goto eof
) ELSE (
call internal\clean.bat
)
call internal\check_deps.bat
IF ERRORLEVEL 1 goto eof
REM Check for optional components
set NO_CUDA=
set CMAKE_GENERATOR=Visual Studio 15 2017 Win64
IF "%NVTOOLSEXT_PATH%"=="" (
echo NVTX ^(Visual Studio Extension ^for CUDA^) ^not installed, disabling CUDA
set NO_CUDA=1
goto optcheck
)
IF "%CUDA_PATH_V9_1%"=="" (
echo CUDA 9.1 not found, disabling it
set NO_CUDA=1
) ELSE (
set TORCH_CUDA_ARCH_LIST=3.5;5.0+PTX;6.0;6.1;7.0
set TORCH_NVCC_FLAGS=-Xfatbin -compress-all
set "CUDA_PATH=%CUDA_PATH_V9_1%"
set "PATH=%CUDA_PATH_V9_1%\bin;%PATH%"
)
:optcheck
call internal\check_opts.bat
IF ERRORLEVEL 1 goto eof
call internal\copy.bat
IF ERRORLEVEL 1 goto eof
call internal\setup.bat
IF ERRORLEVEL 1 goto eof
:eof
@echo off

IF NOT EXIST "setup.py" IF NOT EXIST "pytorch" (
call internal\clone.bat
cd ..
IF ERRORLEVEL 1 goto eof
) ELSE (
call internal\clean.bat
)

call internal\check_deps.bat
IF ERRORLEVEL 1 goto eof

REM Check for optional components

set NO_CUDA=
set CMAKE_GENERATOR=Visual Studio 15 2017 Win64

IF "%NVTOOLSEXT_PATH%"=="" (
echo NVTX ^(Visual Studio Extension ^for CUDA^) ^not installed, disabling CUDA
set NO_CUDA=1
goto optcheck
)

IF "%CUDA_PATH_V9_1%"=="" (
echo CUDA 9.1 not found, disabling it
set NO_CUDA=1
) ELSE (
set TORCH_CUDA_ARCH_LIST=3.5;5.0+PTX;6.0;6.1;7.0
set TORCH_NVCC_FLAGS=-Xfatbin -compress-all

set "CUDA_PATH=%CUDA_PATH_V9_1%"
set "PATH=%CUDA_PATH_V9_1%\bin;%PATH%"
)

:optcheck

call internal\check_opts.bat
IF ERRORLEVEL 1 goto eof

call internal\copy.bat
IF ERRORLEVEL 1 goto eof

call internal\setup.bat
IF ERRORLEVEL 1 goto eof

:eof
94 changes: 47 additions & 47 deletions windows/cuda92.bat → windows/old/cuda92.bat
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,47 +1,47 @@
@echo off
IF NOT EXIST "setup.py" IF NOT EXIST "pytorch" (
call internal\clone.bat
cd ..
IF ERRORLEVEL 1 goto eof
) ELSE (
call internal\clean.bat
)
call internal\check_deps.bat
IF ERRORLEVEL 1 goto eof
REM Check for optional components
set NO_CUDA=
set CMAKE_GENERATOR=Visual Studio 15 2017 Win64
IF "%NVTOOLSEXT_PATH%"=="" (
echo NVTX ^(Visual Studio Extension ^for CUDA^) ^not installed, disabling CUDA
set NO_CUDA=1
goto optcheck
)
IF "%CUDA_PATH_V9_2%"=="" (
echo CUDA 9.2 not found, disabling it
set NO_CUDA=1
) ELSE (
set TORCH_CUDA_ARCH_LIST=3.5;5.0+PTX;6.0;6.1;7.0
set TORCH_NVCC_FLAGS=-Xfatbin -compress-all
set "CUDA_PATH=%CUDA_PATH_V9_2%"
set "PATH=%CUDA_PATH_V9_2%\bin;%PATH%"
)
:optcheck
call internal\check_opts.bat
IF ERRORLEVEL 1 goto eof
call internal\copy.bat
IF ERRORLEVEL 1 goto eof
call internal\setup.bat
IF ERRORLEVEL 1 goto eof
:eof
@echo off

IF NOT EXIST "setup.py" IF NOT EXIST "pytorch" (
call internal\clone.bat
cd ..
IF ERRORLEVEL 1 goto eof
) ELSE (
call internal\clean.bat
)

call internal\check_deps.bat
IF ERRORLEVEL 1 goto eof

REM Check for optional components

set NO_CUDA=
set CMAKE_GENERATOR=Visual Studio 15 2017 Win64

IF "%NVTOOLSEXT_PATH%"=="" (
echo NVTX ^(Visual Studio Extension ^for CUDA^) ^not installed, disabling CUDA
set NO_CUDA=1
goto optcheck
)

IF "%CUDA_PATH_V9_2%"=="" (
echo CUDA 9.2 not found, disabling it
set NO_CUDA=1
) ELSE (
set TORCH_CUDA_ARCH_LIST=3.5;5.0+PTX;6.0;6.1;7.0
set TORCH_NVCC_FLAGS=-Xfatbin -compress-all

set "CUDA_PATH=%CUDA_PATH_V9_2%"
set "PATH=%CUDA_PATH_V9_2%\bin;%PATH%"
)

:optcheck

call internal\check_opts.bat
IF ERRORLEVEL 1 goto eof

call internal\copy.bat
IF ERRORLEVEL 1 goto eof

call internal\setup.bat
IF ERRORLEVEL 1 goto eof

:eof
17 changes: 17 additions & 0 deletions windows/templates/auth_task.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
jobs:
- job: 'VSTS_Auth_Task'
timeoutInMinutes: 5
cancelTimeoutInMinutes: 5
variables:
- group: 'peterjc-vsts-token'

pool:
vmImage: 'win1803'

steps:
- checkout: self
clean: true

- template: vsts_auth.yml
parameters:
auth: $(vsts_auth)
12 changes: 12 additions & 0 deletions windows/templates/build_conda.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
parameters:
msagent: false

steps:
- script: 'if not exist %PYTORCH_FINAL_PACKAGE_DIR% mkdir %PYTORCH_FINAL_PACKAGE_DIR%'
displayName: 'Create final package directory'

- bash: './conda/build_pytorch.sh $CUDA_VERSION $PYTORCH_BUILD_VERSION $PYTORCH_BUILD_NUMBER'
displayName: Build
env:
${{ if eq(parameters.msagent, True) }}:
MAX_JOBS: 2
Loading