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
76314a4b
Unverified
Commit
76314a4b
authored
Jun 28, 2021
by
Caroline Chen
Committed by
GitHub
Jun 28, 2021
Browse files
Expose USE_CUDA in build (#1609)
parent
4b61ae3f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
build_tools/setup_helpers/extension.py
build_tools/setup_helpers/extension.py
+1
-1
No files found.
build_tools/setup_helpers/extension.py
View file @
76314a4b
...
...
@@ -38,7 +38,7 @@ _BUILD_SOX = False if platform.system() == 'Windows' else _get_build("BUILD_SOX"
_BUILD_KALDI
=
False
if
platform
.
system
()
==
'Windows'
else
_get_build
(
"BUILD_KALDI"
,
True
)
_BUILD_TRANSDUCER
=
_get_build
(
"BUILD_TRANSDUCER"
)
_USE_ROCM
=
_get_build
(
"USE_ROCM"
)
_USE_CUDA
=
torch
.
cuda
.
is_available
()
_USE_CUDA
=
_get_build
(
"USE_CUDA"
,
torch
.
cuda
.
is_available
()
)
def
get_ext_modules
():
...
...
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