add CUDA_ARCH="8.0;12.0"
Browse files- WindowsWhlBuilder.bat +79 -56
WindowsWhlBuilder.bat
CHANGED
|
@@ -1,56 +1,79 @@
|
|
| 1 |
-
@ECHO off
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
if [%1] == [
|
| 6 |
-
|
| 7 |
-
:
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
if
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
:
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
goto :
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
:
|
| 29 |
-
|
| 30 |
-
:
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
:
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
@ECHO off
|
| 2 |
+
|
| 3 |
+
setlocal
|
| 4 |
+
|
| 5 |
+
if [%1] == [test] shift & goto :test
|
| 6 |
+
if [%1] == [build] shift & goto :build
|
| 7 |
+
if [%1] == [clean] shift & goto :clean
|
| 8 |
+
|
| 9 |
+
:parseArgs
|
| 10 |
+
if "%~1" == "WORKERS" (
|
| 11 |
+
set "NATTEN_N_WORKERS=%~2"
|
| 12 |
+
shift & shift
|
| 13 |
+
goto :parseArgs
|
| 14 |
+
)
|
| 15 |
+
if "%~1" == "CUDA_ARCH" (
|
| 16 |
+
set "NATTEN_CUDA_ARCH=%~2"
|
| 17 |
+
shift & shift
|
| 18 |
+
goto :parseArgs
|
| 19 |
+
)
|
| 20 |
+
if "%~1" == "FORCE_CUDA" (
|
| 21 |
+
set "NATTEN_WITH_CUDA=%~2"
|
| 22 |
+
shift & shift
|
| 23 |
+
goto :parseArgs
|
| 24 |
+
)
|
| 25 |
+
if "%~1" == "VERBOSE" (
|
| 26 |
+
set "NATTEN_VERBOSE=%~2"
|
| 27 |
+
shift & shift
|
| 28 |
+
goto :parseArgs
|
| 29 |
+
)
|
| 30 |
+
goto :buildContinue
|
| 31 |
+
:end
|
| 32 |
+
|
| 33 |
+
:test
|
| 34 |
+
echo "Testing NATTEN"
|
| 35 |
+
pip install -r requirements-dev.txt
|
| 36 |
+
pytest -v -x ./tests
|
| 37 |
+
goto :eof
|
| 38 |
+
:end
|
| 39 |
+
|
| 40 |
+
:build
|
| 41 |
+
goto :buildStart
|
| 42 |
+
:end
|
| 43 |
+
|
| 44 |
+
:buildStart
|
| 45 |
+
goto :parseargs
|
| 46 |
+
:end
|
| 47 |
+
|
| 48 |
+
:buildFinalize
|
| 49 |
+
set NATTEN_N_WORKERS=
|
| 50 |
+
set NATTEN_CUDA_ARCH=
|
| 51 |
+
set NATTEN_VERBOSE=
|
| 52 |
+
set NATTEN_IS_BUILDING_DIST=
|
| 53 |
+
set NATTEN_WITH_CUDA=
|
| 54 |
+
goto :eof
|
| 55 |
+
:end
|
| 56 |
+
|
| 57 |
+
:buildContinue
|
| 58 |
+
echo NATTEN_N_WORKERS: %NATTEN_N_WORKERS%
|
| 59 |
+
echo NATTEN_CUDA_ARCH: %NATTEN_CUDA_ARCH%
|
| 60 |
+
echo NATTEN_WITH_CUDA: %NATTEN_WITH_CUDA%
|
| 61 |
+
echo NATTEN_VERBOSE: %NATTEN_VERBOSE%
|
| 62 |
+
set NATTEN_IS_BUILDING_DIST=1
|
| 63 |
+
rem set NATTEN_CUDA_ARCH=8.0;12.0
|
| 64 |
+
pip install -r requirements.txt
|
| 65 |
+
python setup.py bdist_wheel
|
| 66 |
+
goto :buildFinalize
|
| 67 |
+
:end
|
| 68 |
+
|
| 69 |
+
:clean
|
| 70 |
+
echo Cleaning up
|
| 71 |
+
if exist "%CD%\build" (
|
| 72 |
+
echo "Removing %CD%\build"
|
| 73 |
+
rmdir /s /q "%CD%\build"
|
| 74 |
+
) else (
|
| 75 |
+
echo "%CD%\build does not exist, ignored"
|
| 76 |
+
)
|
| 77 |
+
goto :eof
|
| 78 |
+
:end
|
| 79 |
+
endlocal
|