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
torch-cluster
Commits
149b2f85
Commit
149b2f85
authored
Mar 30, 2018
by
rusty1s
Browse files
gputest
parent
d9be28c0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
build.py
build.py
+9
-9
No files found.
build.py
View file @
149b2f85
...
@@ -8,23 +8,23 @@ from torch.utils.ffi import create_extension
...
@@ -8,23 +8,23 @@ from torch.utils.ffi import create_extension
if
osp
.
exists
(
'build'
):
if
osp
.
exists
(
'build'
):
shutil
.
rmtree
(
'build'
)
shutil
.
rmtree
(
'build'
)
files
=
[
'
serial
'
,
'
g
rid'
]
files
=
[
'
Greedy
'
,
'
G
rid'
]
headers
=
[
'
torch_cluster/src/{}_cpu
.h'
.
format
(
f
)
for
f
in
files
]
headers
=
[
'
aten/TH/TH{}
.h'
.
format
(
f
)
for
f
in
files
]
sources
=
[
'
torch_cluster/src/{}_cpu
.c'
.
format
(
f
)
for
f
in
files
]
sources
=
[
'
aten/TH/TH{}
.c'
.
format
(
f
)
for
f
in
files
]
include_dirs
=
[
'torch_cluster/src'
,
'aten/TH'
]
include_dirs
=
[
'aten/TH'
]
define_macros
=
[]
define_macros
=
[]
extra_objects
=
[]
extra_objects
=
[]
with_cuda
=
False
with_cuda
=
False
if
torch
.
cuda
.
is_available
():
if
torch
.
cuda
.
is_available
():
subprocess
.
call
([
'./build.sh'
,
osp
.
dirname
(
torch
.
__file__
)])
subprocess
.
call
([
'./build
_new
.sh'
,
osp
.
dirname
(
torch
.
__file__
)])
headers
+=
[
'
torch_cluster/src/{}_cuda
.h'
.
format
(
f
)
for
f
in
files
]
headers
+=
[
'
aten/THCC/THCC{}
.h'
.
format
(
f
)
for
f
in
files
]
sources
+=
[
'
torch_cluster/src/{}_cuda
.c'
.
format
(
f
)
for
f
in
files
]
sources
+=
[
'
aten/THCC/THCC{}
.c'
.
format
(
f
)
for
f
in
files
]
include_dirs
+=
[
'
torch_cluster/kernel
'
]
include_dirs
+=
[
'
aten/THC'
,
'aten/THCC
'
]
define_macros
+=
[(
'WITH_CUDA'
,
None
)]
define_macros
+=
[(
'WITH_CUDA'
,
None
)]
extra_objects
+=
[
'
torch_clus
te
r
/build/{}.so'
.
format
(
f
)
for
f
in
files
]
extra_objects
+=
[
'
a
te
n
/build/
THC
{}.so'
.
format
(
f
)
for
f
in
files
]
with_cuda
=
True
with_cuda
=
True
ffi
=
create_extension
(
ffi
=
create_extension
(
...
...
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