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
SparseConvNet
Commits
00ad22e6
"lib/vscode:/vscode.git/clone" did not exist on "602352ce190bcb02013c62c2337e8b8678015699"
Commit
00ad22e6
authored
Jul 24, 2017
by
Benjamin Thomas Graham
Browse files
Update setup.py
parent
27b3cb0b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
7 deletions
+20
-7
PyTorch/setup.py
PyTorch/setup.py
+20
-7
No files found.
PyTorch/setup.py
View file @
00ad22e6
...
...
@@ -13,13 +13,21 @@ torch_dir = os.path.dirname(torch.__file__)
print
(
'Building SCN module'
)
if
torch
.
cuda
.
is_available
():
r
=
os
.
system
(
'cd sparseconvnet/SCN; nvcc init.cu -c -o init.cu.o -ccbin /usr/bin/cc -m64 --std c++11 -Xcompiler ,
\"
-fopenmp
\"
,
\"
-fPIC
\"
,
\"
-O3
\"
,
\"
-DNDEBUG
\"
-gencode arch=compute_52,code=sm_52 -gencode arch=compute_30,code=sm_30 -DNVCC -I/usr/local/cuda/include -I'
+
torch_dir
+
'/lib/include -I'
+
torch_dir
+
'/lib/include/TH -I'
+
torch_dir
+
'/lib/include/THC -I.'
)
'cd sparseconvnet/SCN; nvcc init.cu -c -o init.cu.o -ccbin /usr/bin/cc'
+
' -m64 --std c++11 -Xcompiler '
+
',
\"
-fopenmp
\"
,
\"
-fPIC
\"
,
\"
-O3
\"
,
\"
-DNDEBUG
\"
'
+
'-gencode arch=compute_62,code=sm_62 '
+
'-gencode arch=compute_61,code=sm_61 '
+
'-gencode arch=compute_60,code=sm_60 '
+
'-gencode arch=compute_52,code=sm_52 '
+
'-gencode arch=compute_50,code=sm_50 '
+
'-gencode arch=compute_30,code=sm_30 '
+
'-DNVCC '
+
'-I/usr/local/cuda/include '
+
'-I'
+
torch_dir
+
'/lib/include '
+
'-I'
+
torch_dir
+
'/lib/include/TH '
+
'-I'
+
torch_dir
+
'/lib/include/THC '
+
'-I.'
)
assert
r
==
0
ffi
=
create_extension
(
'sparseconvnet.SCN'
,
...
...
@@ -60,5 +68,10 @@ setup(
author
=
'Facebook AI Research'
,
author_email
=
'benjamingraham@fb.com'
,
url
=
'https://github.com/facebookresearch/SparseConvNet'
,
package_data
=
{
'sparseconvnet'
:
[
'SCN/_SCN.so'
],
},
packages
=
find_packages
(),
# Since the package includes a shared object, this is not zip-safe.
zip_safe
=
False
,
)
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