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
b1037b94
Commit
b1037b94
authored
Apr 09, 2018
by
rusty1s
Browse files
new build dir
parent
f6f00b9e
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
5 additions
and
8 deletions
+5
-8
MANIFEST.in
MANIFEST.in
+0
-3
build.py
build.py
+1
-1
build.sh
build.sh
+1
-1
setup.cfg
setup.cfg
+1
-1
setup.py
setup.py
+1
-1
torch_cluster/__init__.py
torch_cluster/__init__.py
+1
-1
No files found.
MANIFEST.in
View file @
b1037b94
...
@@ -2,7 +2,4 @@ include LICENSE
...
@@ -2,7 +2,4 @@ include LICENSE
include build.py
include build.py
include build.sh
include build.sh
recursive-include torch_cluster/src *
recursive-include torch_cluster/kernel *
recursive-exclude torch_cluster/_ext *
recursive-exclude torch_cluster/_ext *
build.py
View file @
b1037b94
...
@@ -24,7 +24,7 @@ if torch.cuda.is_available():
...
@@ -24,7 +24,7 @@ if torch.cuda.is_available():
sources
+=
[
'aten/THCC/THCC{}.c'
.
format
(
f
)
for
f
in
files
]
sources
+=
[
'aten/THCC/THCC{}.c'
.
format
(
f
)
for
f
in
files
]
include_dirs
+=
[
'aten/THCC'
]
include_dirs
+=
[
'aten/THCC'
]
define_macros
+=
[(
'WITH_CUDA'
,
None
)]
define_macros
+=
[(
'WITH_CUDA'
,
None
)]
extra_objects
+=
[
'
aten/build
/THC.so'
]
extra_objects
+=
[
'
torch_cluster/_ext
/THC.so'
]
with_cuda
=
True
with_cuda
=
True
ffi
=
create_extension
(
ffi
=
create_extension
(
...
...
build.sh
View file @
b1037b94
...
@@ -4,7 +4,7 @@ echo "Compiling kernel..."
...
@@ -4,7 +4,7 @@ echo "Compiling kernel..."
if
[
-z
"
$1
"
]
;
then
TORCH
=
$(
python
-c
"import os; import torch; print(os.path.dirname(torch.__file__))"
)
;
else
TORCH
=
"
$1
"
;
fi
if
[
-z
"
$1
"
]
;
then
TORCH
=
$(
python
-c
"import os; import torch; print(os.path.dirname(torch.__file__))"
)
;
else
TORCH
=
"
$1
"
;
fi
SRC_DIR
=
aten/THC
SRC_DIR
=
aten/THC
BUILD_DIR
=
aten/build
BUILD_DIR
=
torch_cluster/_ext
mkdir
-p
$BUILD_DIR
mkdir
-p
$BUILD_DIR
$(
which nvcc
)
-c
-o
"
$BUILD_DIR
/THC.so"
"
$SRC_DIR
/THC.cu"
-arch
=
sm_52
-Xcompiler
-fPIC
-shared
"-I
$TORCH
/lib/include/TH"
"-I
$TORCH
/lib/include"
"-I
$SRC_DIR
"
$(
which nvcc
)
-c
-o
"
$BUILD_DIR
/THC.so"
"
$SRC_DIR
/THC.cu"
-arch
=
sm_52
-Xcompiler
-fPIC
-shared
"-I
$TORCH
/lib/include/TH"
"-I
$TORCH
/lib/include"
"-I
$SRC_DIR
"
setup.cfg
View file @
b1037b94
...
@@ -5,4 +5,4 @@ description-file = README.md
...
@@ -5,4 +5,4 @@ description-file = README.md
test = pytest
test = pytest
[tool:pytest]
[tool:pytest]
addopts = --capture=no
--cov
addopts = --capture=no
setup.py
View file @
b1037b94
...
@@ -2,7 +2,7 @@ from os import path as osp
...
@@ -2,7 +2,7 @@ from os import path as osp
from
setuptools
import
setup
,
find_packages
from
setuptools
import
setup
,
find_packages
__version__
=
'1.0.
0
'
__version__
=
'1.0.
1
'
url
=
'https://github.com/rusty1s/pytorch_cluster'
url
=
'https://github.com/rusty1s/pytorch_cluster'
install_requires
=
[
'cffi'
]
install_requires
=
[
'cffi'
]
...
...
torch_cluster/__init__.py
View file @
b1037b94
from
.graclus
import
graclus_cluster
from
.graclus
import
graclus_cluster
from
.grid
import
grid_cluster
from
.grid
import
grid_cluster
__version__
=
'1.0.
0
'
__version__
=
'1.0.
1
'
__all__
=
[
'graclus_cluster'
,
'grid_cluster'
,
'__version__'
]
__all__
=
[
'graclus_cluster'
,
'grid_cluster'
,
'__version__'
]
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