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
AutoAWQ
Commits
98ae978a
Commit
98ae978a
authored
Aug 27, 2023
by
Casper
Browse files
Fix capability flags
parent
7fee854f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
setup.py
setup.py
+3
-1
No files found.
setup.py
View file @
98ae978a
...
@@ -40,7 +40,9 @@ if build_cuda_extension:
...
@@ -40,7 +40,9 @@ if build_cuda_extension:
if
torch_is_prebuilt
:
if
torch_is_prebuilt
:
compute_capabilities
.
update
({
87
})
compute_capabilities
.
update
({
87
})
capability_flags
=
[
"-gencode"
,
f
"arch=compute_
{
cap
}
,code=sm_
{
cap
}
"
for
cap
in
compute_capabilities
]
capability_flags
=
[]
for
cap
in
compute_capabilities
:
capability_flags
+=
[
"-gencode"
,
f
"arch=compute_
{
cap
}
,code=sm_
{
cap
}
"
]
# num threads
# num threads
n_threads
=
str
(
min
(
os
.
cpu_count
(),
8
))
n_threads
=
str
(
min
(
os
.
cpu_count
(),
8
))
...
...
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