torch / torch7

http://torch.ch
Other
9k stars 2.38k forks source link

How does torch specify cuda version? #1056

Open somuchsentimentality opened 7 years ago

somuchsentimentality commented 7 years ago

I have both cuda 7.0 and cuda 7.5 on the cluster, I have already changed the PATH and LD_LIBRARY_PATH to point to cuda7.5 and when I type nvcc -V it says: Cuda compilation tools, release 7.5, V7.5.17. But when I try to install torch, it always says like this, I think it's using cuda7.0. ... -- Autodetected CUDA architecture(s): 3.5 -- got cuda version 7.0 -- Could not find CUDA with FP16 support, compiling without torch.CudaHalfTensor ... What can I do? Because it seems too old for 7.0 and can not successfully build. It got error like this /home/menghanz/torch/extra/cutorch/lib/THC/THCTensorMode.cuh(10): error: identifier "half" is undefined

/home/menghanz/torch/extra/cutorch/lib/THC/THCTensorMode.cuh(10): error: identifier "half" is undefined

/home/menghanz/torch/extra/cutorch/lib/THC/THCTensorMode.cuh(11): error: identifier "half" is undefined

/home/menghanz/torch/extra/cutorch/lib/THC/THCTensorMode.cuh(11): error: class "THCNumerics<>" has no member "lt"

/home/menghanz/torch/extra/cutorch/lib/THC/THCTensorMode.cuh(17): error: identifier "half" is undefined

/home/menghanz/torch/extra/cutorch/lib/THC/THCTensorMode.cuh(17): error: identifier "half" is undefined

/home/menghanz/torch/extra/cutorch/lib/THC/THCTensorMode.cuh(18): error: identifier "half" is undefined

/home/menghanz/torch/extra/cutorch/lib/THC/THCTensorMode.cuh(18): error: class "THCNumerics<>" has no member "ne"

/home/menghanz/torch/extra/cutorch/lib/THC/THCTensorMode.cuh(24): error: identifier "half" is undefined

/home/menghanz/torch/extra/cutorch/lib/THC/THCTensorMode.cuh(24): error: identifier "half" is undefined

/home/menghanz/torch/extra/cutorch/lib/THC/THCTensorMode.cuh(25): error: identifier "half" is undefined

/home/menghanz/torch/extra/cutorch/lib/THC/THCTensorMode.cuh(25): error: class "THCNumerics<>" has no member "eq"

/home/menghanz/torch/extra/cutorch/lib/THC/THCTensorMode.cuh(31): error: identifier "half" is undefined

/home/menghanz/torch/extra/cutorch/lib/THC/THCTensorMode.cuh(32): error: identifier "half" is undefined

/home/menghanz/torch/extra/cutorch/lib/THC/THCTensorMode.cuh(36): error: identifier "half" is undefined

/home/menghanz/torch/extra/cutorch/lib/THC/THCTensorMode.cuh(33): error: identifier "half" is undefined

/home/menghanz/torch/extra/cutorch/lib/THC/THCTensorMode.cuh(33): error: class "THCNumerics<>" has no member "eq"

17 errors detected in the compilation of "/tmp/tmpxft_00013f89_00000000-7_THCTensorMode.cpp1.ii". CMake Error at THC_generated_THCTensorMode.cu.o.cmake:267 (message): Error generating file /home/menghanz/torch/extra/cutorch/build/lib/THC/CMakeFiles/THC.dir//./THC_generated_THCTensorMode.cu.o

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