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
apex
Commits
32ab028c
Commit
32ab028c
authored
Nov 11, 2022
by
flyingdown
Browse files
add --gpu-max-threads-per-block=1024 options
parent
b10621d1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
setup.py
setup.py
+3
-0
No files found.
setup.py
View file @
32ab028c
...
...
@@ -169,6 +169,9 @@ if (TORCH_MAJOR > 1) or (TORCH_MAJOR == 1 and TORCH_MINOR > 4):
version_ge_1_5
=
[
"-DVERSION_GE_1_5"
]
version_dependent_macros
=
version_ge_1_1
+
version_ge_1_3
+
version_ge_1_5
if
IS_ROCM_PYTORCH
:
version_dependent_macros
+=
[
'--gpu-max-threads-per-block=1024'
]
if
"--distributed_adam"
in
sys
.
argv
or
"--cuda_ext"
in
sys
.
argv
:
if
"--distributed_adam"
in
sys
.
argv
:
sys
.
argv
.
remove
(
"--distributed_adam"
)
...
...
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