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
OpenFold
Commits
f3814c9c
Commit
f3814c9c
authored
Aug 04, 2022
by
Gustaf Ahdritz
Browse files
Add more compute capabilities to default list
parent
d45bd7cc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
setup.py
setup.py
+9
-2
No files found.
setup.py
View file @
f3814c9c
...
@@ -46,7 +46,12 @@ def get_cuda_bare_metal_version(cuda_dir):
...
@@ -46,7 +46,12 @@ def get_cuda_bare_metal_version(cuda_dir):
return
raw_output
,
bare_metal_major
,
bare_metal_minor
return
raw_output
,
bare_metal_major
,
bare_metal_minor
compute_capabilities
=
set
()
compute_capabilities
=
set
([
(
3
,
7
),
# K80, e.g.
(
5
,
2
),
# Titan X
(
6
,
1
),
# GeForce 1000-series
])
compute_capabilities
.
add
((
7
,
0
))
compute_capabilities
.
add
((
7
,
0
))
_
,
bare_metal_major
,
_
=
get_cuda_bare_metal_version
(
CUDA_HOME
)
_
,
bare_metal_major
,
_
=
get_cuda_bare_metal_version
(
CUDA_HOME
)
if
int
(
bare_metal_major
)
>=
11
:
if
int
(
bare_metal_major
)
>=
11
:
...
@@ -54,7 +59,9 @@ if int(bare_metal_major) >= 11:
...
@@ -54,7 +59,9 @@ if int(bare_metal_major) >= 11:
compute_capability
,
_
=
get_nvidia_cc
()
compute_capability
,
_
=
get_nvidia_cc
()
if
compute_capability
is
not
None
:
if
compute_capability
is
not
None
:
compute_capabilities
.
add
(
compute_capability
)
compute_capabilities
=
set
([
compute_capability
])
print
(
compute_capabilities
)
cc_flag
=
[]
cc_flag
=
[]
for
major
,
minor
in
list
(
compute_capabilities
):
for
major
,
minor
in
list
(
compute_capabilities
):
...
...
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