torch installation error on Ubuntu 14.04 + CUDA 7.0

347 views
Skip to first unread message

Mayukh Bose

unread,
Aug 31, 2015, 9:57:04 AM8/31/15
to torch7
Hi,

I am trying to install torch on a machine following the instruction on http://torch.ch/docs/getting-started.html#_

When I run ./install.sh, I get the following error.

compilation terminated.
In file included from ~/torch/extra/cutorch/lib/THC/THCStorage.h:5:0,
                 from ~/torch/extra/cutorch/lib/THC/THCStorage.c:1:
~/torch/extra/cutorch/build/lib/THC/THCGeneral.h:10:23: fatal error: cublas_v2.h: No such file or directory
 #include "cublas_v2.h"

I have a working installation of caffe on the system and I have tested the CUDA install itself so I don't think the error is with the the CUDA install.

when I run 

sudo find / -name "cublas_v2.h", I get:

/usr/local/cuda-7.0/targets/x86_64-linux/include/cublas_v2.h

when I run 

sudo find / -name "cuda.h", I get:

/usr/include/nvidia-346/cuda/cuda.h
/usr/include/linux/cuda.h
/usr/include/hwloc/cuda.h
/usr/local/cuda-7.0/targets/x86_64-linux/include/cuda.h
/usr/local/cuda-7.0/include/cuda.h
/usr/local/cuda/include/cuda.h
/usr/src/linux-headers-3.13.0-32-generic/include/linux/cuda.h
/usr/src/linux-headers-3.13.0-32/include/uapi/linux/cuda.h
/usr/src/linux-headers-3.13.0-32/include/linux/cuda.h


Mayukh Bose

unread,
Oct 5, 2015, 1:49:13 AM10/5/15
to torch7
HI,

I reinstalled CUDA and the problem was resolved.
Reply all
Reply to author
Forward
0 new messages