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
03701343
Unverified
Commit
03701343
authored
May 04, 2023
by
Andrey Talman
Committed by
GitHub
May 04, 2023
Browse files
Add missing cuda 12.1 code, cleanup cu116 use cases (#7558)
parent
14553fb9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
19 deletions
+8
-19
packaging/pkg_helpers.bash
packaging/pkg_helpers.bash
+6
-6
packaging/windows/internal/cuda_install.bat
packaging/windows/internal/cuda_install.bat
+0
-1
packaging/windows/internal/vc_install_helper.sh
packaging/windows/internal/vc_install_helper.sh
+2
-12
No files found.
packaging/pkg_helpers.bash
View file @
03701343
...
...
@@ -260,15 +260,15 @@ setup_conda_cudatoolkit_constraint() {
export
CONDA_BUILD_VARIANT
=
"cpu"
else
case
"
$CU_VERSION
"
in
cu121
)
export
CONDA_CUDATOOLKIT_CONSTRAINT
=
"- pytorch-cuda=12.1 # [not osx]"
;;
cu118
)
export
CONDA_CUDATOOLKIT_CONSTRAINT
=
"- pytorch-cuda=11.8 # [not osx]"
;;
cu117
)
export
CONDA_CUDATOOLKIT_CONSTRAINT
=
"- pytorch-cuda=11.7 # [not osx]"
;;
cu116
)
export
CONDA_CUDATOOLKIT_CONSTRAINT
=
"- pytorch-cuda=11.6 # [not osx]"
;;
cpu
)
export
CONDA_CUDATOOLKIT_CONSTRAINT
=
""
export
CONDA_BUILD_VARIANT
=
"cpu"
...
...
@@ -289,15 +289,15 @@ setup_conda_cudatoolkit_plain_constraint() {
export
CMAKE_USE_CUDA
=
0
else
case
"
$CU_VERSION
"
in
cu121
)
export
CONDA_CUDATOOLKIT_CONSTRAINT
=
"pytorch-cuda=12.1"
;;
cu118
)
export
CONDA_CUDATOOLKIT_CONSTRAINT
=
"pytorch-cuda=11.8"
;;
cu117
)
export
CONDA_CUDATOOLKIT_CONSTRAINT
=
"pytorch-cuda=11.7"
;;
cu116
)
export
CONDA_CUDATOOLKIT_CONSTRAINT
=
"pytorch-cuda=11.6"
;;
cpu
)
export
CONDA_CUDATOOLKIT_CONSTRAINT
=
""
export
CONDA_BUILD_VARIANT
=
"cpu"
...
...
packaging/windows/internal/cuda_install.bat
View file @
03701343
...
...
@@ -23,7 +23,6 @@ set CUDA_VERSION_STR=%CUDA_VER_MAJOR%.%CUDA_VER_MINOR%
set
CUDNN_FOLDER
=
"cuda"
set
CUDNN_LIB_FOLDER
=
"lib\x64"
if
%CUDA_VER%
EQU
116
goto
cuda116
if
%CUDA_VER%
EQU
117
goto
cuda117
if
%CUDA_VER%
EQU
118
goto
cuda118
if
%CUDA_VER%
EQU
121
goto
cuda121
...
...
packaging/windows/internal/vc_install_helper.sh
View file @
03701343
...
...
@@ -2,15 +2,5 @@
set
-ex
if
[[
"
$CU_VERSION
"
==
"cu92"
]]
;
then
export
VC_YEAR
=
2017
export
VSDEVCMD_ARGS
=
"-vcvars_ver=14.13"
powershell packaging/windows/internal/vs2017_install.ps1
elif
[[
"
$CU_VERSION
"
==
"cu100"
]]
;
then
export
VC_YEAR
=
2017
export
VSDEVCMD_ARGS
=
""
powershell packaging/windows/internal/vs2017_install.ps1
else
export
VC_YEAR
=
2019
export
VSDEVCMD_ARGS
=
""
fi
export
VC_YEAR
=
2019
export
VSDEVCMD_ARGS
=
""
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