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
e3443b1c
"tests/nn/git@developer.sourcefind.cn:OpenDAS/fairscale.git" did not exist on "99edeff12714f8c609b65d7957081870dda42106"
Unverified
Commit
e3443b1c
authored
Oct 12, 2021
by
Yi Zhang
Committed by
GitHub
Oct 12, 2021
Browse files
USE_CUDA in windows and reduce one vcvarsall (#1854)
parent
0cc28748
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
7 deletions
+1
-7
packaging/pkg_helpers.bash
packaging/pkg_helpers.bash
+1
-5
packaging/vs2019/install_activate.bat
packaging/vs2019/install_activate.bat
+0
-2
No files found.
packaging/pkg_helpers.bash
View file @
e3443b1c
...
@@ -115,11 +115,7 @@ setup_cuda() {
...
@@ -115,11 +115,7 @@ setup_cuda() {
if
[[
-n
"
$CUDA_HOME
"
]]
;
then
if
[[
-n
"
$CUDA_HOME
"
]]
;
then
# Adds nvcc binary to the search path so that CMake's `find_package(CUDA)` will pick the right one
# Adds nvcc binary to the search path so that CMake's `find_package(CUDA)` will pick the right one
export
PATH
=
"
$CUDA_HOME
/bin:
$PATH
"
export
PATH
=
"
$CUDA_HOME
/bin:
$PATH
"
# TODO: Fix Windows CUDA builds
export
USE_CUDA
=
1
if
[[
"
$OSTYPE
"
!=
"msys"
]]
;
then
# Force GPU builds on CPU runner, when `torch.cuda.is_available()` returns false
export
USE_CUDA
=
1
fi
fi
fi
}
}
...
...
packaging/vs2019/install_activate.bat
View file @
e3443b1c
...
@@ -12,12 +12,10 @@ IF "%cross_compiler_target_platform%" == "win-64" (
...
@@ -12,12 +12,10 @@ IF "%cross_compiler_target_platform%" == "win-64" (
echo
CALL
"VC\Auxiliary\Build\vcvarsall.bat"
x64
>>
"
%PREFIX%
\etc\conda\activate.d\vs
%YEAR%
_compiler_vars.bat"
echo
CALL
"VC\Auxiliary\Build\vcvarsall.bat"
x64
>>
"
%PREFIX%
\etc\conda\activate.d\vs
%YEAR%
_compiler_vars.bat"
echo
popd
>>
"
%PREFIX%
\etc\conda\activate.d\vs
%YEAR%
_compiler_vars.bat"
echo
popd
>>
"
%PREFIX%
\etc\conda\activate.d\vs
%YEAR%
_compiler_vars.bat"
echo
pushd
"
%%VSINSTALLDIR%%
"
>>
"
%PREFIX%
\etc\conda\activate.d\vs
%YEAR%
_compiler_vars.bat"
echo
pushd
"
%%VSINSTALLDIR%%
"
>>
"
%PREFIX%
\etc\conda\activate.d\vs
%YEAR%
_compiler_vars.bat"
echo
CALL
"VC\Auxiliary\Build\vcvarsall.bat"
x86_amd64
>>
"
%PREFIX%
\etc\conda\activate.d\vs
%YEAR%
_compiler_vars.bat"
)
ELSE
(
)
ELSE
(
echo
CALL
"VC\Auxiliary\Build\vcvarsall.bat"
x64
%VSDEVCMD_ARGS%
>>
"
%PREFIX%
\etc\conda\activate.d\vs
%YEAR%
_compiler_vars.bat"
echo
CALL
"VC\Auxiliary\Build\vcvarsall.bat"
x64
%VSDEVCMD_ARGS%
>>
"
%PREFIX%
\etc\conda\activate.d\vs
%YEAR%
_compiler_vars.bat"
echo
popd
>>
"
%PREFIX%
\etc\conda\activate.d\vs
%YEAR%
_compiler_vars.bat"
echo
popd
>>
"
%PREFIX%
\etc\conda\activate.d\vs
%YEAR%
_compiler_vars.bat"
echo
pushd
"
%%VSINSTALLDIR%%
"
>>
"
%PREFIX%
\etc\conda\activate.d\vs
%YEAR%
_compiler_vars.bat"
echo
pushd
"
%%VSINSTALLDIR%%
"
>>
"
%PREFIX%
\etc\conda\activate.d\vs
%YEAR%
_compiler_vars.bat"
echo
CALL
"VC\Auxiliary\Build\vcvarsall.bat"
x86_amd64
%VSDEVCMD_ARGS%
>>
"
%PREFIX%
\etc\conda\activate.d\vs
%YEAR%
_compiler_vars.bat"
)
)
echo
popd
>>
"
%PREFIX%
\etc\conda\activate.d\vs
%YEAR%
_compiler_vars.bat"
echo
popd
>>
"
%PREFIX%
\etc\conda\activate.d\vs
%YEAR%
_compiler_vars.bat"
)
else
(
)
else
(
...
...
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