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
247349f1
Unverified
Commit
247349f1
authored
Jul 05, 2018
by
mcarilli
Committed by
GitHub
Jul 05, 2018
Browse files
Update setup.py for #23
parent
d74fda26
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
setup.py
setup.py
+3
-2
No files found.
setup.py
View file @
247349f1
...
...
@@ -82,7 +82,7 @@ if TORCH_MAJOR == 0 and TORCH_MINOR == 4:
def
get_cuda_version
():
NVCC
=
find
(
CUDA_HOME
+
os
.
sep
+
"bin"
,
re
.
compile
(
'nvcc$'
).
search
)
re
.
compile
(
'nvcc$
|nvcc.exe
'
).
search
)
print
(
"Found NVCC = "
,
NVCC
)
# Parse output of nvcc to get cuda major version
...
...
@@ -104,7 +104,8 @@ if CUDA_HOME is not None:
CUDA_MAJOR
=
get_cuda_version
()
gencodes
=
[
'-gencode'
,
'arch=compute_52,code=sm_52'
,
gencodes
=
[
'-gencode'
,
'arch=compute_50,code=sm_50'
,
'-gencode'
,
'arch=compute_52,code=sm_52'
,
'-gencode'
,
'arch=compute_60,code=sm_60'
,
'-gencode'
,
'arch=compute_61,code=sm_61'
,]
...
...
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