|
1 | | -@echo off |
2 | | - |
3 | | -IF NOT EXIST "setup.py" IF NOT EXIST "pytorch" ( |
4 | | - call internal\clone.bat |
5 | | - cd .. |
6 | | - IF ERRORLEVEL 1 goto eof |
7 | | -) ELSE ( |
8 | | - call internal\clean.bat |
9 | | -) |
10 | | - |
11 | | -call internal\check_deps.bat |
12 | | -IF ERRORLEVEL 1 goto eof |
13 | | - |
14 | | -REM Check for optional components |
15 | | - |
16 | | -set NO_CUDA= |
17 | | -set CMAKE_GENERATOR=Visual Studio 15 2017 Win64 |
18 | | - |
19 | | -IF "%NVTOOLSEXT_PATH%"=="" ( |
20 | | - echo NVTX ^(Visual Studio Extension ^for CUDA^) ^not installed, disabling CUDA |
21 | | - set NO_CUDA=1 |
22 | | - goto optcheck |
23 | | -) |
24 | | - |
25 | | -IF "%CUDA_PATH_V9_1%"=="" ( |
26 | | - echo CUDA 9.1 not found, disabling it |
27 | | - set NO_CUDA=1 |
28 | | -) ELSE ( |
29 | | - set TORCH_CUDA_ARCH_LIST=3.5;5.0+PTX;6.0;6.1;7.0 |
30 | | - set TORCH_NVCC_FLAGS=-Xfatbin -compress-all |
31 | | - |
32 | | - set "CUDA_PATH=%CUDA_PATH_V9_1%" |
33 | | - set "PATH=%CUDA_PATH_V9_1%\bin;%PATH%" |
34 | | -) |
35 | | - |
36 | | -:optcheck |
37 | | - |
38 | | -call internal\check_opts.bat |
39 | | -IF ERRORLEVEL 1 goto eof |
40 | | - |
41 | | -call internal\copy.bat |
42 | | -IF ERRORLEVEL 1 goto eof |
43 | | - |
44 | | -call internal\setup.bat |
45 | | -IF ERRORLEVEL 1 goto eof |
46 | | - |
47 | | -:eof |
| 1 | +@echo off |
| 2 | + |
| 3 | +IF NOT EXIST "setup.py" IF NOT EXIST "pytorch" ( |
| 4 | + call internal\clone.bat |
| 5 | + cd .. |
| 6 | + IF ERRORLEVEL 1 goto eof |
| 7 | +) ELSE ( |
| 8 | + call internal\clean.bat |
| 9 | +) |
| 10 | + |
| 11 | +call internal\check_deps.bat |
| 12 | +IF ERRORLEVEL 1 goto eof |
| 13 | + |
| 14 | +REM Check for optional components |
| 15 | + |
| 16 | +set NO_CUDA= |
| 17 | +set CMAKE_GENERATOR=Visual Studio 15 2017 Win64 |
| 18 | + |
| 19 | +IF "%NVTOOLSEXT_PATH%"=="" ( |
| 20 | + echo NVTX ^(Visual Studio Extension ^for CUDA^) ^not installed, disabling CUDA |
| 21 | + set NO_CUDA=1 |
| 22 | + goto optcheck |
| 23 | +) |
| 24 | + |
| 25 | +IF "%CUDA_PATH_V9_1%"=="" ( |
| 26 | + echo CUDA 9.1 not found, disabling it |
| 27 | + set NO_CUDA=1 |
| 28 | +) ELSE ( |
| 29 | + set TORCH_CUDA_ARCH_LIST=3.5;5.0+PTX;6.0;6.1;7.0 |
| 30 | + set TORCH_NVCC_FLAGS=-Xfatbin -compress-all |
| 31 | + |
| 32 | + set "CUDA_PATH=%CUDA_PATH_V9_1%" |
| 33 | + set "PATH=%CUDA_PATH_V9_1%\bin;%PATH%" |
| 34 | +) |
| 35 | + |
| 36 | +:optcheck |
| 37 | + |
| 38 | +call internal\check_opts.bat |
| 39 | +IF ERRORLEVEL 1 goto eof |
| 40 | + |
| 41 | +call internal\copy.bat |
| 42 | +IF ERRORLEVEL 1 goto eof |
| 43 | + |
| 44 | +call internal\setup.bat |
| 45 | +IF ERRORLEVEL 1 goto eof |
| 46 | + |
| 47 | +:eof |
0 commit comments