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
Torchaudio
Commits
2e4dc8c4
Unverified
Commit
2e4dc8c4
authored
Aug 08, 2019
by
Edward Z. Yang
Committed by
GitHub
Aug 08, 2019
Browse files
Updates from vision (#222)
Signed-off-by:
Edward Z. Yang
<
ezyang@fb.com
>
parent
1e1a7a4a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
packaging/pkg_helpers.bash
packaging/pkg_helpers.bash
+8
-4
No files found.
packaging/pkg_helpers.bash
View file @
2e4dc8c4
...
...
@@ -183,7 +183,7 @@ setup_conda_pytorch_constraint() {
else
export
CONDA_CHANNEL_FLAGS
=
"-c pytorch -c pytorch-nightly"
fi
if
[[
"
$CU
DA
_VERSION
"
==
cpu
]]
;
then
if
[[
"
$CU_VERSION
"
==
cpu
]]
;
then
export
CONDA_PYTORCH_BUILD_CONSTRAINT
=
"- pytorch==
$PYTORCH_VERSION
${
PYTORCH_VERSION_SUFFIX
}
"
export
CONDA_PYTORCH_CONSTRAINT
=
"- pytorch==
$PYTORCH_VERSION
"
else
...
...
@@ -198,17 +198,21 @@ setup_conda_cudatoolkit_constraint() {
if
[[
"
$(
uname
)
"
==
Darwin
]]
;
then
export
CONDA_CUDATOOLKIT_CONSTRAINT
=
""
else
case
"
$CU
DA
_VERSION
"
in
10
.
0
)
case
"
$CU_VERSION
"
in
cu
100
)
export
CONDA_CUDATOOLKIT_CONSTRAINT
=
"- cudatoolkit >=10.0,<10.1 # [not osx]"
;;
9
.
2
)
cu
92
)
export
CONDA_CUDATOOLKIT_CONSTRAINT
=
"- cudatoolkit >=9.2,<9.3 # [not osx]"
;;
cpu
)
export
CONDA_CUDATOOLKIT_CONSTRAINT
=
""
export
CONDA_CPUONLY_FEATURE
=
"- cpuonly"
;;
*
)
echo
"Unrecognized CU_VERSION=
$CU_VERSION
"
exit
1
;;
esac
fi
}
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