torch / cutorch

A CUDA backend for Torch7
Other
336 stars 208 forks source link

Installation failing on Ubuntu, cuda 8 and cudnn 6 #806

Open rayset opened 7 years ago

rayset commented 7 years ago

I get the following error, which seems to be quite common with cuda 9. this is just the ending part, I see 17% installation progress as the last step it took-

14 errors detected in the compilation of "/tmp/tmpxft_00001ae3_00000000-7_THCTensorMathScan.cpp1.ii". CMake Error at THC_generated_THCTensorMathScan.cu.o.cmake:267 (message): Error generating file /tmp/luarocks_cutorch-scm-1-499/cutorch/build/lib/THC/CMakeFiles/THC.dir//./THC_generated_THCTensorMathScan.cu.o

make[2]: [lib/THC/CMakeFiles/THC.dir/./THC_generated_THCTensorMathScan.cu.o] Error 1 make[1]: [lib/THC/CMakeFiles/THC.dir/all] Error 2 make: *** [all] Error 2

Error: Build error: Failed building.

It worked just fine before I had to update cudnn and install tensorflow, then it borke and had to reinstall... or at least I whish I had managed to reinstall it.

any ideas? I already reinstalled torch. this is my bashrc ending line:

export PATH=/usr/local/cuda-8.0/bin/:/usr/local/cuda-8.0/bin:/usr/local/cuda-8.0/bin:/home/rayset/torch/install/bin:/usr/local/cuda-8.0/bin:/home/rayset/torch/install/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games; export LD_LIBRARY_PATH=/usr/local/cuda-8.0/lib64/:/home/rayset/torch/install/lib:/home/rayset/torch/install/lib:/usr/local/cuda-8.0/lib64:/usr/local/cuda-8.0/lib64:;

Thanks!