Windows installation error: torch sparse -> spspmm_kernel.cu
Steps to reproduce the behavior:
C:/Users/ditho/AppData/Local/conda/conda/envs/pytorch_geometric/lib/site-packages/torch/lib/include\c10/util/ArrayRef.h(143): error: variable in constexpr function d
oes not have automatic storage duration
detected during instantiation of "const T &c10::ArrayRef<T>::front() const [with T=at::Tensor]"
C:/Users/ditho/AppData/Local/conda/conda/envs/pytorch_geometric/lib/site-packages/torch/lib/include\ATen/DeviceGuard.h(30): here
C:/Users/ditho/AppData/Local/conda/conda/envs/pytorch_geometric/lib/site-packages/torch/lib/include\ATen/TensorGeometry.h(56): warning: field of class type without a
DLL interface used in a class with a DLL interface
C:/Users/ditho/AppData/Local/conda/conda/envs/pytorch_geometric/lib/site-packages/torch/lib/include\ATen/TensorGeometry.h(57): warning: field of class type without a
DLL interface used in a class with a DLL interface
1 error detected in the compilation of "C:/Users/ditho/AppData/Local/Temp/tmpxft_000056f8_00000000-10_spspmm_kernel.cpp1.ii".
spspmm_kernel.cu
error: command 'C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v10.1\\bin\\nvcc.exe' failed with exit status 1
----------------------------------------
Command "C:\Users\ditho\AppData\Local\conda\conda\envs\pytorch_geometric\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\ditho\\AppData\\Local\\Temp\\
pip-install-3h72pytv\\torch-sparse\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exe
c'))" install --record C:\Users\ditho\AppData\Local\Temp\pip-record-knhcqgov\install-record.txt --single-version-externally-managed --compile" failed with error code 1 i
n C:\Users\ditho\AppData\Local\Temp\pip-install-3h72pytv\torch-sparse\
torch-sparse would install properly
$ python -c "import torch; print(torch.version.cuda)"
>>> 10.0
$ nvcc --version
>>> Cuda compilation tools, release 10.1, V10.1.105
I've never seen this error before, and I am wondering if this is caused by torch.version.cuda=10.0 and nvcc --version=10.1. Do you have multiple CUDA versions?
I installed pytorch like the website said:
conda install pytorch torchvision cudatoolkit=10.0 -c pytorch
It seems cudatoolkit 10.1 doesnt exist, so I could uninstall CUDA 10.1 and install CUDA 10.0?
It would be great if you could try this out.
That fixed it... Quite the annoying issue. There was some incompatibility with 9.2 and visual studio. If anyone comes here with windows issues for now I recommend:
Most helpful comment
That fixed it... Quite the annoying issue. There was some incompatibility with 9.2 and visual studio. If anyone comes here with windows issues for now I recommend: