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-scatter
Commits
05d058c1
"references/vscode:/vscode.git/clone" did not exist on "ae4012e27287466c6250235daa5ac3b74c26fbf2"
Commit
05d058c1
authored
Dec 19, 2017
by
rusty1s
Browse files
added kernel to ffi build
parent
2aa89004
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
6 deletions
+8
-6
build.py
build.py
+6
-6
torch_scatter/kernel/kernel.h
torch_scatter/kernel/kernel.h
+0
-0
torch_scatter/src/cuda.c
torch_scatter/src/cuda.c
+2
-0
No files found.
build.py
View file @
05d058c1
...
...
@@ -8,25 +8,25 @@ abs_path = 'torch_scatter'
headers
=
[
'torch_scatter/src/cpu.h'
]
sources
=
[
'torch_scatter/src/cpu.c'
]
includes
=
[
'torch_scatter/src'
]
defines
=
[]
include
_dir
s
=
[
'torch_scatter/src'
,
'torch_scatter/kernel'
]
define
_macro
s
=
[]
extra_objects
=
[]
with_cuda
=
False
if
torch
.
cuda
.
is_available
():
headers
+=
[
'torch_scatter/src/cuda.h'
]
sources
+=
[
'torch_scatter/src/cuda.c'
]
defines
+=
[(
'WITH_CUDA'
,
None
)]
define_macros
+=
[(
'WITH_CUDA'
,
None
)]
extra_objects
+=
[
'torch_scatter/build/kernel.so'
]
with_cuda
=
True
ffi
=
create_extension
(
name
=
'torch_scatter._ext.ffi'
,
package
=
True
,
verbose
=
True
,
headers
=
headers
,
sources
=
sources
,
include_dirs
=
includes
,
define_macros
=
defines
,
include_dirs
=
include
_dir
s
,
define_macros
=
define
_macro
s
,
extra_objects
=
extra_objects
,
with_cuda
=
with_cuda
,
relative_to
=
__file__
)
...
...
torch_scatter/kernel/kernel.h
0 → 100644
View file @
05d058c1
torch_scatter/src/cuda.c
View file @
05d058c1
#include <THC/THC.h>
#include "kernel.h"
#define scatter_(NAME) TH_CONCAT_4(scatter_, NAME, _cuda_, Real)
#define index_backward TH_CONCAT_2(index_backward_cuda_, Real)
...
...
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