visinf / n3net

Neural Nearest Neighbors Networks (NIPS*2018)
Other
283 stars 45 forks source link

failed to install matmul_cuda #16

Open tonyzzzt opened 5 years ago

tonyzzzt commented 5 years ago

when I run this code "python setup.py install " in lib file. it successfully install matmul_cuda, but when I run 'import matmul_cuda' in terminal, it raise an error, like this: "Traceback (most recent call last): File "", line 1, in ImportError: /home/tong2018234172/anaconda3/lib/python3.6/site-packages/matmul-0.0.0-py3.6-linux-x86_64.egg/matmul_cuda.cpython-36m-x86_64-linux-gnu.so: undefined symbol: _ZN6caffe26detail36_typeMetaDataInstance_preallocated_7E " and my python version is 3.6, torch version is 0.4.1, cuda version is 8.0.61

TristaZhang commented 5 years ago

"python setup.py install" in terminal cann't install matmul_cuda as expected

majedelhelou commented 5 years ago

@tonyzzzt Check this comment. Quick fix; you can upgrade to PyTorch >1

KevinFeng1998 commented 4 years ago

@tonyzzzt Check this comment. Quick fix; you can upgrade to PyTorch >1 I have already updated PyTorch to 1.0.1,but I still can't install matmul_cuda as expected. The detail is followed. "build\lib.win-amd64-3.6\matmul_cuda.cp36-win_amd64.pyd : fatal error LNK1120: 1 unresolved externals error: command 'C:\Program Files (x86)\Microsoft Visual Studio14.0\VC\BIN\x86_amd64\link.exe' failed with exit status 1120" Could you please help me?

AbderraoufKhodja commented 4 years ago

I having issues with installing matmul_cuda too!! LINK : fatal error LNK1181: cannot open input file 'caffe2_gpu.lib' error: command 'C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\link.exe' failed with exit status 1181

abhijay9 commented 4 years ago

I was having the same issue after switching to a different version of pytorch (1.0 to 0.4)

One way of fixing this error would be to first uninstall matmul

pip uninstall matmul

Remove the build/ and other files/folders created when the setup was initially installed. Then install again

cd lib/
python setup.py install
hulaalol commented 4 years ago

Is there any fix? It is still hard to install, getting caffe2_gpu.lib error or torch/extension.h error. Tried all possible CUDA Versions and PyTorch Versions. I am still not able to compile matmul

wzhouxiff commented 4 years ago

I can install the matmul_cuda succeededly. However, I meet Segmentation fault. Anyone knows how to fix it?

panbaojing commented 6 months ago

I can install the matmul_cuda succeededly. However, I meet Segmentation fault. Anyone knows how to fix it?

Can you tell me how to install the matmul_cuda succeededly? Are there any special procedures?