Gorilla-Lab-SCUT/SSTNet

Spconv Installation

Changyangli opened this issue · 1 comments

Hi,

Thank you for sharing this amazing project! I have a question regarding the installation of Spconv. I set up my env according to the requirements (pytorch 1.7.1, cuda 11, and I installed cudnn 8.2.1). I saw that the Spconv repo is kind of old, and when I try to install following the instructions, seems that cudnn 8.2.1 is not recognizable. Have you got this issue before? Thanks!

Well, just resolved it following this: pytorch/pytorch#41593
"When you copy your cudnn.h file into "cuda/vxx/include" it doesn't contain certain things in the Header portion.
So in this case this you need to copy cudnn_version.h file into your cuda directory."

One more thing is that to compile the spconv module using pytorch 1.7.1, I changed torch::jit::RegisterOperator() originally at spconv/src/spconv/all.cc:20:91 to torch::RegisterOperators(). Hope this would help others having a compiling error.