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
e21ee09b
Commit
e21ee09b
authored
Dec 27, 2018
by
rusty1s
Browse files
windows support
parent
609d1f8d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
setup.py
setup.py
+6
-1
No files found.
setup.py
View file @
e21ee09b
import
platform
from
setuptools
import
setup
,
find_packages
import
torch
from
torch.utils.cpp_extension
import
CppExtension
,
CUDAExtension
,
CUDA_HOME
extra_compile_args
=
[]
if
platform
.
system
()
!=
'Windows'
:
extra_compile_args
+=
[
'-Wno-unused-variable'
]
ext_modules
=
[
CppExtension
(
'torch_scatter.scatter_cpu'
,
[
'cpu/scatter.cpp'
],
extra_compile_args
=
[
'-Wno-unused-variable'
]
)
extra_compile_args
=
extra_compile_args
)
]
cmdclass
=
{
'build_ext'
:
torch
.
utils
.
cpp_extension
.
BuildExtension
}
...
...
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