Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
vision
Commits
7ae1b8c9
Unverified
Commit
7ae1b8c9
authored
Oct 11, 2019
by
peterjc123
Committed by
GitHub
Oct 11, 2019
Browse files
Windows changes for 0.4.1 (#1447)
* Changes for 0.4.1 * Fix upload scripts
parent
79daca10
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
90 additions
and
8 deletions
+90
-8
packaging/torchvision/bld.bat
packaging/torchvision/bld.bat
+1
-0
packaging/windows/cuda101.bat
packaging/windows/cuda101.bat
+59
-0
packaging/windows/internal/cuda_install.bat
packaging/windows/internal/cuda_install.bat
+18
-0
packaging/windows/internal/nightly_defaults.bat
packaging/windows/internal/nightly_defaults.bat
+1
-1
packaging/windows/internal/publish.bat
packaging/windows/internal/publish.bat
+5
-1
packaging/windows/old/cuda100.bat
packaging/windows/old/cuda100.bat
+0
-0
packaging/windows/templates/build_task.yml
packaging/windows/templates/build_task.yml
+6
-6
No files found.
packaging/torchvision/bld.bat
View file @
7ae1b8c9
...
@@ -18,6 +18,7 @@ set NVCC_FLAGS=-D__CUDA_NO_HALF_OPERATORS__ --expt-relaxed-constexpr
...
@@ -18,6 +18,7 @@ set NVCC_FLAGS=-D__CUDA_NO_HALF_OPERATORS__ --expt-relaxed-constexpr
if
"
%desired_cuda%
"
==
"9.0"
set
NVCC_FLAGS
=
%NVCC_FLAGS%
-gencode
=
arch
=
compute_35
,
code
=
sm_35
-gencode
=
arch
=
compute_50
,
code
=
sm_50
-gencode
=
arch
=
compute_60
,
code
=
sm_60
-gencode
=
arch
=
compute_70
,
code
=
sm_70
-gencode
=
arch
=
compute_50
,
code
=
compute_50
if
"
%desired_cuda%
"
==
"9.0"
set
NVCC_FLAGS
=
%NVCC_FLAGS%
-gencode
=
arch
=
compute_35
,
code
=
sm_35
-gencode
=
arch
=
compute_50
,
code
=
sm_50
-gencode
=
arch
=
compute_60
,
code
=
sm_60
-gencode
=
arch
=
compute_70
,
code
=
sm_70
-gencode
=
arch
=
compute_50
,
code
=
compute_50
if
"
%desired_cuda%
"
==
"9.2"
set
NVCC_FLAGS
=
%NVCC_FLAGS%
-gencode
=
arch
=
compute_35
,
code
=
sm_35
-gencode
=
arch
=
compute_50
,
code
=
sm_50
-gencode
=
arch
=
compute_60
,
code
=
sm_60
-gencode
=
arch
=
compute_61
,
code
=
sm_61
-gencode
=
arch
=
compute_70
,
code
=
sm_70
-gencode
=
arch
=
compute_50
,
code
=
compute_50
if
"
%desired_cuda%
"
==
"9.2"
set
NVCC_FLAGS
=
%NVCC_FLAGS%
-gencode
=
arch
=
compute_35
,
code
=
sm_35
-gencode
=
arch
=
compute_50
,
code
=
sm_50
-gencode
=
arch
=
compute_60
,
code
=
sm_60
-gencode
=
arch
=
compute_61
,
code
=
sm_61
-gencode
=
arch
=
compute_70
,
code
=
sm_70
-gencode
=
arch
=
compute_50
,
code
=
compute_50
if
"
%desired_cuda%
"
==
"10.0"
set
NVCC_FLAGS
=
%NVCC_FLAGS%
-gencode
=
arch
=
compute_35
,
code
=
sm_35
-gencode
=
arch
=
compute_50
,
code
=
sm_50
-gencode
=
arch
=
compute_60
,
code
=
sm_60
-gencode
=
arch
=
compute_70
,
code
=
sm_70
-gencode
=
arch
=
compute_75
,
code
=
sm_75
-gencode
=
arch
=
compute_50
,
code
=
compute_50
if
"
%desired_cuda%
"
==
"10.0"
set
NVCC_FLAGS
=
%NVCC_FLAGS%
-gencode
=
arch
=
compute_35
,
code
=
sm_35
-gencode
=
arch
=
compute_50
,
code
=
sm_50
-gencode
=
arch
=
compute_60
,
code
=
sm_60
-gencode
=
arch
=
compute_70
,
code
=
sm_70
-gencode
=
arch
=
compute_75
,
code
=
sm_75
-gencode
=
arch
=
compute_50
,
code
=
compute_50
if
"
%desired_cuda%
"
==
"10.1"
set
NVCC_FLAGS
=
%NVCC_FLAGS%
-gencode
=
arch
=
compute_35
,
code
=
sm_35
-gencode
=
arch
=
compute_50
,
code
=
sm_50
-gencode
=
arch
=
compute_60
,
code
=
sm_60
-gencode
=
arch
=
compute_70
,
code
=
sm_70
-gencode
=
arch
=
compute_75
,
code
=
sm_75
-gencode
=
arch
=
compute_50
,
code
=
compute_50
:cuda
_flags_end
:cuda
_flags_end
...
...
packaging/windows/cuda101.bat
0 → 100644
View file @
7ae1b8c9
@echo
off
IF
NOT
"
%BUILD_VISION%
"
==
""
(
set
MODULE_NAME
=
vision
)
ELSE
(
set
MODULE_NAME
=
pytorch
)
IF
NOT
EXIST
"setup.py"
IF
NOT
EXIST
"
%MODULE_NAME%
"
(
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
^f
or
CUDA
^)
^n
ot
installed
,
failing
exit
/b
1
goto
optcheck
)
IF
"
%CUDA
_PATH_V10_1
%
"
==
""
(
echo
CUDA
10
.1
not
found
,
failing
exit
/b
1
)
ELSE
(
IF
"
%BUILD_VISION%
"
==
""
(
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
)
ELSE
(
set
NVCC_FLAGS
=
-D
__CUDA_NO_HALF_OPERATORS__
--expt-relaxed-constexpr -gencode
=
arch
=
compute_35
,
code
=
sm_35
-gencode
=
arch
=
compute_50
,
code
=
sm_50
-gencode
=
arch
=
compute_60
,
code
=
sm_60
-gencode
=
arch
=
compute_70
,
code
=
sm_70
-gencode
=
arch
=
compute_75
,
code
=
sm_75
-gencode
=
arch
=
compute_50
,
code
=
compute_50
)
set
"CUDA_PATH=
%CUDA
_PATH_V10_1
%
"
set
"PATH=
%CUDA
_PATH_V10_1
%
\bin;
%PATH%
"
)
:optcheck
IF
"
%BUILD_VISION%
"
==
""
(
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
packaging/windows/internal/cuda_install.bat
View file @
7ae1b8c9
...
@@ -16,6 +16,7 @@ set CUDA_VERSION_STR=%CUDA_VER_MAJOR%.%CUDA_VER_MINOR%
...
@@ -16,6 +16,7 @@ set CUDA_VERSION_STR=%CUDA_VER_MAJOR%.%CUDA_VER_MINOR%
if
%CUDA_VER%
EQU
92
goto
cuda92
if
%CUDA_VER%
EQU
92
goto
cuda92
if
%CUDA_VER%
EQU
100
goto
cuda100
if
%CUDA_VER%
EQU
100
goto
cuda100
if
%CUDA_VER%
EQU
101
goto
cuda101
echo
CUDA
%CUDA_VERSION_STR%
is
not
supported
echo
CUDA
%CUDA_VERSION_STR%
is
not
supported
exit
/b
1
exit
/b
1
...
@@ -53,6 +54,23 @@ if not exist "%SRC_DIR%\temp_build\cudnn-10.0-windows10-x64-v7.4.1.5.zip" (
...
@@ -53,6 +54,23 @@ if not exist "%SRC_DIR%\temp_build\cudnn-10.0-windows10-x64-v7.4.1.5.zip" (
goto
cuda_common
goto
cuda_common
:cuda
101
if
not
exist
"
%SRC_DIR%
\temp_build\cuda_10.1.243_426.00_win10.exe"
(
curl
-k -L
http
://developer.download.nvidia.com/compute/cuda/10.1/Prod/local_installers/cuda_10.1.243_426.00_win10.exe
--output
"
%SRC_DIR%
\temp_build\cuda_10.1.243_426.00_win10.exe"
if
errorlevel
1
exit
/b
1
set
"CUDA_SETUP_FILE=
%SRC_DIR%
\temp_build\cuda_10.1.243_426.00_win10.exe"
set
"ARGS=nvcc_10.1 cuobjdump_10.1 nvprune_10.1 cupti_10.1 cublas_10.1 cublas_dev_10.1 cudart_10.1 cufft_10.1 cufft_dev_10.1 curand_10.1 curand_dev_10.1 cusolver_10.1 cusolver_dev_10.1 cusparse_10.1 cusparse_dev_10.1 nvgraph_10.1 nvgraph_dev_10.1 npp_10.1 npp_dev_10.1 nvrtc_10.1 nvrtc_dev_10.1 nvml_dev_10.1"
)
if
not
exist
"
%SRC_DIR%
\temp_build\cudnn-10.1-windows10-x64-v7.6.4.38.zip"
(
curl
-k -L
https
://www.dropbox.com/s/i3aur3wh9lykmgx/cudnn
-
10
.1
-windows
10
-x
64
-v
7
.6.4.38.zip
?
dl
=
1
--output
"
%SRC_DIR%
\temp_build\cudnn-10.1-windows10-x64-v7.6.4.38.zip"
if
errorlevel
1
exit
/b
1
set
"CUDNN_SETUP_FILE=
%SRC_DIR%
\temp_build\cudnn-10.1-windows10-x64-v7.6.4.38.zip"
)
goto
cuda_common
:cuda
_common
:cuda
_common
if
not
exist
"
%SRC_DIR%
\temp_build\NvToolsExt.7z"
(
if
not
exist
"
%SRC_DIR%
\temp_build\NvToolsExt.7z"
(
...
...
packaging/windows/internal/nightly_defaults.bat
View file @
7ae1b8c9
...
@@ -147,7 +147,7 @@ if "%CUDA_VERSION%" == "cpu" (
...
@@ -147,7 +147,7 @@ if "%CUDA_VERSION%" == "cpu" (
if
"
%TORCHVISION_BUILD_VERSION%
"
==
""
set
TORCHVISION_BUILD_VERSION
=
0
.5.0.dev
%NIGHTLIES_DATE_COMPACT%
if
"
%TORCHVISION_BUILD_VERSION%
"
==
""
set
TORCHVISION_BUILD_VERSION
=
0
.5.0.dev
%NIGHTLIES_DATE_COMPACT%
if
"
%
~1"
==
"Wheels"
(
if
"
%
~1"
==
"Wheels"
(
if
not
"
%CUDA_VERSION%
"
==
"10
0
"
(
if
not
"
%CUDA_VERSION%
"
==
"10
1
"
(
set
TORCHVISION_BUILD_VERSION
=
%TORCHVISION_BUILD_VERSION%
+
%_DESIRED_CUDA%
set
TORCHVISION_BUILD_VERSION
=
%TORCHVISION_BUILD_VERSION%
+
%_DESIRED_CUDA%
)
)
)
)
...
...
packaging/windows/internal/publish.bat
View file @
7ae1b8c9
...
@@ -15,7 +15,11 @@ if "%PACKAGEFULLNAME%" == "Conda" (
...
@@ -15,7 +15,11 @@ if "%PACKAGEFULLNAME%" == "Conda" (
set
PACKAGE
=
wheels
set
PACKAGE
=
wheels
)
)
set
PUBLISH_BRANCH
=
%PACKAGE%
_
%DESIRED_PYTHON%%
PACKAGE_SUFFIX
%
if
not
defined
PACKAGE_SUFFIX
(
set
PUBLISH_BRANCH
=
vision_
%PACKAGE%
_
%DESIRED_PYTHON%
)
else
(
set
PUBLISH_BRANCH
=
vision_
%PACKAGE%
_
%DESIRED_PYTHON%%
PACKAGE_SUFFIX
%
)
git
clone
%ARTIFACT_REPO_URL%
-b
%PUBLISH_BRANCH%
--single-branch
>
nul
2
>&
1
git
clone
%ARTIFACT_REPO_URL%
-b
%PUBLISH_BRANCH%
--single-branch
>
nul
2
>&
1
...
...
packaging/windows/cuda100.bat
→
packaging/windows/
old/
cuda100.bat
View file @
7ae1b8c9
File moved
packaging/windows/templates/build_task.yml
View file @
7ae1b8c9
...
@@ -65,15 +65,15 @@ jobs:
...
@@ -65,15 +65,15 @@ jobs:
PY3.7_92
:
PY3.7_92
:
DESIRED_PYTHON
:
3.7
DESIRED_PYTHON
:
3.7
CUDA_VERSION
:
92
CUDA_VERSION
:
92
PY3.5_10
0
:
PY3.5_10
1
:
DESIRED_PYTHON
:
3.5
DESIRED_PYTHON
:
3.5
CUDA_VERSION
:
10
0
CUDA_VERSION
:
10
1
PY3.6_10
0
:
PY3.6_10
1
:
DESIRED_PYTHON
:
3.6
DESIRED_PYTHON
:
3.6
CUDA_VERSION
:
10
0
CUDA_VERSION
:
10
1
PY3.7_10
0
:
PY3.7_10
1
:
DESIRED_PYTHON
:
3.7
DESIRED_PYTHON
:
3.7
CUDA_VERSION
:
10
0
CUDA_VERSION
:
10
1
pool
:
pool
:
${{ if eq(parameters.msagent, 'true') }}
:
${{ if eq(parameters.msagent, 'true') }}
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment