Skip to content

Instantly share code, notes, and snippets.

@kjhenner
Created March 1, 2020 23:59
Show Gist options
  • Save kjhenner/7a2f18d3a2be799634950ab87ec33792 to your computer and use it in GitHub Desktop.
Save kjhenner/7a2f18d3a2be799634950ab87ec33792 to your computer and use it in GitHub Desktop.
running install
running bdist_egg
running egg_info
writing torch_cluster.egg-info/PKG-INFO
writing dependency_links to torch_cluster.egg-info/dependency_links.txt
writing requirements to torch_cluster.egg-info/requires.txt
writing top-level names to torch_cluster.egg-info/top_level.txt
reading manifest file 'torch_cluster.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'torch_cluster.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
running build_ext
building 'torch_cluster.graclus_cpu' extension
gcc -pthread -B /home/khenner/miniconda3/envs/pytorch/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/khenner/miniconda3/envs/pytorch/lib/python3.6/site-packages/torch/include -I/home/khenner/miniconda3/envs/pytorch/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -I/home/khenner/miniconda3/envs/pytorch/lib/python3.6/site-packages/torch/include/TH -I/home/khenner/miniconda3/envs/pytorch/lib/python3.6/site-packages/torch/include/THC -I/home/khenner/miniconda3/envs/pytorch/include/python3.6m -c cpu/graclus.cpp -o build/temp.linux-x86_64-3.6/cpu/graclus.o -DVERSION_GE_1_3 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=graclus_cpu -D_GLIBCXX_USE_CXX11_ABI=1 -std=c++11
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cpu/graclus.cpp: In function ‘at::Tensor graclus(at::Tensor, at::Tensor, int64_t)’:
cpu/graclus.cpp:10:39: error: expected primary-expression before ‘>’ token
auto row_data = row.DATA_PTR<int64_t>(), col_data = col.DATA_PTR<int64_t>();
^
cpu/graclus.cpp:10:41: error: expected primary-expression before ‘)’ token
auto row_data = row.DATA_PTR<int64_t>(), col_data = col.DATA_PTR<int64_t>();
^
cpu/graclus.cpp:13:41: error: expected primary-expression before ‘>’ token
auto perm_data = perm.DATA_PTR<int64_t>();
^
cpu/graclus.cpp:13:43: error: expected primary-expression before ‘)’ token
auto perm_data = perm.DATA_PTR<int64_t>();
^
cpu/graclus.cpp:16:47: error: expected primary-expression before ‘>’ token
auto cluster_data = cluster.DATA_PTR<int64_t>();
^
cpu/graclus.cpp:16:49: error: expected primary-expression before ‘)’ token
auto cluster_data = cluster.DATA_PTR<int64_t>();
^
cpu/graclus.cpp:27:16: error: ‘col_data’ was not declared in this scope
auto v = col_data[j];
^
cpu/graclus.cpp: In function ‘at::Tensor weighted_graclus(at::Tensor, at::Tensor, at::Tensor, int64_t)’:
cpu/graclus.cpp:45:39: error: expected primary-expression before ‘>’ token
auto row_data = row.DATA_PTR<int64_t>(), col_data = col.DATA_PTR<int64_t>();
^
cpu/graclus.cpp:45:41: error: expected primary-expression before ‘)’ token
auto row_data = row.DATA_PTR<int64_t>(), col_data = col.DATA_PTR<int64_t>();
^
cpu/graclus.cpp:48:41: error: expected primary-expression before ‘>’ token
auto perm_data = perm.DATA_PTR<int64_t>();
^
cpu/graclus.cpp:48:43: error: expected primary-expression before ‘)’ token
auto perm_data = perm.DATA_PTR<int64_t>();
^
cpu/graclus.cpp:51:47: error: expected primary-expression before ‘>’ token
auto cluster_data = cluster.DATA_PTR<int64_t>();
^
cpu/graclus.cpp:51:49: error: expected primary-expression before ‘)’ token
auto cluster_data = cluster.DATA_PTR<int64_t>();
^
In file included from /home/khenner/miniconda3/envs/pytorch/lib/python3.6/site-packages/torch/include/ATen/ATen.h:9:0,
from /home/khenner/miniconda3/envs/pytorch/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/khenner/miniconda3/envs/pytorch/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /home/khenner/miniconda3/envs/pytorch/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
from /home/khenner/miniconda3/envs/pytorch/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
from /home/khenner/miniconda3/envs/pytorch/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /home/khenner/miniconda3/envs/pytorch/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
from /home/khenner/miniconda3/envs/pytorch/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/all.h:4,
from /home/khenner/miniconda3/envs/pytorch/lib/python3.6/site-packages/torch/include/torch/extension.h:4,
from cpu/graclus.cpp:1:
cpu/graclus.cpp: In lambda function:
cpu/graclus.cpp:54:48: error: expected primary-expression before ‘>’ token
auto weight_data = weight.DATA_PTR<scalar_t>();
^
/home/khenner/miniconda3/envs/pytorch/lib/python3.6/site-packages/torch/include/ATen/Dispatch.h:12:12: note: in definition of macro ‘AT_PRIVATE_CASE_TYPE’
return __VA_ARGS__(); \
^
cpu/graclus.cpp:53:3: note: in expansion of macro ‘AT_DISPATCH_ALL_TYPES’
AT_DISPATCH_ALL_TYPES(weight.scalar_type(), "weighted_graclus", [&] {
^
cpu/graclus.cpp:54:50: error: expected primary-expression before ‘)’ token
auto weight_data = weight.DATA_PTR<scalar_t>();
^
/home/khenner/miniconda3/envs/pytorch/lib/python3.6/site-packages/torch/include/ATen/Dispatch.h:12:12: note: in definition of macro ‘AT_PRIVATE_CASE_TYPE’
return __VA_ARGS__(); \
^
cpu/graclus.cpp:53:3: note: in expansion of macro ‘AT_DISPATCH_ALL_TYPES’
AT_DISPATCH_ALL_TYPES(weight.scalar_type(), "weighted_graclus", [&] {
^
cpu/graclus.cpp:66:18: error: ‘col_data’ was not declared in this scope
auto v = col_data[j];
^
/home/khenner/miniconda3/envs/pytorch/lib/python3.6/site-packages/torch/include/ATen/Dispatch.h:12:12: note: in definition of macro ‘AT_PRIVATE_CASE_TYPE’
return __VA_ARGS__(); \
^
cpu/graclus.cpp:53:3: note: in expansion of macro ‘AT_DISPATCH_ALL_TYPES’
AT_DISPATCH_ALL_TYPES(weight.scalar_type(), "weighted_graclus", [&] {
^
cpu/graclus.cpp: In lambda function:
cpu/graclus.cpp:54:48: error: expected primary-expression before ‘>’ token
auto weight_data = weight.DATA_PTR<scalar_t>();
^
/home/khenner/miniconda3/envs/pytorch/lib/python3.6/site-packages/torch/include/ATen/Dispatch.h:12:12: note: in definition of macro ‘AT_PRIVATE_CASE_TYPE’
return __VA_ARGS__(); \
^
cpu/graclus.cpp:53:3: note: in expansion of macro ‘AT_DISPATCH_ALL_TYPES’
AT_DISPATCH_ALL_TYPES(weight.scalar_type(), "weighted_graclus", [&] {
^
cpu/graclus.cpp:54:50: error: expected primary-expression before ‘)’ token
auto weight_data = weight.DATA_PTR<scalar_t>();
^
/home/khenner/miniconda3/envs/pytorch/lib/python3.6/site-packages/torch/include/ATen/Dispatch.h:12:12: note: in definition of macro ‘AT_PRIVATE_CASE_TYPE’
return __VA_ARGS__(); \
^
cpu/graclus.cpp:53:3: note: in expansion of macro ‘AT_DISPATCH_ALL_TYPES’
AT_DISPATCH_ALL_TYPES(weight.scalar_type(), "weighted_graclus", [&] {
^
cpu/graclus.cpp:66:18: error: ‘col_data’ was not declared in this scope
auto v = col_data[j];
^
/home/khenner/miniconda3/envs/pytorch/lib/python3.6/site-packages/torch/include/ATen/Dispatch.h:12:12: note: in definition of macro ‘AT_PRIVATE_CASE_TYPE’
return __VA_ARGS__(); \
^
cpu/graclus.cpp:53:3: note: in expansion of macro ‘AT_DISPATCH_ALL_TYPES’
AT_DISPATCH_ALL_TYPES(weight.scalar_type(), "weighted_graclus", [&] {
^
cpu/graclus.cpp: In lambda function:
cpu/graclus.cpp:54:48: error: expected primary-expression before ‘>’ token
auto weight_data = weight.DATA_PTR<scalar_t>();
^
/home/khenner/miniconda3/envs/pytorch/lib/python3.6/site-packages/torch/include/ATen/Dispatch.h:12:12: note: in definition of macro ‘AT_PRIVATE_CASE_TYPE’
return __VA_ARGS__(); \
^
cpu/graclus.cpp:53:3: note: in expansion of macro ‘AT_DISPATCH_ALL_TYPES’
AT_DISPATCH_ALL_TYPES(weight.scalar_type(), "weighted_graclus", [&] {
^
cpu/graclus.cpp:54:50: error: expected primary-expression before ‘)’ token
auto weight_data = weight.DATA_PTR<scalar_t>();
^
/home/khenner/miniconda3/envs/pytorch/lib/python3.6/site-packages/torch/include/ATen/Dispatch.h:12:12: note: in definition of macro ‘AT_PRIVATE_CASE_TYPE’
return __VA_ARGS__(); \
^
cpu/graclus.cpp:53:3: note: in expansion of macro ‘AT_DISPATCH_ALL_TYPES’
AT_DISPATCH_ALL_TYPES(weight.scalar_type(), "weighted_graclus", [&] {
^
cpu/graclus.cpp:66:18: error: ‘col_data’ was not declared in this scope
auto v = col_data[j];
^
/home/khenner/miniconda3/envs/pytorch/lib/python3.6/site-packages/torch/include/ATen/Dispatch.h:12:12: note: in definition of macro ‘AT_PRIVATE_CASE_TYPE’
return __VA_ARGS__(); \
^
cpu/graclus.cpp:53:3: note: in expansion of macro ‘AT_DISPATCH_ALL_TYPES’
AT_DISPATCH_ALL_TYPES(weight.scalar_type(), "weighted_graclus", [&] {
^
cpu/graclus.cpp: In lambda function:
cpu/graclus.cpp:54:48: error: expected primary-expression before ‘>’ token
auto weight_data = weight.DATA_PTR<scalar_t>();
^
/home/khenner/miniconda3/envs/pytorch/lib/python3.6/site-packages/torch/include/ATen/Dispatch.h:12:12: note: in definition of macro ‘AT_PRIVATE_CASE_TYPE’
return __VA_ARGS__(); \
^
cpu/graclus.cpp:53:3: note: in expansion of macro ‘AT_DISPATCH_ALL_TYPES’
AT_DISPATCH_ALL_TYPES(weight.scalar_type(), "weighted_graclus", [&] {
^
cpu/graclus.cpp:54:50: error: expected primary-expression before ‘)’ token
auto weight_data = weight.DATA_PTR<scalar_t>();
^
/home/khenner/miniconda3/envs/pytorch/lib/python3.6/site-packages/torch/include/ATen/Dispatch.h:12:12: note: in definition of macro ‘AT_PRIVATE_CASE_TYPE’
return __VA_ARGS__(); \
^
cpu/graclus.cpp:53:3: note: in expansion of macro ‘AT_DISPATCH_ALL_TYPES’
AT_DISPATCH_ALL_TYPES(weight.scalar_type(), "weighted_graclus", [&] {
^
cpu/graclus.cpp:66:18: error: ‘col_data’ was not declared in this scope
auto v = col_data[j];
^
/home/khenner/miniconda3/envs/pytorch/lib/python3.6/site-packages/torch/include/ATen/Dispatch.h:12:12: note: in definition of macro ‘AT_PRIVATE_CASE_TYPE’
return __VA_ARGS__(); \
^
cpu/graclus.cpp:53:3: note: in expansion of macro ‘AT_DISPATCH_ALL_TYPES’
AT_DISPATCH_ALL_TYPES(weight.scalar_type(), "weighted_graclus", [&] {
^
cpu/graclus.cpp: In lambda function:
cpu/graclus.cpp:54:48: error: expected primary-expression before ‘>’ token
auto weight_data = weight.DATA_PTR<scalar_t>();
^
/home/khenner/miniconda3/envs/pytorch/lib/python3.6/site-packages/torch/include/ATen/Dispatch.h:12:12: note: in definition of macro ‘AT_PRIVATE_CASE_TYPE’
return __VA_ARGS__(); \
^
cpu/graclus.cpp:53:3: note: in expansion of macro ‘AT_DISPATCH_ALL_TYPES’
AT_DISPATCH_ALL_TYPES(weight.scalar_type(), "weighted_graclus", [&] {
^
cpu/graclus.cpp:54:50: error: expected primary-expression before ‘)’ token
auto weight_data = weight.DATA_PTR<scalar_t>();
^
/home/khenner/miniconda3/envs/pytorch/lib/python3.6/site-packages/torch/include/ATen/Dispatch.h:12:12: note: in definition of macro ‘AT_PRIVATE_CASE_TYPE’
return __VA_ARGS__(); \
^
cpu/graclus.cpp:53:3: note: in expansion of macro ‘AT_DISPATCH_ALL_TYPES’
AT_DISPATCH_ALL_TYPES(weight.scalar_type(), "weighted_graclus", [&] {
^
cpu/graclus.cpp:66:18: error: ‘col_data’ was not declared in this scope
auto v = col_data[j];
^
/home/khenner/miniconda3/envs/pytorch/lib/python3.6/site-packages/torch/include/ATen/Dispatch.h:12:12: note: in definition of macro ‘AT_PRIVATE_CASE_TYPE’
return __VA_ARGS__(); \
^
cpu/graclus.cpp:53:3: note: in expansion of macro ‘AT_DISPATCH_ALL_TYPES’
AT_DISPATCH_ALL_TYPES(weight.scalar_type(), "weighted_graclus", [&] {
^
cpu/graclus.cpp: In lambda function:
cpu/graclus.cpp:54:48: error: expected primary-expression before ‘>’ token
auto weight_data = weight.DATA_PTR<scalar_t>();
^
/home/khenner/miniconda3/envs/pytorch/lib/python3.6/site-packages/torch/include/ATen/Dispatch.h:12:12: note: in definition of macro ‘AT_PRIVATE_CASE_TYPE’
return __VA_ARGS__(); \
^
cpu/graclus.cpp:53:3: note: in expansion of macro ‘AT_DISPATCH_ALL_TYPES’
AT_DISPATCH_ALL_TYPES(weight.scalar_type(), "weighted_graclus", [&] {
^
cpu/graclus.cpp:54:50: error: expected primary-expression before ‘)’ token
auto weight_data = weight.DATA_PTR<scalar_t>();
^
/home/khenner/miniconda3/envs/pytorch/lib/python3.6/site-packages/torch/include/ATen/Dispatch.h:12:12: note: in definition of macro ‘AT_PRIVATE_CASE_TYPE’
return __VA_ARGS__(); \
^
cpu/graclus.cpp:53:3: note: in expansion of macro ‘AT_DISPATCH_ALL_TYPES’
AT_DISPATCH_ALL_TYPES(weight.scalar_type(), "weighted_graclus", [&] {
^
cpu/graclus.cpp:66:18: error: ‘col_data’ was not declared in this scope
auto v = col_data[j];
^
/home/khenner/miniconda3/envs/pytorch/lib/python3.6/site-packages/torch/include/ATen/Dispatch.h:12:12: note: in definition of macro ‘AT_PRIVATE_CASE_TYPE’
return __VA_ARGS__(); \
^
cpu/graclus.cpp:53:3: note: in expansion of macro ‘AT_DISPATCH_ALL_TYPES’
AT_DISPATCH_ALL_TYPES(weight.scalar_type(), "weighted_graclus", [&] {
^
cpu/graclus.cpp: In lambda function:
cpu/graclus.cpp:54:48: error: expected primary-expression before ‘>’ token
auto weight_data = weight.DATA_PTR<scalar_t>();
^
/home/khenner/miniconda3/envs/pytorch/lib/python3.6/site-packages/torch/include/ATen/Dispatch.h:12:12: note: in definition of macro ‘AT_PRIVATE_CASE_TYPE’
return __VA_ARGS__(); \
^
cpu/graclus.cpp:53:3: note: in expansion of macro ‘AT_DISPATCH_ALL_TYPES’
AT_DISPATCH_ALL_TYPES(weight.scalar_type(), "weighted_graclus", [&] {
^
cpu/graclus.cpp:54:50: error: expected primary-expression before ‘)’ token
auto weight_data = weight.DATA_PTR<scalar_t>();
^
/home/khenner/miniconda3/envs/pytorch/lib/python3.6/site-packages/torch/include/ATen/Dispatch.h:12:12: note: in definition of macro ‘AT_PRIVATE_CASE_TYPE’
return __VA_ARGS__(); \
^
cpu/graclus.cpp:53:3: note: in expansion of macro ‘AT_DISPATCH_ALL_TYPES’
AT_DISPATCH_ALL_TYPES(weight.scalar_type(), "weighted_graclus", [&] {
^
cpu/graclus.cpp:66:18: error: ‘col_data’ was not declared in this scope
auto v = col_data[j];
^
/home/khenner/miniconda3/envs/pytorch/lib/python3.6/site-packages/torch/include/ATen/Dispatch.h:12:12: note: in definition of macro ‘AT_PRIVATE_CASE_TYPE’
return __VA_ARGS__(); \
^
cpu/graclus.cpp:53:3: note: in expansion of macro ‘AT_DISPATCH_ALL_TYPES’
AT_DISPATCH_ALL_TYPES(weight.scalar_type(), "weighted_graclus", [&] {
^
error: command 'gcc' failed with exit status 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment