quiver-team / torch-quiver

PyTorch Library for Low-Latency, High-Throughput Graph Learning on GPUs.
https://torch-quiver.readthedocs.io/en/latest/
Apache License 2.0
293 stars 36 forks source link

Installation Problem: which GNU version does torch-quiver require? #126

Closed initzhang closed 2 years ago

initzhang commented 2 years ago

Hi, I tried to install quiver with pip install torch-quiver, but ran into GCC version problems:

When I export GCC5.4 in system path, the command ended up with error message as follows:

.....
    In file included from /usr/local/cuda/include/cuda_runtime.h:62:0, 
                     from <command-line>:0:
    /usr/local/cuda/include/host_config.h:105:2: error: #error -- unsupported GNU version! gcc 4.10 and up are not supported!
     #error -- unsupported GNU version! gcc 4.10 and up are not supported!
      ^
.....

But when I turn to GCC4.9.2, the command ended up with error message as follows:

.....
c++: error: unrecognized command line option ‘-std=c++17’
.....

    In file included from /home/data/xzhanggb/envs/miniconda3/envs/pyg/lib/python3.8/site-packages/torch/include/c10/core/impl/InlineDeviceGu
ard.h:9:0,
                     from /home/data/xzhanggb/envs/miniconda3/envs/pyg/lib/python3.8/site-packages/torch/include/c10/core/DeviceGuard.h:3,
                     from /home/data/xzhanggb/envs/miniconda3/envs/pyg/lib/python3.8/site-packages/torch/include/c10/cuda/CUDAStream.h:8,
                     from /tmp/pip-install-juxpgiz9/torch-quiver_2611d491e46d44dcaef859934cd2dc32/srcs/cpp/src/quiver/cuda/quiver_comm.cu:1:
    /home/data/xzhanggb/envs/miniconda3/envs/pyg/lib/python3.8/site-packages/torch/include/c10/util/C++17.h:16:2: error: #error "You're tryin
g to build PyTorch with a too old version of GCC. We need GCC 5 or later."
     #error \
      ^

So I am confused about which GCC version to use...

I am using Python3.8, CUDA 10.2, PyTorch 1.9.1+cu102, torch-geometric 2.0.4 on CentOS 7.9.2009

Does Quiver's installation have additional system requirements or occasionally break in my specific environment? Thank you!

ZenoTan commented 2 years ago

It seems like cuda needs a lower GCC version while quiver needs a higher one. Could you build with source code?

initzhang commented 2 years ago

Hi ZenoTan,

Thanks for your reply! I changed the CUDA version to 11.1 and successfully built from source.