You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[dcq@localhost pytorch_cluster]$ python setup.py test
running pytest
running egg_info
creating torch_cluster.egg-info
writing torch_cluster.egg-info/PKG-INFO
writing dependency_links to torch_cluster.egg-info/dependency_links.txt
writing top-level names to torch_cluster.egg-info/top_level.txt
writing manifest file 'torch_cluster.egg-info/SOURCES.txt'
reading manifest file 'torch_cluster.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'torch_cluster.egg-info/SOURCES.txt'
running build_ext
building 'graclus_cpu' extension
creating build
creating build/temp.linux-x86_64-3.7
creating build/temp.linux-x86_64-3.7/cpu
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -m64 -fPIC -m64 -fPIC -fPIC -I/home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include -I/home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include/TH -I/home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include/THC -I/home/dcq/anaconda3/include/python3.7m -c cpu/graclus.cpp -o build/temp.linux-x86_64-3.7/cpu/graclus.o -DTORCH_EXTENSION_NAME=graclus_cpu -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++11
In file included from /home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include/pybind11/cast.h:16:0,
from /home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include/pybind11/attr.h:13,
from /home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include/pybind11/pybind11.h:43,
from /home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include/torch/torch.h:5,
from cpu/graclus.cpp:1:
/home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include/pybind11/detail/internals.h:82:14: warning: ‘int PyThread_create_key()’ is deprecated (declared at /home/dcq/anaconda3/include/python3.7m/pythread.h:95) [-Wdeprecated-declarations]
decltype(PyThread_create_key()) tstate = 0; // Usually an int but a long on Cygwin64 with Python 3.x
^
/home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include/pybind11/detail/internals.h:82:34: warning: ‘int PyThread_create_key()’ is deprecated (declared at /home/dcq/anaconda3/include/python3.7m/pythread.h:95) [-Wdeprecated-declarations]
decltype(PyThread_create_key()) tstate = 0; // Usually an int but a long on Cygwin64 with Python 3.x
^
/home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include/pybind11/detail/internals.h:82:14: warning: ‘int PyThread_create_key()’ is deprecated (declared at /home/dcq/anaconda3/include/python3.7m/pythread.h:95) [-Wdeprecated-declarations]
decltype(PyThread_create_key()) tstate = 0; // Usually an int but a long on Cygwin64 with Python 3.x
^
/home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include/pybind11/detail/internals.h:82:34: warning: ‘int PyThread_create_key()’ is deprecated (declared at /home/dcq/anaconda3/include/python3.7m/pythread.h:95) [-Wdeprecated-declarations]
decltype(PyThread_create_key()) tstate = 0; // Usually an int but a long on Cygwin64 with Python 3.x
^
/home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include/pybind11/detail/internals.h: In function ‘pybind11::detail::internals& pybind11::detail::get_internals()’:
/home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include/pybind11/detail/internals.h:169:33: warning: ‘int PyThread_create_key()’ is deprecated (declared at /home/dcq/anaconda3/include/python3.7m/pythread.h:95) [-Wdeprecated-declarations]
internals_ptr->tstate = PyThread_create_key();
^
/home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include/pybind11/detail/internals.h:169:53: warning: ‘int PyThread_create_key()’ is deprecated (declared at /home/dcq/anaconda3/include/python3.7m/pythread.h:95) [-Wdeprecated-declarations]
internals_ptr->tstate = PyThread_create_key();
^
/home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include/pybind11/detail/internals.h:170:9: warning: ‘int PyThread_set_key_value(int, void*)’ is deprecated (declared at /home/dcq/anaconda3/include/python3.7m/pythread.h:97) [-Wdeprecated-declarations]
PyThread_set_key_value(internals_ptr->tstate, tstate);
^
/home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include/pybind11/detail/internals.h:170:61: warning: ‘int PyThread_set_key_value(int, void*)’ is deprecated (declared at /home/dcq/anaconda3/include/python3.7m/pythread.h:97) [-Wdeprecated-declarations]
PyThread_set_key_value(internals_ptr->tstate, tstate);
^
In file included from /home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include/torch/torch.h:5:0,
from cpu/graclus.cpp:1:
/home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include/pybind11/pybind11.h: In constructor ‘pybind11::gil_scoped_acquire::gil_scoped_acquire()’:
/home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include/pybind11/pybind11.h:1758:36: warning: ‘void* PyThread_get_key_value(int)’ is deprecated (declared at /home/dcq/anaconda3/include/python3.7m/pythread.h:98) [-Wdeprecated-declarations]
tstate = (PyThreadState *) PyThread_get_key_value(internals.tstate);
^
/home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include/pybind11/pybind11.h:1758:75: warning: ‘void* PyThread_get_key_value(int)’ is deprecated (declared at /home/dcq/anaconda3/include/python3.7m/pythread.h:98) [-Wdeprecated-declarations]
tstate = (PyThreadState *) PyThread_get_key_value(internals.tstate);
^
/home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include/pybind11/pybind11.h:1770:13: warning: ‘int PyThread_set_key_value(int, void*)’ is deprecated (declared at /home/dcq/anaconda3/include/python3.7m/pythread.h:97) [-Wdeprecated-declarations]
PyThread_set_key_value(internals.tstate, tstate);
^
/home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include/pybind11/pybind11.h:1770:60: warning: ‘int PyThread_set_key_value(int, void*)’ is deprecated (declared at /home/dcq/anaconda3/include/python3.7m/pythread.h:97) [-Wdeprecated-declarations]
PyThread_set_key_value(internals.tstate, tstate);
^
/home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include/pybind11/pybind11.h: In member function ‘void pybind11::gil_scoped_acquire::dec_ref()’:
/home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include/pybind11/pybind11.h:1809:13: warning: ‘void PyThread_delete_key_value(int)’ is deprecated (declared at /home/dcq/anaconda3/include/python3.7m/pythread.h:99) [-Wdeprecated-declarations]
PyThread_delete_key_value(detail::get_internals().tstate);
^
/home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include/pybind11/pybind11.h:1809:69: warning: ‘void PyThread_delete_key_value(int)’ is deprecated (declared at /home/dcq/anaconda3/include/python3.7m/pythread.h:99) [-Wdeprecated-declarations]
PyThread_delete_key_value(detail::get_internals().tstate);
^
/home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include/pybind11/pybind11.h: In constructor ‘pybind11::gil_scoped_release::gil_scoped_release(bool)’:
/home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include/pybind11/pybind11.h:1837:17: warning: ‘int PyThread_set_key_value(int, void*)’ is deprecated (declared at /home/dcq/anaconda3/include/python3.7m/pythread.h:97) [-Wdeprecated-declarations]
PyThread_set_key_value(key, nullptr);
^
/home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include/pybind11/pybind11.h:1837:52: warning: ‘int PyThread_set_key_value(int, void*)’ is deprecated (declared at /home/dcq/anaconda3/include/python3.7m/pythread.h:97) [-Wdeprecated-declarations]
PyThread_set_key_value(key, nullptr);
^
/home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include/pybind11/pybind11.h: In destructor ‘pybind11::gil_scoped_release::~gil_scoped_release()’:
/home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include/pybind11/pybind11.h:1850:13: warning: ‘int PyThread_set_key_value(int, void*)’ is deprecated (declared at /home/dcq/anaconda3/include/python3.7m/pythread.h:97) [-Wdeprecated-declarations]
PyThread_set_key_value(key, tstate);
^
/home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include/pybind11/pybind11.h:1850:47: warning: ‘int PyThread_set_key_value(int, void*)’ is deprecated (declared at /home/dcq/anaconda3/include/python3.7m/pythread.h:97) [-Wdeprecated-declarations]
PyThread_set_key_value(key, tstate);
^
creating build/lib.linux-x86_64-3.7
g++ -pthread -shared -L/home/dcq/anaconda3/lib -Wl,-rpath=/home/dcq/anaconda3/lib,--no-as-needed -L/home/dcq/anaconda3/lib -Wl,-rpath=/home/dcq/anaconda3/lib,--no-as-needed build/temp.linux-x86_64-3.7/cpu/graclus.o -L/home/dcq/anaconda3/lib -lpython3.7m -o build/lib.linux-x86_64-3.7/graclus_cpu.cpython-37m-x86_64-linux-gnu.so
building 'grid_cpu' extension
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -m64 -fPIC -m64 -fPIC -fPIC -I/home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include -I/home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include/TH -I/home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include/THC -I/home/dcq/anaconda3/include/python3.7m -c cpu/grid.cpp -o build/temp.linux-x86_64-3.7/cpu/grid.o -DTORCH_EXTENSION_NAME=grid_cpu -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++11
In file included from /home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include/pybind11/cast.h:16:0,
from /home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include/pybind11/attr.h:13,
from /home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include/pybind11/pybind11.h:43,
from /home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include/torch/torch.h:5,
from cpu/grid.cpp:1:
/home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include/pybind11/detail/internals.h:82:14: warning: ‘int PyThread_create_key()’ is deprecated (declared at /home/dcq/anaconda3/include/python3.7m/pythread.h:95) [-Wdeprecated-declarations]
decltype(PyThread_create_key()) tstate = 0; // Usually an int but a long on Cygwin64 with Python 3.x
^
/home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include/pybind11/detail/internals.h:82:34: warning: ‘int PyThread_create_key()’ is deprecated (declared at /home/dcq/anaconda3/include/python3.7m/pythread.h:95) [-Wdeprecated-declarations]
decltype(PyThread_create_key()) tstate = 0; // Usually an int but a long on Cygwin64 with Python 3.x
^
/home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include/pybind11/detail/internals.h:82:14: warning: ‘int PyThread_create_key()’ is deprecated (declared at /home/dcq/anaconda3/include/python3.7m/pythread.h:95) [-Wdeprecated-declarations]
decltype(PyThread_create_key()) tstate = 0; // Usually an int but a long on Cygwin64 with Python 3.x
^
/home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include/pybind11/detail/internals.h:82:34: warning: ‘int PyThread_create_key()’ is deprecated (declared at /home/dcq/anaconda3/include/python3.7m/pythread.h:95) [-Wdeprecated-declarations]
decltype(PyThread_create_key()) tstate = 0; // Usually an int but a long on Cygwin64 with Python 3.x
^
/home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include/pybind11/detail/internals.h: In function ‘pybind11::detail::internals& pybind11::detail::get_internals()’:
/home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include/pybind11/detail/internals.h:169:33: warning: ‘int PyThread_create_key()’ is deprecated (declared at /home/dcq/anaconda3/include/python3.7m/pythread.h:95) [-Wdeprecated-declarations]
internals_ptr->tstate = PyThread_create_key();
^
/home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include/pybind11/detail/internals.h:169:53: warning: ‘int PyThread_create_key()’ is deprecated (declared at /home/dcq/anaconda3/include/python3.7m/pythread.h:95) [-Wdeprecated-declarations]
internals_ptr->tstate = PyThread_create_key();
^
/home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include/pybind11/detail/internals.h:170:9: warning: ‘int PyThread_set_key_value(int, void*)’ is deprecated (declared at /home/dcq/anaconda3/include/python3.7m/pythread.h:97) [-Wdeprecated-declarations]
PyThread_set_key_value(internals_ptr->tstate, tstate);
^
/home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include/pybind11/detail/internals.h:170:61: warning: ‘int PyThread_set_key_value(int, void*)’ is deprecated (declared at /home/dcq/anaconda3/include/python3.7m/pythread.h:97) [-Wdeprecated-declarations]
PyThread_set_key_value(internals_ptr->tstate, tstate);
^
In file included from /home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include/torch/torch.h:5:0,
from cpu/grid.cpp:1:
/home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include/pybind11/pybind11.h: In constructor ‘pybind11::gil_scoped_acquire::gil_scoped_acquire()’:
/home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include/pybind11/pybind11.h:1758:36: warning: ‘void* PyThread_get_key_value(int)’ is deprecated (declared at /home/dcq/anaconda3/include/python3.7m/pythread.h:98) [-Wdeprecated-declarations]
tstate = (PyThreadState *) PyThread_get_key_value(internals.tstate);
^
/home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include/pybind11/pybind11.h:1758:75: warning: ‘void* PyThread_get_key_value(int)’ is deprecated (declared at /home/dcq/anaconda3/include/python3.7m/pythread.h:98) [-Wdeprecated-declarations]
tstate = (PyThreadState *) PyThread_get_key_value(internals.tstate);
^
/home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include/pybind11/pybind11.h:1770:13: warning: ‘int PyThread_set_key_value(int, void*)’ is deprecated (declared at /home/dcq/anaconda3/include/python3.7m/pythread.h:97) [-Wdeprecated-declarations]
PyThread_set_key_value(internals.tstate, tstate);
^
/home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include/pybind11/pybind11.h:1770:60: warning: ‘int PyThread_set_key_value(int, void*)’ is deprecated (declared at /home/dcq/anaconda3/include/python3.7m/pythread.h:97) [-Wdeprecated-declarations]
PyThread_set_key_value(internals.tstate, tstate);
^
/home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include/pybind11/pybind11.h: In member function ‘void pybind11::gil_scoped_acquire::dec_ref()’:
/home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include/pybind11/pybind11.h:1809:13: warning: ‘void PyThread_delete_key_value(int)’ is deprecated (declared at /home/dcq/anaconda3/include/python3.7m/pythread.h:99) [-Wdeprecated-declarations]
PyThread_delete_key_value(detail::get_internals().tstate);
^
/home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include/pybind11/pybind11.h:1809:69: warning: ‘void PyThread_delete_key_value(int)’ is deprecated (declared at /home/dcq/anaconda3/include/python3.7m/pythread.h:99) [-Wdeprecated-declarations]
PyThread_delete_key_value(detail::get_internals().tstate);
^
/home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include/pybind11/pybind11.h: In constructor ‘pybind11::gil_scoped_release::gil_scoped_release(bool)’:
/home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include/pybind11/pybind11.h:1837:17: warning: ‘int PyThread_set_key_value(int, void*)’ is deprecated (declared at /home/dcq/anaconda3/include/python3.7m/pythread.h:97) [-Wdeprecated-declarations]
PyThread_set_key_value(key, nullptr);
^
/home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include/pybind11/pybind11.h:1837:52: warning: ‘int PyThread_set_key_value(int, void*)’ is deprecated (declared at /home/dcq/anaconda3/include/python3.7m/pythread.h:97) [-Wdeprecated-declarations]
PyThread_set_key_value(key, nullptr);
^
/home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include/pybind11/pybind11.h: In destructor ‘pybind11::gil_scoped_release::~gil_scoped_release()’:
/home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include/pybind11/pybind11.h:1850:13: warning: ‘int PyThread_set_key_value(int, void*)’ is deprecated (declared at /home/dcq/anaconda3/include/python3.7m/pythread.h:97) [-Wdeprecated-declarations]
PyThread_set_key_value(key, tstate);
^
/home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include/pybind11/pybind11.h:1850:47: warning: ‘int PyThread_set_key_value(int, void*)’ is deprecated (declared at /home/dcq/anaconda3/include/python3.7m/pythread.h:97) [-Wdeprecated-declarations]
PyThread_set_key_value(key, tstate);
^
g++ -pthread -shared -L/home/dcq/anaconda3/lib -Wl,-rpath=/home/dcq/anaconda3/lib,--no-as-needed -L/home/dcq/anaconda3/lib -Wl,-rpath=/home/dcq/anaconda3/lib,--no-as-needed build/temp.linux-x86_64-3.7/cpu/grid.o -L/home/dcq/anaconda3/lib -lpython3.7m -o build/lib.linux-x86_64-3.7/grid_cpu.cpython-37m-x86_64-linux-gnu.so
building 'graclus_cuda' extension
creating build/temp.linux-x86_64-3.7/cuda
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -m64 -fPIC -m64 -fPIC -fPIC -I/home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include -I/home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include/TH -I/home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include/THC -I/usr/local/cuda/include -I/home/dcq/anaconda3/include/python3.7m -c cuda/graclus.cpp -o build/temp.linux-x86_64-3.7/cuda/graclus.o -DTORCH_EXTENSION_NAME=graclus_cuda -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++11
In file included from /home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include/pybind11/cast.h:16:0,
from /home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include/pybind11/attr.h:13,
from /home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include/pybind11/pybind11.h:43,
from /home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include/torch/torch.h:5,
from cuda/graclus.cpp:1:
/home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include/pybind11/detail/internals.h:82:14: warning: ‘int PyThread_create_key()’ is deprecated (declared at /home/dcq/anaconda3/include/python3.7m/pythread.h:95) [-Wdeprecated-declarations]
decltype(PyThread_create_key()) tstate = 0; // Usually an int but a long on Cygwin64 with Python 3.x
^
/home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include/pybind11/detail/internals.h:82:34: warning: ‘int PyThread_create_key()’ is deprecated (declared at /home/dcq/anaconda3/include/python3.7m/pythread.h:95) [-Wdeprecated-declarations]
decltype(PyThread_create_key()) tstate = 0; // Usually an int but a long on Cygwin64 with Python 3.x
^
/home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include/pybind11/detail/internals.h:82:14: warning: ‘int PyThread_create_key()’ is deprecated (declared at /home/dcq/anaconda3/include/python3.7m/pythread.h:95) [-Wdeprecated-declarations]
decltype(PyThread_create_key()) tstate = 0; // Usually an int but a long on Cygwin64 with Python 3.x
^
/home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include/pybind11/detail/internals.h:82:34: warning: ‘int PyThread_create_key()’ is deprecated (declared at /home/dcq/anaconda3/include/python3.7m/pythread.h:95) [-Wdeprecated-declarations]
decltype(PyThread_create_key()) tstate = 0; // Usually an int but a long on Cygwin64 with Python 3.x
^
/home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include/pybind11/detail/internals.h: In function ‘pybind11::detail::internals& pybind11::detail::get_internals()’:
/home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include/pybind11/detail/internals.h:169:33: warning: ‘int PyThread_create_key()’ is deprecated (declared at /home/dcq/anaconda3/include/python3.7m/pythread.h:95) [-Wdeprecated-declarations]
internals_ptr->tstate = PyThread_create_key();
^
/home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include/pybind11/detail/internals.h:169:53: warning: ‘int PyThread_create_key()’ is deprecated (declared at /home/dcq/anaconda3/include/python3.7m/pythread.h:95) [-Wdeprecated-declarations]
internals_ptr->tstate = PyThread_create_key();
^
/home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include/pybind11/detail/internals.h:170:9: warning: ‘int PyThread_set_key_value(int, void*)’ is deprecated (declared at /home/dcq/anaconda3/include/python3.7m/pythread.h:97) [-Wdeprecated-declarations]
PyThread_set_key_value(internals_ptr->tstate, tstate);
^
/home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include/pybind11/detail/internals.h:170:61: warning: ‘int PyThread_set_key_value(int, void*)’ is deprecated (declared at /home/dcq/anaconda3/include/python3.7m/pythread.h:97) [-Wdeprecated-declarations]
PyThread_set_key_value(internals_ptr->tstate, tstate);
^
In file included from /home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include/torch/torch.h:5:0,
from cuda/graclus.cpp:1:
/home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include/pybind11/pybind11.h: In constructor ‘pybind11::gil_scoped_acquire::gil_scoped_acquire()’:
/home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include/pybind11/pybind11.h:1758:36: warning: ‘void* PyThread_get_key_value(int)’ is deprecated (declared at /home/dcq/anaconda3/include/python3.7m/pythread.h:98) [-Wdeprecated-declarations]
tstate = (PyThreadState *) PyThread_get_key_value(internals.tstate);
^
/home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include/pybind11/pybind11.h:1758:75: warning: ‘void* PyThread_get_key_value(int)’ is deprecated (declared at /home/dcq/anaconda3/include/python3.7m/pythread.h:98) [-Wdeprecated-declarations]
tstate = (PyThreadState *) PyThread_get_key_value(internals.tstate);
^
/home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include/pybind11/pybind11.h:1770:13: warning: ‘int PyThread_set_key_value(int, void*)’ is deprecated (declared at /home/dcq/anaconda3/include/python3.7m/pythread.h:97) [-Wdeprecated-declarations]
PyThread_set_key_value(internals.tstate, tstate);
^
/home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include/pybind11/pybind11.h:1770:60: warning: ‘int PyThread_set_key_value(int, void*)’ is deprecated (declared at /home/dcq/anaconda3/include/python3.7m/pythread.h:97) [-Wdeprecated-declarations]
PyThread_set_key_value(internals.tstate, tstate);
^
/home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include/pybind11/pybind11.h: In member function ‘void pybind11::gil_scoped_acquire::dec_ref()’:
/home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include/pybind11/pybind11.h:1809:13: warning: ‘void PyThread_delete_key_value(int)’ is deprecated (declared at /home/dcq/anaconda3/include/python3.7m/pythread.h:99) [-Wdeprecated-declarations]
PyThread_delete_key_value(detail::get_internals().tstate);
^
/home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include/pybind11/pybind11.h:1809:69: warning: ‘void PyThread_delete_key_value(int)’ is deprecated (declared at /home/dcq/anaconda3/include/python3.7m/pythread.h:99) [-Wdeprecated-declarations]
PyThread_delete_key_value(detail::get_internals().tstate);
^
/home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include/pybind11/pybind11.h: In constructor ‘pybind11::gil_scoped_release::gil_scoped_release(bool)’:
/home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include/pybind11/pybind11.h:1837:17: warning: ‘int PyThread_set_key_value(int, void*)’ is deprecated (declared at /home/dcq/anaconda3/include/python3.7m/pythread.h:97) [-Wdeprecated-declarations]
PyThread_set_key_value(key, nullptr);
^
/home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include/pybind11/pybind11.h:1837:52: warning: ‘int PyThread_set_key_value(int, void*)’ is deprecated (declared at /home/dcq/anaconda3/include/python3.7m/pythread.h:97) [-Wdeprecated-declarations]
PyThread_set_key_value(key, nullptr);
^
/home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include/pybind11/pybind11.h: In destructor ‘pybind11::gil_scoped_release::~gil_scoped_release()’:
/home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include/pybind11/pybind11.h:1850:13: warning: ‘int PyThread_set_key_value(int, void*)’ is deprecated (declared at /home/dcq/anaconda3/include/python3.7m/pythread.h:97) [-Wdeprecated-declarations]
PyThread_set_key_value(key, tstate);
^
/home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include/pybind11/pybind11.h:1850:47: warning: ‘int PyThread_set_key_value(int, void*)’ is deprecated (declared at /home/dcq/anaconda3/include/python3.7m/pythread.h:97) [-Wdeprecated-declarations]
PyThread_set_key_value(key, tstate);
^
/usr/local/cuda/bin/nvcc -I/home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include -I/home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include/TH -I/home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include/THC -I/usr/local/cuda/include -I/home/dcq/anaconda3/include/python3.7m -c cuda/graclus_kernel.cu -o build/temp.linux-x86_64-3.7/cuda/graclus_kernel.o -DTORCH_EXTENSION_NAME=graclus_cuda -D_GLIBCXX_USE_CXX11_ABI=0 --compiler-options '-fPIC' -std=c++11
g++ -pthread -shared -L/home/dcq/anaconda3/lib -Wl,-rpath=/home/dcq/anaconda3/lib,--no-as-needed -L/home/dcq/anaconda3/lib -Wl,-rpath=/home/dcq/anaconda3/lib,--no-as-needed build/temp.linux-x86_64-3.7/cuda/graclus.o build/temp.linux-x86_64-3.7/cuda/graclus_kernel.o -L/usr/local/cuda/lib64 -L/home/dcq/anaconda3/lib -lcudart -lpython3.7m -o build/lib.linux-x86_64-3.7/graclus_cuda.cpython-37m-x86_64-linux-gnu.so
building 'grid_cuda' extension
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -m64 -fPIC -m64 -fPIC -fPIC -I/home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include -I/home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include/TH -I/home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include/THC -I/usr/local/cuda/include -I/home/dcq/anaconda3/include/python3.7m -c cuda/grid.cpp -o build/temp.linux-x86_64-3.7/cuda/grid.o -DTORCH_EXTENSION_NAME=grid_cuda -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++11
In file included from /home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include/pybind11/cast.h:16:0,
from /home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include/pybind11/attr.h:13,
from /home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include/pybind11/pybind11.h:43,
from /home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include/torch/torch.h:5,
from cuda/grid.cpp:1:
/home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include/pybind11/detail/internals.h:82:14: warning: ‘int PyThread_create_key()’ is deprecated (declared at /home/dcq/anaconda3/include/python3.7m/pythread.h:95) [-Wdeprecated-declarations]
decltype(PyThread_create_key()) tstate = 0; // Usually an int but a long on Cygwin64 with Python 3.x
^
/home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include/pybind11/detail/internals.h:82:34: warning: ‘int PyThread_create_key()’ is deprecated (declared at /home/dcq/anaconda3/include/python3.7m/pythread.h:95) [-Wdeprecated-declarations]
decltype(PyThread_create_key()) tstate = 0; // Usually an int but a long on Cygwin64 with Python 3.x
^
/home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include/pybind11/detail/internals.h:82:14: warning: ‘int PyThread_create_key()’ is deprecated (declared at /home/dcq/anaconda3/include/python3.7m/pythread.h:95) [-Wdeprecated-declarations]
decltype(PyThread_create_key()) tstate = 0; // Usually an int but a long on Cygwin64 with Python 3.x
^
/home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include/pybind11/detail/internals.h:82:34: warning: ‘int PyThread_create_key()’ is deprecated (declared at /home/dcq/anaconda3/include/python3.7m/pythread.h:95) [-Wdeprecated-declarations]
decltype(PyThread_create_key()) tstate = 0; // Usually an int but a long on Cygwin64 with Python 3.x
^
/home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include/pybind11/detail/internals.h: In function ‘pybind11::detail::internals& pybind11::detail::get_internals()’:
/home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include/pybind11/detail/internals.h:169:33: warning: ‘int PyThread_create_key()’ is deprecated (declared at /home/dcq/anaconda3/include/python3.7m/pythread.h:95) [-Wdeprecated-declarations]
internals_ptr->tstate = PyThread_create_key();
^
/home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include/pybind11/detail/internals.h:169:53: warning: ‘int PyThread_create_key()’ is deprecated (declared at /home/dcq/anaconda3/include/python3.7m/pythread.h:95) [-Wdeprecated-declarations]
internals_ptr->tstate = PyThread_create_key();
^
/home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include/pybind11/detail/internals.h:170:9: warning: ‘int PyThread_set_key_value(int, void*)’ is deprecated (declared at /home/dcq/anaconda3/include/python3.7m/pythread.h:97) [-Wdeprecated-declarations]
PyThread_set_key_value(internals_ptr->tstate, tstate);
^
/home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include/pybind11/detail/internals.h:170:61: warning: ‘int PyThread_set_key_value(int, void*)’ is deprecated (declared at /home/dcq/anaconda3/include/python3.7m/pythread.h:97) [-Wdeprecated-declarations]
PyThread_set_key_value(internals_ptr->tstate, tstate);
^
In file included from /home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include/torch/torch.h:5:0,
from cuda/grid.cpp:1:
/home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include/pybind11/pybind11.h: In constructor ‘pybind11::gil_scoped_acquire::gil_scoped_acquire()’:
/home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include/pybind11/pybind11.h:1758:36: warning: ‘void* PyThread_get_key_value(int)’ is deprecated (declared at /home/dcq/anaconda3/include/python3.7m/pythread.h:98) [-Wdeprecated-declarations]
tstate = (PyThreadState *) PyThread_get_key_value(internals.tstate);
^
/home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include/pybind11/pybind11.h:1758:75: warning: ‘void* PyThread_get_key_value(int)’ is deprecated (declared at /home/dcq/anaconda3/include/python3.7m/pythread.h:98) [-Wdeprecated-declarations]
tstate = (PyThreadState *) PyThread_get_key_value(internals.tstate);
^
/home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include/pybind11/pybind11.h:1770:13: warning: ‘int PyThread_set_key_value(int, void*)’ is deprecated (declared at /home/dcq/anaconda3/include/python3.7m/pythread.h:97) [-Wdeprecated-declarations]
PyThread_set_key_value(internals.tstate, tstate);
^
/home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include/pybind11/pybind11.h:1770:60: warning: ‘int PyThread_set_key_value(int, void*)’ is deprecated (declared at /home/dcq/anaconda3/include/python3.7m/pythread.h:97) [-Wdeprecated-declarations]
PyThread_set_key_value(internals.tstate, tstate);
^
/home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include/pybind11/pybind11.h: In member function ‘void pybind11::gil_scoped_acquire::dec_ref()’:
/home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include/pybind11/pybind11.h:1809:13: warning: ‘void PyThread_delete_key_value(int)’ is deprecated (declared at /home/dcq/anaconda3/include/python3.7m/pythread.h:99) [-Wdeprecated-declarations]
PyThread_delete_key_value(detail::get_internals().tstate);
^
/home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include/pybind11/pybind11.h:1809:69: warning: ‘void PyThread_delete_key_value(int)’ is deprecated (declared at /home/dcq/anaconda3/include/python3.7m/pythread.h:99) [-Wdeprecated-declarations]
PyThread_delete_key_value(detail::get_internals().tstate);
^
/home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include/pybind11/pybind11.h: In constructor ‘pybind11::gil_scoped_release::gil_scoped_release(bool)’:
/home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include/pybind11/pybind11.h:1837:17: warning: ‘int PyThread_set_key_value(int, void*)’ is deprecated (declared at /home/dcq/anaconda3/include/python3.7m/pythread.h:97) [-Wdeprecated-declarations]
PyThread_set_key_value(key, nullptr);
^
/home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include/pybind11/pybind11.h:1837:52: warning: ‘int PyThread_set_key_value(int, void*)’ is deprecated (declared at /home/dcq/anaconda3/include/python3.7m/pythread.h:97) [-Wdeprecated-declarations]
PyThread_set_key_value(key, nullptr);
^
/home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include/pybind11/pybind11.h: In destructor ‘pybind11::gil_scoped_release::~gil_scoped_release()’:
/home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include/pybind11/pybind11.h:1850:13: warning: ‘int PyThread_set_key_value(int, void*)’ is deprecated (declared at /home/dcq/anaconda3/include/python3.7m/pythread.h:97) [-Wdeprecated-declarations]
PyThread_set_key_value(key, tstate);
^
/home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include/pybind11/pybind11.h:1850:47: warning: ‘int PyThread_set_key_value(int, void*)’ is deprecated (declared at /home/dcq/anaconda3/include/python3.7m/pythread.h:97) [-Wdeprecated-declarations]
PyThread_set_key_value(key, tstate);
^
/usr/local/cuda/bin/nvcc -I/home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include -I/home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include/TH -I/home/dcq/anaconda3/lib/python3.7/site-packages/torch/lib/include/THC -I/usr/local/cuda/include -I/home/dcq/anaconda3/include/python3.7m -c cuda/grid_kernel.cu -o build/temp.linux-x86_64-3.7/cuda/grid_kernel.o -DTORCH_EXTENSION_NAME=grid_cuda -D_GLIBCXX_USE_CXX11_ABI=0 --compiler-options '-fPIC' -std=c++11
g++ -pthread -shared -L/home/dcq/anaconda3/lib -Wl,-rpath=/home/dcq/anaconda3/lib,--no-as-needed -L/home/dcq/anaconda3/lib -Wl,-rpath=/home/dcq/anaconda3/lib,--no-as-needed build/temp.linux-x86_64-3.7/cuda/grid.o build/temp.linux-x86_64-3.7/cuda/grid_kernel.o -L/usr/local/cuda/lib64 -L/home/dcq/anaconda3/lib -lcudart -lpython3.7m -o build/lib.linux-x86_64-3.7/grid_cuda.cpython-37m-x86_64-linux-gnu.so
copying build/lib.linux-x86_64-3.7/graclus_cpu.cpython-37m-x86_64-linux-gnu.so ->
copying build/lib.linux-x86_64-3.7/grid_cpu.cpython-37m-x86_64-linux-gnu.so ->
copying build/lib.linux-x86_64-3.7/graclus_cuda.cpython-37m-x86_64-linux-gnu.so ->
copying build/lib.linux-x86_64-3.7/grid_cuda.cpython-37m-x86_64-linux-gnu.so ->
====================================================== test session starts =======================================================
platform linux -- Python 3.7.0, pytest-3.10.0, py-1.6.0, pluggy-0.7.1
rootdir: /home/dcq/pypi-package/pytorch_cluster, inifile: setup.cfg
plugins: remotedata-0.3.0, openfiles-0.3.0, doctestplus-0.1.3, cov-2.6.0, arraydiff-0.2
collected 84 items
test/test_graclus.py Segmentation fault (core dumped)
The text was updated successfully, but these errors were encountered:
Hi, first thanks for your work, it's useful for me.
I try to install this in my environment, but the test fails
The error message is as follows
The text was updated successfully, but these errors were encountered: