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
d0d7058a
".github/git@developer.sourcefind.cn:OpenDAS/torchaudio.git" did not exist on "caf3ac0749eaca441f3f2d517e0dd56a78c8840c"
Unverified
Commit
d0d7058a
authored
Jun 20, 2022
by
Andrey Talman
Committed by
GitHub
Jun 20, 2022
Browse files
Replacing cudatoolkit by cuda for 11.6 (#5996)
parent
12bb8873
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
9 deletions
+15
-9
.circleci/unittest/linux/scripts/install.sh
.circleci/unittest/linux/scripts/install.sh
+6
-1
.circleci/unittest/windows/scripts/install.sh
.circleci/unittest/windows/scripts/install.sh
+7
-1
packaging/build_conda.sh
packaging/build_conda.sh
+0
-5
packaging/pkg_helpers.bash
packaging/pkg_helpers.bash
+2
-2
No files found.
.circleci/unittest/linux/scripts/install.sh
View file @
d0d7058a
...
@@ -21,7 +21,12 @@ else
...
@@ -21,7 +21,12 @@ else
fi
fi
echo
"Using CUDA
$CUDA_VERSION
as determined by CU_VERSION"
echo
"Using CUDA
$CUDA_VERSION
as determined by CU_VERSION"
version
=
"
$(
python
-c
"print('.'.join(
\"
${
CUDA_VERSION
}
\"
.split('.')[:2]))"
)
"
version
=
"
$(
python
-c
"print('.'.join(
\"
${
CUDA_VERSION
}
\"
.split('.')[:2]))"
)
"
cudatoolkit
=
"nvidia::cudatoolkit=
${
version
}
"
cuda_toolkit_pckg
=
"cudatoolkit"
if
[[
"
$CU_VERSION
"
==
cu116
]]
;
then
cuda_toolkit_pckg
=
"cuda"
fi
cudatoolkit
=
"nvidia::
${
cuda_toolkit_pckg
}
=
${
version
}
"
fi
fi
case
"
$(
uname
-s
)
"
in
case
"
$(
uname
-s
)
"
in
...
...
.circleci/unittest/windows/scripts/install.sh
View file @
d0d7058a
...
@@ -22,9 +22,15 @@ else
...
@@ -22,9 +22,15 @@ else
elif
[[
${#
CU_VERSION
}
-eq
5
]]
;
then
elif
[[
${#
CU_VERSION
}
-eq
5
]]
;
then
CUDA_VERSION
=
"
${
CU_VERSION
:2:2
}
.
${
CU_VERSION
:4:1
}
"
CUDA_VERSION
=
"
${
CU_VERSION
:2:2
}
.
${
CU_VERSION
:4:1
}
"
fi
fi
cuda_toolkit_pckg
=
"cudatoolkit"
if
[[
"
$CU_VERSION
"
==
cu116
]]
;
then
cuda_toolkit_pckg
=
"cuda"
fi
echo
"Using CUDA
$CUDA_VERSION
as determined by CU_VERSION"
echo
"Using CUDA
$CUDA_VERSION
as determined by CU_VERSION"
version
=
"
$(
python
-c
"print('.'.join(
\"
${
CUDA_VERSION
}
\"
.split('.')[:2]))"
)
"
version
=
"
$(
python
-c
"print('.'.join(
\"
${
CUDA_VERSION
}
\"
.split('.')[:2]))"
)
"
cudatoolkit
=
"cudatoolkit=
${
version
}
"
cudatoolkit
=
"
${
cuda
_
toolkit
_pckg
}
=
${
version
}
"
fi
fi
printf
"Installing PyTorch with %s
\n
"
"
${
cudatoolkit
}
"
printf
"Installing PyTorch with %s
\n
"
"
${
cudatoolkit
}
"
...
...
packaging/build_conda.sh
View file @
d0d7058a
...
@@ -11,11 +11,6 @@ setup_conda_pytorch_constraint
...
@@ -11,11 +11,6 @@ setup_conda_pytorch_constraint
setup_conda_cudatoolkit_constraint
setup_conda_cudatoolkit_constraint
setup_visual_studio_constraint
setup_visual_studio_constraint
setup_junit_results_folder
setup_junit_results_folder
# nvidia channel included for cudatoolkit >= 11 however for 11.5 and 11.6 we use conda-forge
export
CUDATOOLKIT_CHANNEL
=
"nvidia"
export
CUDATOOLKIT_CHANNEL
=
"nvidia"
if
[[
"
$CU_VERSION
"
==
cu116
]]
;
then
export
CUDATOOLKIT_CHANNEL
=
"conda-forge"
fi
conda build
-c
$CUDATOOLKIT_CHANNEL
-c
defaults
$CONDA_CHANNEL_FLAGS
--no-anaconda-upload
--python
"
$PYTHON_VERSION
"
packaging/torchvision
conda build
-c
$CUDATOOLKIT_CHANNEL
-c
defaults
$CONDA_CHANNEL_FLAGS
--no-anaconda-upload
--python
"
$PYTHON_VERSION
"
packaging/torchvision
packaging/pkg_helpers.bash
View file @
d0d7058a
...
@@ -257,7 +257,7 @@ setup_conda_cudatoolkit_constraint() {
...
@@ -257,7 +257,7 @@ setup_conda_cudatoolkit_constraint() {
else
else
case
"
$CU_VERSION
"
in
case
"
$CU_VERSION
"
in
cu116
)
cu116
)
export
CONDA_CUDATOOLKIT_CONSTRAINT
=
"- cuda
toolkit
>=11.6,<11.7 # [not osx]"
export
CONDA_CUDATOOLKIT_CONSTRAINT
=
"- cuda >=11.6,<11.7 # [not osx]"
;;
;;
cu113
)
cu113
)
export
CONDA_CUDATOOLKIT_CONSTRAINT
=
"- cudatoolkit >=11.3,<11.4 # [not osx]"
export
CONDA_CUDATOOLKIT_CONSTRAINT
=
"- cudatoolkit >=11.3,<11.4 # [not osx]"
...
@@ -286,7 +286,7 @@ setup_conda_cudatoolkit_plain_constraint() {
...
@@ -286,7 +286,7 @@ setup_conda_cudatoolkit_plain_constraint() {
else
else
case
"
$CU_VERSION
"
in
case
"
$CU_VERSION
"
in
cu116
)
cu116
)
export
CONDA_CUDATOOLKIT_CONSTRAINT
=
"cuda
toolkit
=11.6"
export
CONDA_CUDATOOLKIT_CONSTRAINT
=
"cuda=11.6"
;;
;;
cu113
)
cu113
)
export
CONDA_CUDATOOLKIT_CONSTRAINT
=
"cudatoolkit=11.3"
export
CONDA_CUDATOOLKIT_CONSTRAINT
=
"cudatoolkit=11.3"
...
...
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