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
5b2cf9ca
"tests/git@developer.sourcefind.cn:renzhc/diffusers_dcu.git" did not exist on "540399f54054115b69097aaeb79b1f0b5f4f8e98"
Commit
5b2cf9ca
authored
Dec 24, 2017
by
rusty1s
Browse files
only include kernel if cuda available
parent
2db5d1f3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
build.py
build.py
+2
-1
No files found.
build.py
View file @
5b2cf9ca
...
@@ -5,7 +5,7 @@ from torch.utils.ffi import create_extension
...
@@ -5,7 +5,7 @@ from torch.utils.ffi import create_extension
headers
=
[
'torch_scatter/src/cpu.h'
]
headers
=
[
'torch_scatter/src/cpu.h'
]
sources
=
[
'torch_scatter/src/cpu.c'
]
sources
=
[
'torch_scatter/src/cpu.c'
]
include_dirs
=
[
'torch_scatter/src'
,
'torch_scatter/kernel'
]
include_dirs
=
[
'torch_scatter/src'
]
define_macros
=
[]
define_macros
=
[]
extra_objects
=
[]
extra_objects
=
[]
with_cuda
=
False
with_cuda
=
False
...
@@ -15,6 +15,7 @@ if torch.cuda.is_available():
...
@@ -15,6 +15,7 @@ if torch.cuda.is_available():
headers
+=
[
'torch_scatter/src/cuda.h'
]
headers
+=
[
'torch_scatter/src/cuda.h'
]
sources
+=
[
'torch_scatter/src/cuda.c'
]
sources
+=
[
'torch_scatter/src/cuda.c'
]
include_dirs
+=
[
'torch_scatter/kernel'
]
define_macros
+=
[(
'WITH_CUDA'
,
None
)]
define_macros
+=
[(
'WITH_CUDA'
,
None
)]
extra_objects
+=
[
'torch_scatter/build/kernel.so'
]
extra_objects
+=
[
'torch_scatter/build/kernel.so'
]
with_cuda
=
True
with_cuda
=
True
...
...
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