On Apple M1 Chip
See original GitHub issueHi, I’m trying to install this repo from the source on an Apple MacBook air M1, but the clang generates egg_info linked to x86_64 but not arm64, how can I modify any configuration to make it link to arm64 relevant libraries? Thanks in advance (sorry for the very long text below).
the compilation gives:
(pytorch) fengshi:Downloads% git clone https://github.com/rusty1s/pytorch_scatter.git
Cloning into 'pytorch_scatter'...
remote: Enumerating objects: 35, done.
remote: Counting objects: 100% (35/35), done.
remote: Compressing objects: 100% (24/24), done.
remote: Total 4043 (delta 17), reused 24 (delta 11), pack-reused 4008
Receiving objects: 100% (4043/4043), 605.77 KiB | 1.86 MiB/s, done.
Resolving deltas: 100% (2670/2670), done.
(pytorch) fengshi:Downloads% cd pytorch_scatter
(pytorch) fengshi:pytorch_scatter% python setup.py install
running install
running bdist_egg
running egg_info
creating torch_scatter.egg-info
writing torch_scatter.egg-info/PKG-INFO
writing dependency_links to torch_scatter.egg-info/dependency_links.txt
writing requirements to torch_scatter.egg-info/requires.txt
writing top-level names to torch_scatter.egg-info/top_level.txt
writing manifest file 'torch_scatter.egg-info/SOURCES.txt'
reading manifest file 'torch_scatter.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'torch_scatter.egg-info/SOURCES.txt'
installing library code to build/bdist.macosx-10.9-x86_64/egg
running install_lib
running build_py
creating build
creating build/lib.macosx-10.9-x86_64-3.8
creating build/lib.macosx-10.9-x86_64-3.8/test
copying test/test_zero_tensors.py -> build/lib.macosx-10.9-x86_64-3.8/test
copying test/__init__.py -> build/lib.macosx-10.9-x86_64-3.8/test
copying test/test_broadcasting.py -> build/lib.macosx-10.9-x86_64-3.8/test
copying test/test_multi_gpu.py -> build/lib.macosx-10.9-x86_64-3.8/test
copying test/test_scatter.py -> build/lib.macosx-10.9-x86_64-3.8/test
copying test/test_gather.py -> build/lib.macosx-10.9-x86_64-3.8/test
copying test/utils.py -> build/lib.macosx-10.9-x86_64-3.8/test
copying test/test_segment.py -> build/lib.macosx-10.9-x86_64-3.8/test
creating build/lib.macosx-10.9-x86_64-3.8/torch_scatter
copying torch_scatter/placeholder.py -> build/lib.macosx-10.9-x86_64-3.8/torch_scatter
copying torch_scatter/__init__.py -> build/lib.macosx-10.9-x86_64-3.8/torch_scatter
copying torch_scatter/segment_csr.py -> build/lib.macosx-10.9-x86_64-3.8/torch_scatter
copying torch_scatter/segment_coo.py -> build/lib.macosx-10.9-x86_64-3.8/torch_scatter
copying torch_scatter/utils.py -> build/lib.macosx-10.9-x86_64-3.8/torch_scatter
copying torch_scatter/scatter.py -> build/lib.macosx-10.9-x86_64-3.8/torch_scatter
creating build/lib.macosx-10.9-x86_64-3.8/torch_scatter/composite
copying torch_scatter/composite/std.py -> build/lib.macosx-10.9-x86_64-3.8/torch_scatter/composite
copying torch_scatter/composite/__init__.py -> build/lib.macosx-10.9-x86_64-3.8/torch_scatter/composite
copying torch_scatter/composite/logsumexp.py -> build/lib.macosx-10.9-x86_64-3.8/torch_scatter/composite
copying torch_scatter/composite/softmax.py -> build/lib.macosx-10.9-x86_64-3.8/torch_scatter/composite
running build_ext
building 'torch_scatter._scatter' extension
creating build/temp.macosx-10.9-x86_64-3.8
creating build/temp.macosx-10.9-x86_64-3.8/Users
creating build/temp.macosx-10.9-x86_64-3.8/Users/fengshi
creating build/temp.macosx-10.9-x86_64-3.8/Users/fengshi/Downloads
creating build/temp.macosx-10.9-x86_64-3.8/Users/fengshi/Downloads/pytorch_scatter
creating build/temp.macosx-10.9-x86_64-3.8/Users/fengshi/Downloads/pytorch_scatter/csrc
creating build/temp.macosx-10.9-x86_64-3.8/Users/fengshi/Downloads/pytorch_scatter/csrc/cpu
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/fengshi/miniforge3/envs/pytorch/include -arch x86_64 -I/Users/fengshi/miniforge3/envs/pytorch/include -arch x86_64 -I/Users/fengshi/Downloads/pytorch_scatter/csrc -I/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include -I/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/TH -I/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/THC -I/Users/fengshi/miniforge3/envs/pytorch/include/python3.8 -c /Users/fengshi/Downloads/pytorch_scatter/csrc/scatter.cpp -o build/temp.macosx-10.9-x86_64-3.8/Users/fengshi/Downloads/pytorch_scatter/csrc/scatter.o -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE="_clang" -DPYBIND11_STDLIB="_libcpp" -DPYBIND11_BUILD_ABI="_cxxabi1002" -DTORCH_EXTENSION_NAME=_scatter -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14
In file included from /Users/fengshi/Downloads/pytorch_scatter/csrc/scatter.cpp:2:
In file included from /Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/script.h:9:
/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/custom_function.h:279:19: warning: comparison of
integers of different signs: 'unsigned long' and 'int' [-Wsign-compare]
if (num_outputs > num_forward_inputs) {
~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~
/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/custom_function.h:205:40: note: in instantiation of
member function 'torch::autograd::CppNode<ScatterSum>::apply' requested here
std::shared_ptr<CppNode<T>> node(new CppNode<T>(), deleteNode);
^
/Users/fengshi/Downloads/pytorch_scatter/csrc/scatter.cpp:197:22: note: in instantiation of function template specialization
'torch::autograd::Function<ScatterSum>::apply<ScatterSum, at::Tensor &, at::Tensor &, long long &, c10::optional<at::Tensor> &, c10::optional<long
long> &>' requested here
return ScatterSum::apply(src, index, dim, optional_out, dim_size)[0];
^
In file included from /Users/fengshi/Downloads/pytorch_scatter/csrc/scatter.cpp:2:
In file included from /Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/script.h:9:
/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/custom_function.h:290:19: warning: comparison of
integers of different signs: 'unsigned long' and 'int' [-Wsign-compare]
if (num_outputs != num_forward_inputs) {
~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~
/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/custom_function.h:300:21: warning: comparison of
integers of different signs: 'int' and 'unsigned long' [-Wsign-compare]
for (int i = 0; i < num_outputs; ++i) {
~ ^ ~~~~~~~~~~~
/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/custom_function.h:279:19: warning: comparison of
integers of different signs: 'unsigned long' and 'int' [-Wsign-compare]
if (num_outputs > num_forward_inputs) {
~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~
/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/custom_function.h:205:40: note: in instantiation of
member function 'torch::autograd::CppNode<ScatterMean>::apply' requested here
std::shared_ptr<CppNode<T>> node(new CppNode<T>(), deleteNode);
^
/Users/fengshi/Downloads/pytorch_scatter/csrc/scatter.cpp:203:23: note: in instantiation of function template specialization
'torch::autograd::Function<ScatterMean>::apply<ScatterMean, at::Tensor &, at::Tensor &, long long &, c10::optional<at::Tensor> &, c10::optional<long
long> &>' requested here
return ScatterMean::apply(src, index, dim, optional_out, dim_size)[0];
^
In file included from /Users/fengshi/Downloads/pytorch_scatter/csrc/scatter.cpp:2:
In file included from /Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/script.h:9:
/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/custom_function.h:290:19: warning: comparison of
integers of different signs: 'unsigned long' and 'int' [-Wsign-compare]
if (num_outputs != num_forward_inputs) {
~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~
/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/custom_function.h:300:21: warning: comparison of
integers of different signs: 'int' and 'unsigned long' [-Wsign-compare]
for (int i = 0; i < num_outputs; ++i) {
~ ^ ~~~~~~~~~~~
/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/custom_function.h:279:19: warning: comparison of
integers of different signs: 'unsigned long' and 'int' [-Wsign-compare]
if (num_outputs > num_forward_inputs) {
~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~
/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/custom_function.h:205:40: note: in instantiation of
member function 'torch::autograd::CppNode<ScatterMin>::apply' requested here
std::shared_ptr<CppNode<T>> node(new CppNode<T>(), deleteNode);
^
/Users/fengshi/Downloads/pytorch_scatter/csrc/scatter.cpp:210:29: note: in instantiation of function template specialization
'torch::autograd::Function<ScatterMin>::apply<ScatterMin, at::Tensor &, at::Tensor &, long long &, c10::optional<at::Tensor> &, c10::optional<long
long> &>' requested here
auto result = ScatterMin::apply(src, index, dim, optional_out, dim_size);
^
In file included from /Users/fengshi/Downloads/pytorch_scatter/csrc/scatter.cpp:2:
In file included from /Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/script.h:9:
/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/custom_function.h:290:19: warning: comparison of
integers of different signs: 'unsigned long' and 'int' [-Wsign-compare]
if (num_outputs != num_forward_inputs) {
~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~
/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/custom_function.h:300:21: warning: comparison of
integers of different signs: 'int' and 'unsigned long' [-Wsign-compare]
for (int i = 0; i < num_outputs; ++i) {
~ ^ ~~~~~~~~~~~
/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/custom_function.h:279:19: warning: comparison of
integers of different signs: 'unsigned long' and 'int' [-Wsign-compare]
if (num_outputs > num_forward_inputs) {
~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~
/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/custom_function.h:205:40: note: in instantiation of
member function 'torch::autograd::CppNode<ScatterMax>::apply' requested here
std::shared_ptr<CppNode<T>> node(new CppNode<T>(), deleteNode);
^
/Users/fengshi/Downloads/pytorch_scatter/csrc/scatter.cpp:218:29: note: in instantiation of function template specialization
'torch::autograd::Function<ScatterMax>::apply<ScatterMax, at::Tensor &, at::Tensor &, long long &, c10::optional<at::Tensor> &, c10::optional<long
long> &>' requested here
auto result = ScatterMax::apply(src, index, dim, optional_out, dim_size);
^
In file included from /Users/fengshi/Downloads/pytorch_scatter/csrc/scatter.cpp:2:
In file included from /Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/script.h:9:
/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/custom_function.h:290:19: warning: comparison of
integers of different signs: 'unsigned long' and 'int' [-Wsign-compare]
if (num_outputs != num_forward_inputs) {
~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~
/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/custom_function.h:300:21: warning: comparison of
integers of different signs: 'int' and 'unsigned long' [-Wsign-compare]
for (int i = 0; i < num_outputs; ++i) {
~ ^ ~~~~~~~~~~~
12 warnings generated.
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/fengshi/miniforge3/envs/pytorch/include -arch x86_64 -I/Users/fengshi/miniforge3/envs/pytorch/include -arch x86_64 -I/Users/fengshi/Downloads/pytorch_scatter/csrc -I/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include -I/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/TH -I/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/THC -I/Users/fengshi/miniforge3/envs/pytorch/include/python3.8 -c /Users/fengshi/Downloads/pytorch_scatter/csrc/cpu/scatter_cpu.cpp -o build/temp.macosx-10.9-x86_64-3.8/Users/fengshi/Downloads/pytorch_scatter/csrc/cpu/scatter_cpu.o -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE="_clang" -DPYBIND11_STDLIB="_libcpp" -DPYBIND11_BUILD_ABI="_cxxabi1002" -DTORCH_EXTENSION_NAME=_scatter -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14
g++ -bundle -undefined dynamic_lookup -L/Users/fengshi/miniforge3/envs/pytorch/lib -arch x86_64 -L/Users/fengshi/miniforge3/envs/pytorch/lib -arch x86_64 -arch x86_64 build/temp.macosx-10.9-x86_64-3.8/Users/fengshi/Downloads/pytorch_scatter/csrc/scatter.o build/temp.macosx-10.9-x86_64-3.8/Users/fengshi/Downloads/pytorch_scatter/csrc/cpu/scatter_cpu.o -L/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/lib -lc10 -ltorch -ltorch_cpu -ltorch_python -o build/lib.macosx-10.9-x86_64-3.8/torch_scatter/_scatter.so
ld: warning: ignoring file /Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/lib/libc10.dylib, building for macOS-x86_64 but attempting to link with file built for macOS-arm64
ld: warning: ignoring file /Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/lib/libtorch.dylib, building for macOS-x86_64 but attempting to link with file built for macOS-arm64
ld: warning: ignoring file /Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/lib/libtorch_cpu.dylib, building for macOS-x86_64 but attempting to link with file built for macOS-arm64
ld: warning: ignoring file /Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/lib/libtorch_python.dylib, building for macOS-x86_64 but attempting to link with file built for macOS-arm64
ld: warning: ignoring file /Users/fengshi/miniforge3/envs/pytorch/lib/libc++.dylib, building for macOS-x86_64 but attempting to link with file built for macOS-arm64
building 'torch_scatter._version' extension
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/fengshi/miniforge3/envs/pytorch/include -arch x86_64 -I/Users/fengshi/miniforge3/envs/pytorch/include -arch x86_64 -I/Users/fengshi/Downloads/pytorch_scatter/csrc -I/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include -I/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/TH -I/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/THC -I/Users/fengshi/miniforge3/envs/pytorch/include/python3.8 -c /Users/fengshi/Downloads/pytorch_scatter/csrc/version.cpp -o build/temp.macosx-10.9-x86_64-3.8/Users/fengshi/Downloads/pytorch_scatter/csrc/version.o -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE="_clang" -DPYBIND11_STDLIB="_libcpp" -DPYBIND11_BUILD_ABI="_cxxabi1002" -DTORCH_EXTENSION_NAME=_version -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14
g++ -bundle -undefined dynamic_lookup -L/Users/fengshi/miniforge3/envs/pytorch/lib -arch x86_64 -L/Users/fengshi/miniforge3/envs/pytorch/lib -arch x86_64 -arch x86_64 build/temp.macosx-10.9-x86_64-3.8/Users/fengshi/Downloads/pytorch_scatter/csrc/version.o -L/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/lib -lc10 -ltorch -ltorch_cpu -ltorch_python -o build/lib.macosx-10.9-x86_64-3.8/torch_scatter/_version.so
ld: warning: ignoring file /Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/lib/libc10.dylib, building for macOS-x86_64 but attempting to link with file built for macOS-arm64
ld: warning: ignoring file /Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/lib/libtorch.dylib, building for macOS-x86_64 but attempting to link with file built for macOS-arm64
ld: warning: ignoring file /Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/lib/libtorch_cpu.dylib, building for macOS-x86_64 but attempting to link with file built for macOS-arm64
ld: warning: ignoring file /Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/lib/libtorch_python.dylib, building for macOS-x86_64 but attempting to link with file built for macOS-arm64
ld: warning: ignoring file /Users/fengshi/miniforge3/envs/pytorch/lib/libc++.dylib, building for macOS-x86_64 but attempting to link with file built for macOS-arm64
building 'torch_scatter._segment_csr' extension
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/fengshi/miniforge3/envs/pytorch/include -arch x86_64 -I/Users/fengshi/miniforge3/envs/pytorch/include -arch x86_64 -I/Users/fengshi/Downloads/pytorch_scatter/csrc -I/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include -I/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/TH -I/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/THC -I/Users/fengshi/miniforge3/envs/pytorch/include/python3.8 -c /Users/fengshi/Downloads/pytorch_scatter/csrc/segment_csr.cpp -o build/temp.macosx-10.9-x86_64-3.8/Users/fengshi/Downloads/pytorch_scatter/csrc/segment_csr.o -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE="_clang" -DPYBIND11_STDLIB="_libcpp" -DPYBIND11_BUILD_ABI="_cxxabi1002" -DTORCH_EXTENSION_NAME=_segment_csr -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14
In file included from /Users/fengshi/Downloads/pytorch_scatter/csrc/segment_csr.cpp:2:
In file included from /Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/script.h:9:
/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/custom_function.h:279:19: warning: comparison of
integers of different signs: 'unsigned long' and 'int' [-Wsign-compare]
if (num_outputs > num_forward_inputs) {
~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~
/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/custom_function.h:205:40: note: in instantiation of
member function 'torch::autograd::CppNode<SegmentSumCSR>::apply' requested here
std::shared_ptr<CppNode<T>> node(new CppNode<T>(), deleteNode);
^
/Users/fengshi/Downloads/pytorch_scatter/csrc/segment_csr.cpp:193:25: note: in instantiation of function template specialization
'torch::autograd::Function<SegmentSumCSR>::apply<SegmentSumCSR, at::Tensor &, at::Tensor &, c10::optional<at::Tensor> &>' requested here
return SegmentSumCSR::apply(src, indptr, optional_out)[0];
^
In file included from /Users/fengshi/Downloads/pytorch_scatter/csrc/segment_csr.cpp:2:
In file included from /Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/script.h:9:
/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/custom_function.h:290:19: warning: comparison of
integers of different signs: 'unsigned long' and 'int' [-Wsign-compare]
if (num_outputs != num_forward_inputs) {
~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~
/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/custom_function.h:300:21: warning: comparison of
integers of different signs: 'int' and 'unsigned long' [-Wsign-compare]
for (int i = 0; i < num_outputs; ++i) {
~ ^ ~~~~~~~~~~~
/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/custom_function.h:279:19: warning: comparison of
integers of different signs: 'unsigned long' and 'int' [-Wsign-compare]
if (num_outputs > num_forward_inputs) {
~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~
/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/custom_function.h:205:40: note: in instantiation of
member function 'torch::autograd::CppNode<SegmentMeanCSR>::apply' requested here
std::shared_ptr<CppNode<T>> node(new CppNode<T>(), deleteNode);
^
/Users/fengshi/Downloads/pytorch_scatter/csrc/segment_csr.cpp:198:26: note: in instantiation of function template specialization
'torch::autograd::Function<SegmentMeanCSR>::apply<SegmentMeanCSR, at::Tensor &, at::Tensor &, c10::optional<at::Tensor> &>' requested here
return SegmentMeanCSR::apply(src, indptr, optional_out)[0];
^
In file included from /Users/fengshi/Downloads/pytorch_scatter/csrc/segment_csr.cpp:2:
In file included from /Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/script.h:9:
/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/custom_function.h:290:19: warning: comparison of
integers of different signs: 'unsigned long' and 'int' [-Wsign-compare]
if (num_outputs != num_forward_inputs) {
~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~
/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/custom_function.h:300:21: warning: comparison of
integers of different signs: 'int' and 'unsigned long' [-Wsign-compare]
for (int i = 0; i < num_outputs; ++i) {
~ ^ ~~~~~~~~~~~
/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/custom_function.h:279:19: warning: comparison of
integers of different signs: 'unsigned long' and 'int' [-Wsign-compare]
if (num_outputs > num_forward_inputs) {
~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~
/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/custom_function.h:205:40: note: in instantiation of
member function 'torch::autograd::CppNode<SegmentMinCSR>::apply' requested here
std::shared_ptr<CppNode<T>> node(new CppNode<T>(), deleteNode);
^
/Users/fengshi/Downloads/pytorch_scatter/csrc/segment_csr.cpp:204:32: note: in instantiation of function template specialization
'torch::autograd::Function<SegmentMinCSR>::apply<SegmentMinCSR, at::Tensor &, at::Tensor &, c10::optional<at::Tensor> &>' requested here
auto result = SegmentMinCSR::apply(src, indptr, optional_out);
^
In file included from /Users/fengshi/Downloads/pytorch_scatter/csrc/segment_csr.cpp:2:
In file included from /Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/script.h:9:
/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/custom_function.h:290:19: warning: comparison of
integers of different signs: 'unsigned long' and 'int' [-Wsign-compare]
if (num_outputs != num_forward_inputs) {
~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~
/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/custom_function.h:300:21: warning: comparison of
integers of different signs: 'int' and 'unsigned long' [-Wsign-compare]
for (int i = 0; i < num_outputs; ++i) {
~ ^ ~~~~~~~~~~~
/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/custom_function.h:279:19: warning: comparison of
integers of different signs: 'unsigned long' and 'int' [-Wsign-compare]
if (num_outputs > num_forward_inputs) {
~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~
/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/custom_function.h:205:40: note: in instantiation of
member function 'torch::autograd::CppNode<SegmentMaxCSR>::apply' requested here
std::shared_ptr<CppNode<T>> node(new CppNode<T>(), deleteNode);
^
/Users/fengshi/Downloads/pytorch_scatter/csrc/segment_csr.cpp:211:32: note: in instantiation of function template specialization
'torch::autograd::Function<SegmentMaxCSR>::apply<SegmentMaxCSR, at::Tensor &, at::Tensor &, c10::optional<at::Tensor> &>' requested here
auto result = SegmentMaxCSR::apply(src, indptr, optional_out);
^
In file included from /Users/fengshi/Downloads/pytorch_scatter/csrc/segment_csr.cpp:2:
In file included from /Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/script.h:9:
/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/custom_function.h:290:19: warning: comparison of
integers of different signs: 'unsigned long' and 'int' [-Wsign-compare]
if (num_outputs != num_forward_inputs) {
~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~
/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/custom_function.h:300:21: warning: comparison of
integers of different signs: 'int' and 'unsigned long' [-Wsign-compare]
for (int i = 0; i < num_outputs; ++i) {
~ ^ ~~~~~~~~~~~
/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/custom_function.h:279:19: warning: comparison of
integers of different signs: 'unsigned long' and 'int' [-Wsign-compare]
if (num_outputs > num_forward_inputs) {
~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~
/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/custom_function.h:205:40: note: in instantiation of
member function 'torch::autograd::CppNode<GatherCSR>::apply' requested here
std::shared_ptr<CppNode<T>> node(new CppNode<T>(), deleteNode);
^
/Users/fengshi/Downloads/pytorch_scatter/csrc/segment_csr.cpp:217:21: note: in instantiation of function template specialization
'torch::autograd::Function<GatherCSR>::apply<GatherCSR, at::Tensor &, at::Tensor &, c10::optional<at::Tensor> &>' requested here
return GatherCSR::apply(src, indptr, optional_out)[0];
^
In file included from /Users/fengshi/Downloads/pytorch_scatter/csrc/segment_csr.cpp:2:
In file included from /Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/script.h:9:
/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/custom_function.h:290:19: warning: comparison of
integers of different signs: 'unsigned long' and 'int' [-Wsign-compare]
if (num_outputs != num_forward_inputs) {
~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~
/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/custom_function.h:300:21: warning: comparison of
integers of different signs: 'int' and 'unsigned long' [-Wsign-compare]
for (int i = 0; i < num_outputs; ++i) {
~ ^ ~~~~~~~~~~~
15 warnings generated.
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/fengshi/miniforge3/envs/pytorch/include -arch x86_64 -I/Users/fengshi/miniforge3/envs/pytorch/include -arch x86_64 -I/Users/fengshi/Downloads/pytorch_scatter/csrc -I/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include -I/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/TH -I/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/THC -I/Users/fengshi/miniforge3/envs/pytorch/include/python3.8 -c /Users/fengshi/Downloads/pytorch_scatter/csrc/cpu/segment_csr_cpu.cpp -o build/temp.macosx-10.9-x86_64-3.8/Users/fengshi/Downloads/pytorch_scatter/csrc/cpu/segment_csr_cpu.o -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE="_clang" -DPYBIND11_STDLIB="_libcpp" -DPYBIND11_BUILD_ABI="_cxxabi1002" -DTORCH_EXTENSION_NAME=_segment_csr -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14
g++ -bundle -undefined dynamic_lookup -L/Users/fengshi/miniforge3/envs/pytorch/lib -arch x86_64 -L/Users/fengshi/miniforge3/envs/pytorch/lib -arch x86_64 -arch x86_64 build/temp.macosx-10.9-x86_64-3.8/Users/fengshi/Downloads/pytorch_scatter/csrc/segment_csr.o build/temp.macosx-10.9-x86_64-3.8/Users/fengshi/Downloads/pytorch_scatter/csrc/cpu/segment_csr_cpu.o -L/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/lib -lc10 -ltorch -ltorch_cpu -ltorch_python -o build/lib.macosx-10.9-x86_64-3.8/torch_scatter/_segment_csr.so
ld: warning: ignoring file /Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/lib/libc10.dylib, building for macOS-x86_64 but attempting to link with file built for macOS-arm64
ld: warning: ignoring file /Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/lib/libtorch.dylib, building for macOS-x86_64 but attempting to link with file built for macOS-arm64
ld: warning: ignoring file /Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/lib/libtorch_cpu.dylib, building for macOS-x86_64 but attempting to link with file built for macOS-arm64
ld: warning: ignoring file /Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/lib/libtorch_python.dylib, building for macOS-x86_64 but attempting to link with file built for macOS-arm64
ld: warning: ignoring file /Users/fengshi/miniforge3/envs/pytorch/lib/libc++.dylib, building for macOS-x86_64 but attempting to link with file built for macOS-arm64
building 'torch_scatter._segment_coo' extension
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/fengshi/miniforge3/envs/pytorch/include -arch x86_64 -I/Users/fengshi/miniforge3/envs/pytorch/include -arch x86_64 -I/Users/fengshi/Downloads/pytorch_scatter/csrc -I/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include -I/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/TH -I/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/THC -I/Users/fengshi/miniforge3/envs/pytorch/include/python3.8 -c /Users/fengshi/Downloads/pytorch_scatter/csrc/segment_coo.cpp -o build/temp.macosx-10.9-x86_64-3.8/Users/fengshi/Downloads/pytorch_scatter/csrc/segment_coo.o -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE="_clang" -DPYBIND11_STDLIB="_libcpp" -DPYBIND11_BUILD_ABI="_cxxabi1002" -DTORCH_EXTENSION_NAME=_segment_coo -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14
In file included from /Users/fengshi/Downloads/pytorch_scatter/csrc/segment_coo.cpp:2:
In file included from /Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/script.h:9:
/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/custom_function.h:279:19: warning: comparison of
integers of different signs: 'unsigned long' and 'int' [-Wsign-compare]
if (num_outputs > num_forward_inputs) {
~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~
/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/custom_function.h:205:40: note: in instantiation of
member function 'torch::autograd::CppNode<SegmentSumCOO>::apply' requested here
std::shared_ptr<CppNode<T>> node(new CppNode<T>(), deleteNode);
^
/Users/fengshi/Downloads/pytorch_scatter/csrc/segment_coo.cpp:197:25: note: in instantiation of function template specialization
'torch::autograd::Function<SegmentSumCOO>::apply<SegmentSumCOO, at::Tensor &, at::Tensor &, c10::optional<at::Tensor> &, c10::optional<long long> &>'
requested here
return SegmentSumCOO::apply(src, index, optional_out, dim_size)[0];
^
In file included from /Users/fengshi/Downloads/pytorch_scatter/csrc/segment_coo.cpp:2:
In file included from /Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/script.h:9:
/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/custom_function.h:290:19: warning: comparison of
integers of different signs: 'unsigned long' and 'int' [-Wsign-compare]
if (num_outputs != num_forward_inputs) {
~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~
/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/custom_function.h:300:21: warning: comparison of
integers of different signs: 'int' and 'unsigned long' [-Wsign-compare]
for (int i = 0; i < num_outputs; ++i) {
~ ^ ~~~~~~~~~~~
/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/custom_function.h:279:19: warning: comparison of
integers of different signs: 'unsigned long' and 'int' [-Wsign-compare]
if (num_outputs > num_forward_inputs) {
~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~
/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/custom_function.h:205:40: note: in instantiation of
member function 'torch::autograd::CppNode<SegmentMeanCOO>::apply' requested here
std::shared_ptr<CppNode<T>> node(new CppNode<T>(), deleteNode);
^
/Users/fengshi/Downloads/pytorch_scatter/csrc/segment_coo.cpp:203:26: note: in instantiation of function template specialization
'torch::autograd::Function<SegmentMeanCOO>::apply<SegmentMeanCOO, at::Tensor &, at::Tensor &, c10::optional<at::Tensor> &, c10::optional<long long>
&>' requested here
return SegmentMeanCOO::apply(src, index, optional_out, dim_size)[0];
^
In file included from /Users/fengshi/Downloads/pytorch_scatter/csrc/segment_coo.cpp:2:
In file included from /Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/script.h:9:
/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/custom_function.h:290:19: warning: comparison of
integers of different signs: 'unsigned long' and 'int' [-Wsign-compare]
if (num_outputs != num_forward_inputs) {
~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~
/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/custom_function.h:300:21: warning: comparison of
integers of different signs: 'int' and 'unsigned long' [-Wsign-compare]
for (int i = 0; i < num_outputs; ++i) {
~ ^ ~~~~~~~~~~~
/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/custom_function.h:279:19: warning: comparison of
integers of different signs: 'unsigned long' and 'int' [-Wsign-compare]
if (num_outputs > num_forward_inputs) {
~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~
/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/custom_function.h:205:40: note: in instantiation of
member function 'torch::autograd::CppNode<SegmentMinCOO>::apply' requested here
std::shared_ptr<CppNode<T>> node(new CppNode<T>(), deleteNode);
^
/Users/fengshi/Downloads/pytorch_scatter/csrc/segment_coo.cpp:210:32: note: in instantiation of function template specialization
'torch::autograd::Function<SegmentMinCOO>::apply<SegmentMinCOO, at::Tensor &, at::Tensor &, c10::optional<at::Tensor> &, c10::optional<long long> &>'
requested here
auto result = SegmentMinCOO::apply(src, index, optional_out, dim_size);
^
In file included from /Users/fengshi/Downloads/pytorch_scatter/csrc/segment_coo.cpp:2:
In file included from /Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/script.h:9:
/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/custom_function.h:290:19: warning: comparison of
integers of different signs: 'unsigned long' and 'int' [-Wsign-compare]
if (num_outputs != num_forward_inputs) {
~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~
/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/custom_function.h:300:21: warning: comparison of
integers of different signs: 'int' and 'unsigned long' [-Wsign-compare]
for (int i = 0; i < num_outputs; ++i) {
~ ^ ~~~~~~~~~~~
/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/custom_function.h:279:19: warning: comparison of
integers of different signs: 'unsigned long' and 'int' [-Wsign-compare]
if (num_outputs > num_forward_inputs) {
~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~
/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/custom_function.h:205:40: note: in instantiation of
member function 'torch::autograd::CppNode<SegmentMaxCOO>::apply' requested here
std::shared_ptr<CppNode<T>> node(new CppNode<T>(), deleteNode);
^
/Users/fengshi/Downloads/pytorch_scatter/csrc/segment_coo.cpp:218:32: note: in instantiation of function template specialization
'torch::autograd::Function<SegmentMaxCOO>::apply<SegmentMaxCOO, at::Tensor &, at::Tensor &, c10::optional<at::Tensor> &, c10::optional<long long> &>'
requested here
auto result = SegmentMaxCOO::apply(src, index, optional_out, dim_size);
^
In file included from /Users/fengshi/Downloads/pytorch_scatter/csrc/segment_coo.cpp:2:
In file included from /Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/script.h:9:
/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/custom_function.h:290:19: warning: comparison of
integers of different signs: 'unsigned long' and 'int' [-Wsign-compare]
if (num_outputs != num_forward_inputs) {
~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~
/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/custom_function.h:300:21: warning: comparison of
integers of different signs: 'int' and 'unsigned long' [-Wsign-compare]
for (int i = 0; i < num_outputs; ++i) {
~ ^ ~~~~~~~~~~~
/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/custom_function.h:279:19: warning: comparison of
integers of different signs: 'unsigned long' and 'int' [-Wsign-compare]
if (num_outputs > num_forward_inputs) {
~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~
/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/custom_function.h:205:40: note: in instantiation of
member function 'torch::autograd::CppNode<GatherCOO>::apply' requested here
std::shared_ptr<CppNode<T>> node(new CppNode<T>(), deleteNode);
^
/Users/fengshi/Downloads/pytorch_scatter/csrc/segment_coo.cpp:224:21: note: in instantiation of function template specialization
'torch::autograd::Function<GatherCOO>::apply<GatherCOO, at::Tensor &, at::Tensor &, c10::optional<at::Tensor> &>' requested here
return GatherCOO::apply(src, index, optional_out)[0];
^
In file included from /Users/fengshi/Downloads/pytorch_scatter/csrc/segment_coo.cpp:2:
In file included from /Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/script.h:9:
/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/custom_function.h:290:19: warning: comparison of
integers of different signs: 'unsigned long' and 'int' [-Wsign-compare]
if (num_outputs != num_forward_inputs) {
~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~
/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/custom_function.h:300:21: warning: comparison of
integers of different signs: 'int' and 'unsigned long' [-Wsign-compare]
for (int i = 0; i < num_outputs; ++i) {
~ ^ ~~~~~~~~~~~
15 warnings generated.
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/fengshi/miniforge3/envs/pytorch/include -arch x86_64 -I/Users/fengshi/miniforge3/envs/pytorch/include -arch x86_64 -I/Users/fengshi/Downloads/pytorch_scatter/csrc -I/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include -I/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/TH -I/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/THC -I/Users/fengshi/miniforge3/envs/pytorch/include/python3.8 -c /Users/fengshi/Downloads/pytorch_scatter/csrc/cpu/segment_coo_cpu.cpp -o build/temp.macosx-10.9-x86_64-3.8/Users/fengshi/Downloads/pytorch_scatter/csrc/cpu/segment_coo_cpu.o -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE="_clang" -DPYBIND11_STDLIB="_libcpp" -DPYBIND11_BUILD_ABI="_cxxabi1002" -DTORCH_EXTENSION_NAME=_segment_coo -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14
g++ -bundle -undefined dynamic_lookup -L/Users/fengshi/miniforge3/envs/pytorch/lib -arch x86_64 -L/Users/fengshi/miniforge3/envs/pytorch/lib -arch x86_64 -arch x86_64 build/temp.macosx-10.9-x86_64-3.8/Users/fengshi/Downloads/pytorch_scatter/csrc/segment_coo.o build/temp.macosx-10.9-x86_64-3.8/Users/fengshi/Downloads/pytorch_scatter/csrc/cpu/segment_coo_cpu.o -L/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/lib -lc10 -ltorch -ltorch_cpu -ltorch_python -o build/lib.macosx-10.9-x86_64-3.8/torch_scatter/_segment_coo.so
ld: warning: ignoring file /Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/lib/libc10.dylib, building for macOS-x86_64 but attempting to link with file built for macOS-arm64
ld: warning: ignoring file /Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/lib/libtorch.dylib, building for macOS-x86_64 but attempting to link with file built for macOS-arm64
ld: warning: ignoring file /Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/lib/libtorch_cpu.dylib, building for macOS-x86_64 but attempting to link with file built for macOS-arm64
ld: warning: ignoring file /Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/lib/libtorch_python.dylib, building for macOS-x86_64 but attempting to link with file built for macOS-arm64
ld: warning: ignoring file /Users/fengshi/miniforge3/envs/pytorch/lib/libc++.dylib, building for macOS-x86_64 but attempting to link with file built for macOS-arm64
creating build/bdist.macosx-10.9-x86_64
creating build/bdist.macosx-10.9-x86_64/egg
creating build/bdist.macosx-10.9-x86_64/egg/test
copying build/lib.macosx-10.9-x86_64-3.8/test/test_zero_tensors.py -> build/bdist.macosx-10.9-x86_64/egg/test
copying build/lib.macosx-10.9-x86_64-3.8/test/__init__.py -> build/bdist.macosx-10.9-x86_64/egg/test
copying build/lib.macosx-10.9-x86_64-3.8/test/test_broadcasting.py -> build/bdist.macosx-10.9-x86_64/egg/test
copying build/lib.macosx-10.9-x86_64-3.8/test/test_multi_gpu.py -> build/bdist.macosx-10.9-x86_64/egg/test
copying build/lib.macosx-10.9-x86_64-3.8/test/test_scatter.py -> build/bdist.macosx-10.9-x86_64/egg/test
copying build/lib.macosx-10.9-x86_64-3.8/test/test_gather.py -> build/bdist.macosx-10.9-x86_64/egg/test
copying build/lib.macosx-10.9-x86_64-3.8/test/utils.py -> build/bdist.macosx-10.9-x86_64/egg/test
copying build/lib.macosx-10.9-x86_64-3.8/test/test_segment.py -> build/bdist.macosx-10.9-x86_64/egg/test
creating build/bdist.macosx-10.9-x86_64/egg/torch_scatter
copying build/lib.macosx-10.9-x86_64-3.8/torch_scatter/placeholder.py -> build/bdist.macosx-10.9-x86_64/egg/torch_scatter
copying build/lib.macosx-10.9-x86_64-3.8/torch_scatter/_segment_coo.so -> build/bdist.macosx-10.9-x86_64/egg/torch_scatter
copying build/lib.macosx-10.9-x86_64-3.8/torch_scatter/_scatter.so -> build/bdist.macosx-10.9-x86_64/egg/torch_scatter
copying build/lib.macosx-10.9-x86_64-3.8/torch_scatter/__init__.py -> build/bdist.macosx-10.9-x86_64/egg/torch_scatter
copying build/lib.macosx-10.9-x86_64-3.8/torch_scatter/segment_csr.py -> build/bdist.macosx-10.9-x86_64/egg/torch_scatter
creating build/bdist.macosx-10.9-x86_64/egg/torch_scatter/composite
copying build/lib.macosx-10.9-x86_64-3.8/torch_scatter/composite/std.py -> build/bdist.macosx-10.9-x86_64/egg/torch_scatter/composite
copying build/lib.macosx-10.9-x86_64-3.8/torch_scatter/composite/__init__.py -> build/bdist.macosx-10.9-x86_64/egg/torch_scatter/composite
copying build/lib.macosx-10.9-x86_64-3.8/torch_scatter/composite/logsumexp.py -> build/bdist.macosx-10.9-x86_64/egg/torch_scatter/composite
copying build/lib.macosx-10.9-x86_64-3.8/torch_scatter/composite/softmax.py -> build/bdist.macosx-10.9-x86_64/egg/torch_scatter/composite
copying build/lib.macosx-10.9-x86_64-3.8/torch_scatter/segment_coo.py -> build/bdist.macosx-10.9-x86_64/egg/torch_scatter
copying build/lib.macosx-10.9-x86_64-3.8/torch_scatter/utils.py -> build/bdist.macosx-10.9-x86_64/egg/torch_scatter
copying build/lib.macosx-10.9-x86_64-3.8/torch_scatter/scatter.py -> build/bdist.macosx-10.9-x86_64/egg/torch_scatter
copying build/lib.macosx-10.9-x86_64-3.8/torch_scatter/_version.so -> build/bdist.macosx-10.9-x86_64/egg/torch_scatter
copying build/lib.macosx-10.9-x86_64-3.8/torch_scatter/_segment_csr.so -> build/bdist.macosx-10.9-x86_64/egg/torch_scatter
byte-compiling build/bdist.macosx-10.9-x86_64/egg/test/test_zero_tensors.py to test_zero_tensors.cpython-38.pyc
byte-compiling build/bdist.macosx-10.9-x86_64/egg/test/__init__.py to __init__.cpython-38.pyc
byte-compiling build/bdist.macosx-10.9-x86_64/egg/test/test_broadcasting.py to test_broadcasting.cpython-38.pyc
byte-compiling build/bdist.macosx-10.9-x86_64/egg/test/test_multi_gpu.py to test_multi_gpu.cpython-38.pyc
byte-compiling build/bdist.macosx-10.9-x86_64/egg/test/test_scatter.py to test_scatter.cpython-38.pyc
byte-compiling build/bdist.macosx-10.9-x86_64/egg/test/test_gather.py to test_gather.cpython-38.pyc
byte-compiling build/bdist.macosx-10.9-x86_64/egg/test/utils.py to utils.cpython-38.pyc
byte-compiling build/bdist.macosx-10.9-x86_64/egg/test/test_segment.py to test_segment.cpython-38.pyc
byte-compiling build/bdist.macosx-10.9-x86_64/egg/torch_scatter/placeholder.py to placeholder.cpython-38.pyc
byte-compiling build/bdist.macosx-10.9-x86_64/egg/torch_scatter/__init__.py to __init__.cpython-38.pyc
byte-compiling build/bdist.macosx-10.9-x86_64/egg/torch_scatter/segment_csr.py to segment_csr.cpython-38.pyc
byte-compiling build/bdist.macosx-10.9-x86_64/egg/torch_scatter/composite/std.py to std.cpython-38.pyc
byte-compiling build/bdist.macosx-10.9-x86_64/egg/torch_scatter/composite/__init__.py to __init__.cpython-38.pyc
byte-compiling build/bdist.macosx-10.9-x86_64/egg/torch_scatter/composite/logsumexp.py to logsumexp.cpython-38.pyc
byte-compiling build/bdist.macosx-10.9-x86_64/egg/torch_scatter/composite/softmax.py to softmax.cpython-38.pyc
byte-compiling build/bdist.macosx-10.9-x86_64/egg/torch_scatter/segment_coo.py to segment_coo.cpython-38.pyc
byte-compiling build/bdist.macosx-10.9-x86_64/egg/torch_scatter/utils.py to utils.cpython-38.pyc
byte-compiling build/bdist.macosx-10.9-x86_64/egg/torch_scatter/scatter.py to scatter.cpython-38.pyc
creating stub loader for torch_scatter/_scatter.so
creating stub loader for torch_scatter/_version.so
creating stub loader for torch_scatter/_segment_csr.so
creating stub loader for torch_scatter/_segment_coo.so
byte-compiling build/bdist.macosx-10.9-x86_64/egg/torch_scatter/_scatter.py to _scatter.cpython-38.pyc
byte-compiling build/bdist.macosx-10.9-x86_64/egg/torch_scatter/_version.py to _version.cpython-38.pyc
byte-compiling build/bdist.macosx-10.9-x86_64/egg/torch_scatter/_segment_csr.py to _segment_csr.cpython-38.pyc
byte-compiling build/bdist.macosx-10.9-x86_64/egg/torch_scatter/_segment_coo.py to _segment_coo.cpython-38.pyc
creating build/bdist.macosx-10.9-x86_64/egg/EGG-INFO
copying torch_scatter.egg-info/PKG-INFO -> build/bdist.macosx-10.9-x86_64/egg/EGG-INFO
copying torch_scatter.egg-info/SOURCES.txt -> build/bdist.macosx-10.9-x86_64/egg/EGG-INFO
copying torch_scatter.egg-info/dependency_links.txt -> build/bdist.macosx-10.9-x86_64/egg/EGG-INFO
copying torch_scatter.egg-info/requires.txt -> build/bdist.macosx-10.9-x86_64/egg/EGG-INFO
copying torch_scatter.egg-info/top_level.txt -> build/bdist.macosx-10.9-x86_64/egg/EGG-INFO
writing build/bdist.macosx-10.9-x86_64/egg/EGG-INFO/native_libs.txt
zip_safe flag not set; analyzing archive contents...
torch_scatter.__pycache__.__init__.cpython-38: module references __file__
torch_scatter.__pycache__._scatter.cpython-38: module references __file__
torch_scatter.__pycache__._segment_coo.cpython-38: module references __file__
torch_scatter.__pycache__._segment_csr.cpython-38: module references __file__
torch_scatter.__pycache__._version.cpython-38: module references __file__
creating dist
creating 'dist/torch_scatter-2.0.5-py3.8-macosx-10.9-x86_64.egg' and adding 'build/bdist.macosx-10.9-x86_64/egg' to it
removing 'build/bdist.macosx-10.9-x86_64/egg' (and everything under it)
Processing torch_scatter-2.0.5-py3.8-macosx-10.9-x86_64.egg
removing '/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch_scatter-2.0.5-py3.8-macosx-10.9-x86_64.egg' (and everything under it)
creating /Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch_scatter-2.0.5-py3.8-macosx-10.9-x86_64.egg
Extracting torch_scatter-2.0.5-py3.8-macosx-10.9-x86_64.egg to /Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages
torch-scatter 2.0.5 is already the active version in easy-install.pth
Installed /Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch_scatter-2.0.5-py3.8-macosx-10.9-x86_64.egg
Processing dependencies for torch-scatter==2.0.5
Searching for torch-scatter==2.0.5
Reading https://pypi.org/simple/torch-scatter/
Downloading https://files.pythonhosted.org/packages/01/45/cd93ed3227248773ba8bc4b3beaa04e8bddb127a793a41bad875369951b3/torch_scatter-2.0.5.tar.gz#sha256=148fbe634fb9e9465dbde2ab337138f63650ed8abbac42bb3f565e3fe92e9b2f
Best match: torch-scatter 2.0.5
Processing torch_scatter-2.0.5.tar.gz
Writing /var/folders/tt/91bzn3d16jlfbx2rkrgd1mkm0000gn/T/easy_install-c1uqtgb0/torch_scatter-2.0.5/setup.cfg
Running torch_scatter-2.0.5/setup.py -q bdist_egg --dist-dir /var/folders/tt/91bzn3d16jlfbx2rkrgd1mkm0000gn/T/easy_install-c1uqtgb0/torch_scatter-2.0.5/egg-dist-tmp-iro14k8u
warning: no previously-included files matching '*' found under directory 'test'
building 'torch_scatter._scatter' extension
In file included from /var/folders/tt/91bzn3d16jlfbx2rkrgd1mkm0000gn/T/easy_install-c1uqtgb0/torch_scatter-2.0.5/csrc/scatter.cpp:2:
In file included from /Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/script.h:9:
/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/custom_function.h:279:19: warning: comparison of
integers of different signs: 'unsigned long' and 'int' [-Wsign-compare]
if (num_outputs > num_forward_inputs) {
~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~
/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/custom_function.h:205:40: note: in instantiation of
member function 'torch::autograd::CppNode<ScatterSum>::apply' requested here
std::shared_ptr<CppNode<T>> node(new CppNode<T>(), deleteNode);
^
/var/folders/tt/91bzn3d16jlfbx2rkrgd1mkm0000gn/T/easy_install-c1uqtgb0/torch_scatter-2.0.5/csrc/scatter.cpp:197:22: note: in instantiation of function
template specialization 'torch::autograd::Function<ScatterSum>::apply<ScatterSum, at::Tensor &, at::Tensor &, long long &, c10::optional<at::Tensor>
&, c10::optional<long long> &>' requested here
return ScatterSum::apply(src, index, dim, optional_out, dim_size)[0];
^
In file included from /var/folders/tt/91bzn3d16jlfbx2rkrgd1mkm0000gn/T/easy_install-c1uqtgb0/torch_scatter-2.0.5/csrc/scatter.cpp:2:
In file included from /Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/script.h:9:
/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/custom_function.h:290:19: warning: comparison of
integers of different signs: 'unsigned long' and 'int' [-Wsign-compare]
if (num_outputs != num_forward_inputs) {
~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~
/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/custom_function.h:300:21: warning: comparison of
integers of different signs: 'int' and 'unsigned long' [-Wsign-compare]
for (int i = 0; i < num_outputs; ++i) {
~ ^ ~~~~~~~~~~~
/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/custom_function.h:279:19: warning: comparison of
integers of different signs: 'unsigned long' and 'int' [-Wsign-compare]
if (num_outputs > num_forward_inputs) {
~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~
/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/custom_function.h:205:40: note: in instantiation of
member function 'torch::autograd::CppNode<ScatterMean>::apply' requested here
std::shared_ptr<CppNode<T>> node(new CppNode<T>(), deleteNode);
^
/var/folders/tt/91bzn3d16jlfbx2rkrgd1mkm0000gn/T/easy_install-c1uqtgb0/torch_scatter-2.0.5/csrc/scatter.cpp:203:23: note: in instantiation of function
template specialization 'torch::autograd::Function<ScatterMean>::apply<ScatterMean, at::Tensor &, at::Tensor &, long long &,
c10::optional<at::Tensor> &, c10::optional<long long> &>' requested here
return ScatterMean::apply(src, index, dim, optional_out, dim_size)[0];
^
In file included from /var/folders/tt/91bzn3d16jlfbx2rkrgd1mkm0000gn/T/easy_install-c1uqtgb0/torch_scatter-2.0.5/csrc/scatter.cpp:2:
In file included from /Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/script.h:9:
/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/custom_function.h:290:19: warning: comparison of
integers of different signs: 'unsigned long' and 'int' [-Wsign-compare]
if (num_outputs != num_forward_inputs) {
~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~
/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/custom_function.h:300:21: warning: comparison of
integers of different signs: 'int' and 'unsigned long' [-Wsign-compare]
for (int i = 0; i < num_outputs; ++i) {
~ ^ ~~~~~~~~~~~
/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/custom_function.h:279:19: warning: comparison of
integers of different signs: 'unsigned long' and 'int' [-Wsign-compare]
if (num_outputs > num_forward_inputs) {
~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~
/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/custom_function.h:205:40: note: in instantiation of
member function 'torch::autograd::CppNode<ScatterMin>::apply' requested here
std::shared_ptr<CppNode<T>> node(new CppNode<T>(), deleteNode);
^
/var/folders/tt/91bzn3d16jlfbx2rkrgd1mkm0000gn/T/easy_install-c1uqtgb0/torch_scatter-2.0.5/csrc/scatter.cpp:210:29: note: in instantiation of function
template specialization 'torch::autograd::Function<ScatterMin>::apply<ScatterMin, at::Tensor &, at::Tensor &, long long &, c10::optional<at::Tensor>
&, c10::optional<long long> &>' requested here
auto result = ScatterMin::apply(src, index, dim, optional_out, dim_size);
^
In file included from /var/folders/tt/91bzn3d16jlfbx2rkrgd1mkm0000gn/T/easy_install-c1uqtgb0/torch_scatter-2.0.5/csrc/scatter.cpp:2:
In file included from /Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/script.h:9:
/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/custom_function.h:290:19: warning: comparison of
integers of different signs: 'unsigned long' and 'int' [-Wsign-compare]
if (num_outputs != num_forward_inputs) {
~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~
/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/custom_function.h:300:21: warning: comparison of
integers of different signs: 'int' and 'unsigned long' [-Wsign-compare]
for (int i = 0; i < num_outputs; ++i) {
~ ^ ~~~~~~~~~~~
/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/custom_function.h:279:19: warning: comparison of
integers of different signs: 'unsigned long' and 'int' [-Wsign-compare]
if (num_outputs > num_forward_inputs) {
~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~
/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/custom_function.h:205:40: note: in instantiation of
member function 'torch::autograd::CppNode<ScatterMax>::apply' requested here
std::shared_ptr<CppNode<T>> node(new CppNode<T>(), deleteNode);
^
/var/folders/tt/91bzn3d16jlfbx2rkrgd1mkm0000gn/T/easy_install-c1uqtgb0/torch_scatter-2.0.5/csrc/scatter.cpp:218:29: note: in instantiation of function
template specialization 'torch::autograd::Function<ScatterMax>::apply<ScatterMax, at::Tensor &, at::Tensor &, long long &, c10::optional<at::Tensor>
&, c10::optional<long long> &>' requested here
auto result = ScatterMax::apply(src, index, dim, optional_out, dim_size);
^
In file included from /var/folders/tt/91bzn3d16jlfbx2rkrgd1mkm0000gn/T/easy_install-c1uqtgb0/torch_scatter-2.0.5/csrc/scatter.cpp:2:
In file included from /Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/script.h:9:
/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/custom_function.h:290:19: warning: comparison of
integers of different signs: 'unsigned long' and 'int' [-Wsign-compare]
if (num_outputs != num_forward_inputs) {
~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~
/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/custom_function.h:300:21: warning: comparison of
integers of different signs: 'int' and 'unsigned long' [-Wsign-compare]
for (int i = 0; i < num_outputs; ++i) {
~ ^ ~~~~~~~~~~~
12 warnings generated.
ld: warning: ignoring file /Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/lib/libc10.dylib, building for macOS-x86_64 but attempting to link with file built for macOS-arm64
ld: warning: ignoring file /Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/lib/libtorch.dylib, building for macOS-x86_64 but attempting to link with file built for macOS-arm64
ld: warning: ignoring file /Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/lib/libtorch_cpu.dylib, building for macOS-x86_64 but attempting to link with file built for macOS-arm64
ld: warning: ignoring file /Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/lib/libtorch_python.dylib, building for macOS-x86_64 but attempting to link with file built for macOS-arm64
ld: warning: ignoring file /Users/fengshi/miniforge3/envs/pytorch/lib/libc++.dylib, building for macOS-x86_64 but attempting to link with file built for macOS-arm64
building 'torch_scatter._version' extension
ld: warning: ignoring file /Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/lib/libc10.dylib, building for macOS-x86_64 but attempting to link with file built for macOS-arm64
ld: warning: ignoring file /Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/lib/libtorch.dylib, building for macOS-x86_64 but attempting to link with file built for macOS-arm64
ld: warning: ignoring file /Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/lib/libtorch_cpu.dylib, building for macOS-x86_64 but attempting to link with file built for macOS-arm64
ld: warning: ignoring file /Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/lib/libtorch_python.dylib, building for macOS-x86_64 but attempting to link with file built for macOS-arm64
ld: warning: ignoring file /Users/fengshi/miniforge3/envs/pytorch/lib/libc++.dylib, building for macOS-x86_64 but attempting to link with file built for macOS-arm64
building 'torch_scatter._segment_csr' extension
In file included from /var/folders/tt/91bzn3d16jlfbx2rkrgd1mkm0000gn/T/easy_install-c1uqtgb0/torch_scatter-2.0.5/csrc/segment_csr.cpp:2:
In file included from /Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/script.h:9:
/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/custom_function.h:279:19: warning: comparison of
integers of different signs: 'unsigned long' and 'int' [-Wsign-compare]
if (num_outputs > num_forward_inputs) {
~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~
/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/custom_function.h:205:40: note: in instantiation of
member function 'torch::autograd::CppNode<SegmentSumCSR>::apply' requested here
std::shared_ptr<CppNode<T>> node(new CppNode<T>(), deleteNode);
^
/var/folders/tt/91bzn3d16jlfbx2rkrgd1mkm0000gn/T/easy_install-c1uqtgb0/torch_scatter-2.0.5/csrc/segment_csr.cpp:193:25: note: in instantiation of function
template specialization 'torch::autograd::Function<SegmentSumCSR>::apply<SegmentSumCSR, at::Tensor &, at::Tensor &, c10::optional<at::Tensor> &>'
requested here
return SegmentSumCSR::apply(src, indptr, optional_out)[0];
^
In file included from /var/folders/tt/91bzn3d16jlfbx2rkrgd1mkm0000gn/T/easy_install-c1uqtgb0/torch_scatter-2.0.5/csrc/segment_csr.cpp:2:
In file included from /Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/script.h:9:
/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/custom_function.h:290:19: warning: comparison of
integers of different signs: 'unsigned long' and 'int' [-Wsign-compare]
if (num_outputs != num_forward_inputs) {
~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~
/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/custom_function.h:300:21: warning: comparison of
integers of different signs: 'int' and 'unsigned long' [-Wsign-compare]
for (int i = 0; i < num_outputs; ++i) {
~ ^ ~~~~~~~~~~~
/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/custom_function.h:279:19: warning: comparison of
integers of different signs: 'unsigned long' and 'int' [-Wsign-compare]
if (num_outputs > num_forward_inputs) {
~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~
/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/custom_function.h:205:40: note: in instantiation of
member function 'torch::autograd::CppNode<SegmentMeanCSR>::apply' requested here
std::shared_ptr<CppNode<T>> node(new CppNode<T>(), deleteNode);
^
/var/folders/tt/91bzn3d16jlfbx2rkrgd1mkm0000gn/T/easy_install-c1uqtgb0/torch_scatter-2.0.5/csrc/segment_csr.cpp:198:26: note: in instantiation of function
template specialization 'torch::autograd::Function<SegmentMeanCSR>::apply<SegmentMeanCSR, at::Tensor &, at::Tensor &, c10::optional<at::Tensor> &>'
requested here
return SegmentMeanCSR::apply(src, indptr, optional_out)[0];
^
In file included from /var/folders/tt/91bzn3d16jlfbx2rkrgd1mkm0000gn/T/easy_install-c1uqtgb0/torch_scatter-2.0.5/csrc/segment_csr.cpp:2:
In file included from /Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/script.h:9:
/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/custom_function.h:290:19: warning: comparison of
integers of different signs: 'unsigned long' and 'int' [-Wsign-compare]
if (num_outputs != num_forward_inputs) {
~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~
/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/custom_function.h:300:21: warning: comparison of
integers of different signs: 'int' and 'unsigned long' [-Wsign-compare]
for (int i = 0; i < num_outputs; ++i) {
~ ^ ~~~~~~~~~~~
/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/custom_function.h:279:19: warning: comparison of
integers of different signs: 'unsigned long' and 'int' [-Wsign-compare]
if (num_outputs > num_forward_inputs) {
~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~
/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/custom_function.h:205:40: note: in instantiation of
member function 'torch::autograd::CppNode<SegmentMinCSR>::apply' requested here
std::shared_ptr<CppNode<T>> node(new CppNode<T>(), deleteNode);
^
/var/folders/tt/91bzn3d16jlfbx2rkrgd1mkm0000gn/T/easy_install-c1uqtgb0/torch_scatter-2.0.5/csrc/segment_csr.cpp:204:32: note: in instantiation of function
template specialization 'torch::autograd::Function<SegmentMinCSR>::apply<SegmentMinCSR, at::Tensor &, at::Tensor &, c10::optional<at::Tensor> &>'
requested here
auto result = SegmentMinCSR::apply(src, indptr, optional_out);
^
In file included from /var/folders/tt/91bzn3d16jlfbx2rkrgd1mkm0000gn/T/easy_install-c1uqtgb0/torch_scatter-2.0.5/csrc/segment_csr.cpp:2:
In file included from /Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/script.h:9:
/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/custom_function.h:290:19: warning: comparison of
integers of different signs: 'unsigned long' and 'int' [-Wsign-compare]
if (num_outputs != num_forward_inputs) {
~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~
/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/custom_function.h:300:21: warning: comparison of
integers of different signs: 'int' and 'unsigned long' [-Wsign-compare]
for (int i = 0; i < num_outputs; ++i) {
~ ^ ~~~~~~~~~~~
/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/custom_function.h:279:19: warning: comparison of
integers of different signs: 'unsigned long' and 'int' [-Wsign-compare]
if (num_outputs > num_forward_inputs) {
~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~
/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/custom_function.h:205:40: note: in instantiation of
member function 'torch::autograd::CppNode<SegmentMaxCSR>::apply' requested here
std::shared_ptr<CppNode<T>> node(new CppNode<T>(), deleteNode);
^
/var/folders/tt/91bzn3d16jlfbx2rkrgd1mkm0000gn/T/easy_install-c1uqtgb0/torch_scatter-2.0.5/csrc/segment_csr.cpp:211:32: note: in instantiation of function
template specialization 'torch::autograd::Function<SegmentMaxCSR>::apply<SegmentMaxCSR, at::Tensor &, at::Tensor &, c10::optional<at::Tensor> &>'
requested here
auto result = SegmentMaxCSR::apply(src, indptr, optional_out);
^
In file included from /var/folders/tt/91bzn3d16jlfbx2rkrgd1mkm0000gn/T/easy_install-c1uqtgb0/torch_scatter-2.0.5/csrc/segment_csr.cpp:2:
In file included from /Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/script.h:9:
/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/custom_function.h:290:19: warning: comparison of
integers of different signs: 'unsigned long' and 'int' [-Wsign-compare]
if (num_outputs != num_forward_inputs) {
~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~
/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/custom_function.h:300:21: warning: comparison of
integers of different signs: 'int' and 'unsigned long' [-Wsign-compare]
for (int i = 0; i < num_outputs; ++i) {
~ ^ ~~~~~~~~~~~
/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/custom_function.h:279:19: warning: comparison of
integers of different signs: 'unsigned long' and 'int' [-Wsign-compare]
if (num_outputs > num_forward_inputs) {
~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~
/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/custom_function.h:205:40: note: in instantiation of
member function 'torch::autograd::CppNode<GatherCSR>::apply' requested here
std::shared_ptr<CppNode<T>> node(new CppNode<T>(), deleteNode);
^
/var/folders/tt/91bzn3d16jlfbx2rkrgd1mkm0000gn/T/easy_install-c1uqtgb0/torch_scatter-2.0.5/csrc/segment_csr.cpp:217:21: note: in instantiation of function
template specialization 'torch::autograd::Function<GatherCSR>::apply<GatherCSR, at::Tensor &, at::Tensor &, c10::optional<at::Tensor> &>' requested
here
return GatherCSR::apply(src, indptr, optional_out)[0];
^
In file included from /var/folders/tt/91bzn3d16jlfbx2rkrgd1mkm0000gn/T/easy_install-c1uqtgb0/torch_scatter-2.0.5/csrc/segment_csr.cpp:2:
In file included from /Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/script.h:9:
/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/custom_function.h:290:19: warning: comparison of
integers of different signs: 'unsigned long' and 'int' [-Wsign-compare]
if (num_outputs != num_forward_inputs) {
~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~
/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/custom_function.h:300:21: warning: comparison of
integers of different signs: 'int' and 'unsigned long' [-Wsign-compare]
for (int i = 0; i < num_outputs; ++i) {
~ ^ ~~~~~~~~~~~
15 warnings generated.
ld: warning: ignoring file /Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/lib/libc10.dylib, building for macOS-x86_64 but attempting to link with file built for macOS-arm64
ld: warning: ignoring file /Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/lib/libtorch.dylib, building for macOS-x86_64 but attempting to link with file built for macOS-arm64
ld: warning: ignoring file /Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/lib/libtorch_cpu.dylib, building for macOS-x86_64 but attempting to link with file built for macOS-arm64
ld: warning: ignoring file /Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/lib/libtorch_python.dylib, building for macOS-x86_64 but attempting to link with file built for macOS-arm64
ld: warning: ignoring file /Users/fengshi/miniforge3/envs/pytorch/lib/libc++.dylib, building for macOS-x86_64 but attempting to link with file built for macOS-arm64
building 'torch_scatter._segment_coo' extension
In file included from /var/folders/tt/91bzn3d16jlfbx2rkrgd1mkm0000gn/T/easy_install-c1uqtgb0/torch_scatter-2.0.5/csrc/segment_coo.cpp:2:
In file included from /Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/script.h:9:
/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/custom_function.h:279:19: warning: comparison of
integers of different signs: 'unsigned long' and 'int' [-Wsign-compare]
if (num_outputs > num_forward_inputs) {
~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~
/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/custom_function.h:205:40: note: in instantiation of
member function 'torch::autograd::CppNode<SegmentSumCOO>::apply' requested here
std::shared_ptr<CppNode<T>> node(new CppNode<T>(), deleteNode);
^
/var/folders/tt/91bzn3d16jlfbx2rkrgd1mkm0000gn/T/easy_install-c1uqtgb0/torch_scatter-2.0.5/csrc/segment_coo.cpp:197:25: note: in instantiation of function
template specialization 'torch::autograd::Function<SegmentSumCOO>::apply<SegmentSumCOO, at::Tensor &, at::Tensor &, c10::optional<at::Tensor> &,
c10::optional<long long> &>' requested here
return SegmentSumCOO::apply(src, index, optional_out, dim_size)[0];
^
In file included from /var/folders/tt/91bzn3d16jlfbx2rkrgd1mkm0000gn/T/easy_install-c1uqtgb0/torch_scatter-2.0.5/csrc/segment_coo.cpp:2:
In file included from /Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/script.h:9:
/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/custom_function.h:290:19: warning: comparison of
integers of different signs: 'unsigned long' and 'int' [-Wsign-compare]
if (num_outputs != num_forward_inputs) {
~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~
/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/custom_function.h:300:21: warning: comparison of
integers of different signs: 'int' and 'unsigned long' [-Wsign-compare]
for (int i = 0; i < num_outputs; ++i) {
~ ^ ~~~~~~~~~~~
/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/custom_function.h:279:19: warning: comparison of
integers of different signs: 'unsigned long' and 'int' [-Wsign-compare]
if (num_outputs > num_forward_inputs) {
~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~
/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/custom_function.h:205:40: note: in instantiation of
member function 'torch::autograd::CppNode<SegmentMeanCOO>::apply' requested here
std::shared_ptr<CppNode<T>> node(new CppNode<T>(), deleteNode);
^
/var/folders/tt/91bzn3d16jlfbx2rkrgd1mkm0000gn/T/easy_install-c1uqtgb0/torch_scatter-2.0.5/csrc/segment_coo.cpp:203:26: note: in instantiation of function
template specialization 'torch::autograd::Function<SegmentMeanCOO>::apply<SegmentMeanCOO, at::Tensor &, at::Tensor &, c10::optional<at::Tensor> &,
c10::optional<long long> &>' requested here
return SegmentMeanCOO::apply(src, index, optional_out, dim_size)[0];
^
In file included from /var/folders/tt/91bzn3d16jlfbx2rkrgd1mkm0000gn/T/easy_install-c1uqtgb0/torch_scatter-2.0.5/csrc/segment_coo.cpp:2:
In file included from /Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/script.h:9:
/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/custom_function.h:290:19: warning: comparison of
integers of different signs: 'unsigned long' and 'int' [-Wsign-compare]
if (num_outputs != num_forward_inputs) {
~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~
/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/custom_function.h:300:21: warning: comparison of
integers of different signs: 'int' and 'unsigned long' [-Wsign-compare]
for (int i = 0; i < num_outputs; ++i) {
~ ^ ~~~~~~~~~~~
/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/custom_function.h:279:19: warning: comparison of
integers of different signs: 'unsigned long' and 'int' [-Wsign-compare]
if (num_outputs > num_forward_inputs) {
~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~
/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/custom_function.h:205:40: note: in instantiation of
member function 'torch::autograd::CppNode<SegmentMinCOO>::apply' requested here
std::shared_ptr<CppNode<T>> node(new CppNode<T>(), deleteNode);
^
/var/folders/tt/91bzn3d16jlfbx2rkrgd1mkm0000gn/T/easy_install-c1uqtgb0/torch_scatter-2.0.5/csrc/segment_coo.cpp:210:32: note: in instantiation of function
template specialization 'torch::autograd::Function<SegmentMinCOO>::apply<SegmentMinCOO, at::Tensor &, at::Tensor &, c10::optional<at::Tensor> &,
c10::optional<long long> &>' requested here
auto result = SegmentMinCOO::apply(src, index, optional_out, dim_size);
^
In file included from /var/folders/tt/91bzn3d16jlfbx2rkrgd1mkm0000gn/T/easy_install-c1uqtgb0/torch_scatter-2.0.5/csrc/segment_coo.cpp:2:
In file included from /Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/script.h:9:
/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/custom_function.h:290:19: warning: comparison of
integers of different signs: 'unsigned long' and 'int' [-Wsign-compare]
if (num_outputs != num_forward_inputs) {
~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~
/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/custom_function.h:300:21: warning: comparison of
integers of different signs: 'int' and 'unsigned long' [-Wsign-compare]
for (int i = 0; i < num_outputs; ++i) {
~ ^ ~~~~~~~~~~~
/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/custom_function.h:279:19: warning: comparison of
integers of different signs: 'unsigned long' and 'int' [-Wsign-compare]
if (num_outputs > num_forward_inputs) {
~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~
/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/custom_function.h:205:40: note: in instantiation of
member function 'torch::autograd::CppNode<SegmentMaxCOO>::apply' requested here
std::shared_ptr<CppNode<T>> node(new CppNode<T>(), deleteNode);
^
/var/folders/tt/91bzn3d16jlfbx2rkrgd1mkm0000gn/T/easy_install-c1uqtgb0/torch_scatter-2.0.5/csrc/segment_coo.cpp:218:32: note: in instantiation of function
template specialization 'torch::autograd::Function<SegmentMaxCOO>::apply<SegmentMaxCOO, at::Tensor &, at::Tensor &, c10::optional<at::Tensor> &,
c10::optional<long long> &>' requested here
auto result = SegmentMaxCOO::apply(src, index, optional_out, dim_size);
^
In file included from /var/folders/tt/91bzn3d16jlfbx2rkrgd1mkm0000gn/T/easy_install-c1uqtgb0/torch_scatter-2.0.5/csrc/segment_coo.cpp:2:
In file included from /Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/script.h:9:
/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/custom_function.h:290:19: warning: comparison of
integers of different signs: 'unsigned long' and 'int' [-Wsign-compare]
if (num_outputs != num_forward_inputs) {
~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~
/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/custom_function.h:300:21: warning: comparison of
integers of different signs: 'int' and 'unsigned long' [-Wsign-compare]
for (int i = 0; i < num_outputs; ++i) {
~ ^ ~~~~~~~~~~~
/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/custom_function.h:279:19: warning: comparison of
integers of different signs: 'unsigned long' and 'int' [-Wsign-compare]
if (num_outputs > num_forward_inputs) {
~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~
/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/custom_function.h:205:40: note: in instantiation of
member function 'torch::autograd::CppNode<GatherCOO>::apply' requested here
std::shared_ptr<CppNode<T>> node(new CppNode<T>(), deleteNode);
^
/var/folders/tt/91bzn3d16jlfbx2rkrgd1mkm0000gn/T/easy_install-c1uqtgb0/torch_scatter-2.0.5/csrc/segment_coo.cpp:224:21: note: in instantiation of function
template specialization 'torch::autograd::Function<GatherCOO>::apply<GatherCOO, at::Tensor &, at::Tensor &, c10::optional<at::Tensor> &>' requested
here
return GatherCOO::apply(src, index, optional_out)[0];
^
In file included from /var/folders/tt/91bzn3d16jlfbx2rkrgd1mkm0000gn/T/easy_install-c1uqtgb0/torch_scatter-2.0.5/csrc/segment_coo.cpp:2:
In file included from /Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/script.h:9:
/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/custom_function.h:290:19: warning: comparison of
integers of different signs: 'unsigned long' and 'int' [-Wsign-compare]
if (num_outputs != num_forward_inputs) {
~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~
/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/custom_function.h:300:21: warning: comparison of
integers of different signs: 'int' and 'unsigned long' [-Wsign-compare]
for (int i = 0; i < num_outputs; ++i) {
~ ^ ~~~~~~~~~~~
15 warnings generated.
ld: warning: ignoring file /Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/lib/libc10.dylib, building for macOS-x86_64 but attempting to link with file built for macOS-arm64
ld: warning: ignoring file /Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/lib/libtorch.dylib, building for macOS-x86_64 but attempting to link with file built for macOS-arm64
ld: warning: ignoring file /Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/lib/libtorch_cpu.dylib, building for macOS-x86_64 but attempting to link with file built for macOS-arm64
ld: warning: ignoring file /Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/lib/libtorch_python.dylib, building for macOS-x86_64 but attempting to link with file built for macOS-arm64
ld: warning: ignoring file /Users/fengshi/miniforge3/envs/pytorch/lib/libc++.dylib, building for macOS-x86_64 but attempting to link with file built for macOS-arm64
zip_safe flag not set; analyzing archive contents...
torch_scatter.__pycache__.__init__.cpython-38: module references __file__
torch_scatter.__pycache__._scatter.cpython-38: module references __file__
torch_scatter.__pycache__._segment_coo.cpython-38: module references __file__
torch_scatter.__pycache__._segment_csr.cpython-38: module references __file__
torch_scatter.__pycache__._version.cpython-38: module references __file__
No eggs found in /var/folders/tt/91bzn3d16jlfbx2rkrgd1mkm0000gn/T/easy_install-c1uqtgb0/torch_scatter-2.0.5/egg-dist-tmp-iro14k8u (setup script problem?)
error: The 'torch-scatter==2.0.5' distribution was not found and is required by the application
even the compilation is failed but the installation seems still working
(pytorch) fengshi:pytorch_scatter% python setup.py install
running install
running bdist_egg
running egg_info
writing torch_scatter.egg-info/PKG-INFO
writing dependency_links to torch_scatter.egg-info/dependency_links.txt
writing requirements to torch_scatter.egg-info/requires.txt
writing top-level names to torch_scatter.egg-info/top_level.txt
reading manifest file 'torch_scatter.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'torch_scatter.egg-info/SOURCES.txt'
installing library code to build/bdist.macosx-10.9-x86_64/egg
running install_lib
running build_py
running build_ext
creating build/bdist.macosx-10.9-x86_64/egg
creating build/bdist.macosx-10.9-x86_64/egg/test
copying build/lib.macosx-10.9-x86_64-3.8/test/test_zero_tensors.py -> build/bdist.macosx-10.9-x86_64/egg/test
copying build/lib.macosx-10.9-x86_64-3.8/test/__init__.py -> build/bdist.macosx-10.9-x86_64/egg/test
copying build/lib.macosx-10.9-x86_64-3.8/test/test_broadcasting.py -> build/bdist.macosx-10.9-x86_64/egg/test
copying build/lib.macosx-10.9-x86_64-3.8/test/test_multi_gpu.py -> build/bdist.macosx-10.9-x86_64/egg/test
copying build/lib.macosx-10.9-x86_64-3.8/test/test_scatter.py -> build/bdist.macosx-10.9-x86_64/egg/test
copying build/lib.macosx-10.9-x86_64-3.8/test/test_gather.py -> build/bdist.macosx-10.9-x86_64/egg/test
copying build/lib.macosx-10.9-x86_64-3.8/test/utils.py -> build/bdist.macosx-10.9-x86_64/egg/test
copying build/lib.macosx-10.9-x86_64-3.8/test/test_segment.py -> build/bdist.macosx-10.9-x86_64/egg/test
creating build/bdist.macosx-10.9-x86_64/egg/torch_scatter
copying build/lib.macosx-10.9-x86_64-3.8/torch_scatter/placeholder.py -> build/bdist.macosx-10.9-x86_64/egg/torch_scatter
copying build/lib.macosx-10.9-x86_64-3.8/torch_scatter/_segment_coo.so -> build/bdist.macosx-10.9-x86_64/egg/torch_scatter
copying build/lib.macosx-10.9-x86_64-3.8/torch_scatter/_scatter.so -> build/bdist.macosx-10.9-x86_64/egg/torch_scatter
copying build/lib.macosx-10.9-x86_64-3.8/torch_scatter/__init__.py -> build/bdist.macosx-10.9-x86_64/egg/torch_scatter
copying build/lib.macosx-10.9-x86_64-3.8/torch_scatter/segment_csr.py -> build/bdist.macosx-10.9-x86_64/egg/torch_scatter
creating build/bdist.macosx-10.9-x86_64/egg/torch_scatter/composite
copying build/lib.macosx-10.9-x86_64-3.8/torch_scatter/composite/std.py -> build/bdist.macosx-10.9-x86_64/egg/torch_scatter/composite
copying build/lib.macosx-10.9-x86_64-3.8/torch_scatter/composite/__init__.py -> build/bdist.macosx-10.9-x86_64/egg/torch_scatter/composite
copying build/lib.macosx-10.9-x86_64-3.8/torch_scatter/composite/logsumexp.py -> build/bdist.macosx-10.9-x86_64/egg/torch_scatter/composite
copying build/lib.macosx-10.9-x86_64-3.8/torch_scatter/composite/softmax.py -> build/bdist.macosx-10.9-x86_64/egg/torch_scatter/composite
copying build/lib.macosx-10.9-x86_64-3.8/torch_scatter/segment_coo.py -> build/bdist.macosx-10.9-x86_64/egg/torch_scatter
copying build/lib.macosx-10.9-x86_64-3.8/torch_scatter/utils.py -> build/bdist.macosx-10.9-x86_64/egg/torch_scatter
copying build/lib.macosx-10.9-x86_64-3.8/torch_scatter/scatter.py -> build/bdist.macosx-10.9-x86_64/egg/torch_scatter
copying build/lib.macosx-10.9-x86_64-3.8/torch_scatter/_version.so -> build/bdist.macosx-10.9-x86_64/egg/torch_scatter
copying build/lib.macosx-10.9-x86_64-3.8/torch_scatter/_segment_csr.so -> build/bdist.macosx-10.9-x86_64/egg/torch_scatter
byte-compiling build/bdist.macosx-10.9-x86_64/egg/test/test_zero_tensors.py to test_zero_tensors.cpython-38.pyc
byte-compiling build/bdist.macosx-10.9-x86_64/egg/test/__init__.py to __init__.cpython-38.pyc
byte-compiling build/bdist.macosx-10.9-x86_64/egg/test/test_broadcasting.py to test_broadcasting.cpython-38.pyc
byte-compiling build/bdist.macosx-10.9-x86_64/egg/test/test_multi_gpu.py to test_multi_gpu.cpython-38.pyc
byte-compiling build/bdist.macosx-10.9-x86_64/egg/test/test_scatter.py to test_scatter.cpython-38.pyc
byte-compiling build/bdist.macosx-10.9-x86_64/egg/test/test_gather.py to test_gather.cpython-38.pyc
byte-compiling build/bdist.macosx-10.9-x86_64/egg/test/utils.py to utils.cpython-38.pyc
byte-compiling build/bdist.macosx-10.9-x86_64/egg/test/test_segment.py to test_segment.cpython-38.pyc
byte-compiling build/bdist.macosx-10.9-x86_64/egg/torch_scatter/placeholder.py to placeholder.cpython-38.pyc
byte-compiling build/bdist.macosx-10.9-x86_64/egg/torch_scatter/__init__.py to __init__.cpython-38.pyc
byte-compiling build/bdist.macosx-10.9-x86_64/egg/torch_scatter/segment_csr.py to segment_csr.cpython-38.pyc
byte-compiling build/bdist.macosx-10.9-x86_64/egg/torch_scatter/composite/std.py to std.cpython-38.pyc
byte-compiling build/bdist.macosx-10.9-x86_64/egg/torch_scatter/composite/__init__.py to __init__.cpython-38.pyc
byte-compiling build/bdist.macosx-10.9-x86_64/egg/torch_scatter/composite/logsumexp.py to logsumexp.cpython-38.pyc
byte-compiling build/bdist.macosx-10.9-x86_64/egg/torch_scatter/composite/softmax.py to softmax.cpython-38.pyc
byte-compiling build/bdist.macosx-10.9-x86_64/egg/torch_scatter/segment_coo.py to segment_coo.cpython-38.pyc
byte-compiling build/bdist.macosx-10.9-x86_64/egg/torch_scatter/utils.py to utils.cpython-38.pyc
byte-compiling build/bdist.macosx-10.9-x86_64/egg/torch_scatter/scatter.py to scatter.cpython-38.pyc
creating stub loader for torch_scatter/_scatter.so
creating stub loader for torch_scatter/_version.so
creating stub loader for torch_scatter/_segment_csr.so
creating stub loader for torch_scatter/_segment_coo.so
byte-compiling build/bdist.macosx-10.9-x86_64/egg/torch_scatter/_scatter.py to _scatter.cpython-38.pyc
byte-compiling build/bdist.macosx-10.9-x86_64/egg/torch_scatter/_version.py to _version.cpython-38.pyc
byte-compiling build/bdist.macosx-10.9-x86_64/egg/torch_scatter/_segment_csr.py to _segment_csr.cpython-38.pyc
byte-compiling build/bdist.macosx-10.9-x86_64/egg/torch_scatter/_segment_coo.py to _segment_coo.cpython-38.pyc
creating build/bdist.macosx-10.9-x86_64/egg/EGG-INFO
copying torch_scatter.egg-info/PKG-INFO -> build/bdist.macosx-10.9-x86_64/egg/EGG-INFO
copying torch_scatter.egg-info/SOURCES.txt -> build/bdist.macosx-10.9-x86_64/egg/EGG-INFO
copying torch_scatter.egg-info/dependency_links.txt -> build/bdist.macosx-10.9-x86_64/egg/EGG-INFO
copying torch_scatter.egg-info/requires.txt -> build/bdist.macosx-10.9-x86_64/egg/EGG-INFO
copying torch_scatter.egg-info/top_level.txt -> build/bdist.macosx-10.9-x86_64/egg/EGG-INFO
writing build/bdist.macosx-10.9-x86_64/egg/EGG-INFO/native_libs.txt
zip_safe flag not set; analyzing archive contents...
torch_scatter.__pycache__.__init__.cpython-38: module references __file__
torch_scatter.__pycache__._scatter.cpython-38: module references __file__
torch_scatter.__pycache__._segment_coo.cpython-38: module references __file__
torch_scatter.__pycache__._segment_csr.cpython-38: module references __file__
torch_scatter.__pycache__._version.cpython-38: module references __file__
creating 'dist/torch_scatter-2.0.5-py3.8-macosx-10.9-x86_64.egg' and adding 'build/bdist.macosx-10.9-x86_64/egg' to it
removing 'build/bdist.macosx-10.9-x86_64/egg' (and everything under it)
Processing torch_scatter-2.0.5-py3.8-macosx-10.9-x86_64.egg
removing '/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch_scatter-2.0.5-py3.8-macosx-10.9-x86_64.egg' (and everything under it)
creating /Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch_scatter-2.0.5-py3.8-macosx-10.9-x86_64.egg
Extracting torch_scatter-2.0.5-py3.8-macosx-10.9-x86_64.egg to /Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages
torch-scatter 2.0.5 is already the active version in easy-install.pth
Installed /Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch_scatter-2.0.5-py3.8-macosx-10.9-x86_64.egg
Processing dependencies for torch-scatter==2.0.5
Finished processing dependencies for torch-scatter==2.0.5
and when trying to run it:
(pytorch) fengshi:Downloads% python
Python 3.8.6 | packaged by conda-forge | (default, Dec 22 2020, 09:53:24)
[Clang 11.0.0 ] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import torch_scatter
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch_scatter-2.0.5-py3.8-macosx-10.9-x86_64.egg/torch_scatter/__init__.py", line 11, in <module>
torch.ops.load_library(importlib.machinery.PathFinder().find_spec(
File "/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch/_ops.py", line 105, in load_library
ctypes.CDLL(path)
File "/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/ctypes/__init__.py", line 373, in __init__
self._handle = _dlopen(self._name, mode)
OSError: dlopen(/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch_scatter-2.0.5-py3.8-macosx-10.9-x86_64.egg/torch_scatter/_version.so, 6): no suitable image found. Did find:
/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch_scatter-2.0.5-py3.8-macosx-10.9-x86_64.egg/torch_scatter/_version.so: mach-o, but wrong architecture
/Users/fengshi/miniforge3/envs/pytorch/lib/python3.8/site-packages/torch_scatter-2.0.5-py3.8-macosx-10.9-x86_64.egg/torch_scatter/_version.so: mach-o, but wrong architecture
>>>
Issue Analytics
- State:
- Created 3 years ago
- Comments:9 (2 by maintainers)
Top Results From Across the Web
MacBook Air with M1 chip - Apple
M1 is our first chip designed specifically for Mac. Apple silicon integrates the CPU, GPU, Neural Engine, I/O, and so much more onto...
Read more >Apple M1 Chip: Everything You Need to Know - MacRumors
The M1 chip is the most powerful chip that Apple has created to date, and it is similar to the A14 chip in...
Read more >Apple M1 - Wikipedia
Apple M1 is a series of ARM-based systems-on-a-chip (SoCs) designed by Apple Inc. as a central processing unit (CPU) and graphics processing unit...
Read more >What Is the Apple M1 Chip? - PCMag
According to Apple, the M1 chip is faster than the Intel processors in the Macs it replaces. In some cases, the company claims,...
Read more >Apple M1 Processor Overview and Compatibility - Toptal
The Apple M1 chip features four big Firestorm CPU cores for high-load scenarios, backed by four smaller Icestorm CPU cores designed for efficiency....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Problem solved with:
MACOSX_DEPLOYMENT_TARGET=11.1 CC=clang CXX=clang++ python3 setup.py install
as the previous answer stated, this solution also works fine with torch_sparse, torch_geometric, etc.I tried to compile the source code with the below command:
MACOSX_DEPLOYMENT_TARGET=11.1 CC=clang CXX=clang++ python setup.py install
It seems that there’s no problem with compilation now. I’ll try to test the torch_scatter with some real code.Below is the compilation: