Closed TonyChouZJU closed 7 years ago
I need to guard the TopK half specific code. I will fix this.
fixed in master
The above error has gone. But arise a new error
[ 85%] [ 85%] [ 85%] [ 86%] [ 87%] [ 89%] [ 89%] Building CXX object lib/THC/CMakeFiles/THC.dir/THCCachingHostAllocator.cpp.o
Building CXX object lib/THC/CMakeFiles/THC.dir/THCCachingAllocator.cpp.o
[ 90%] Building C object lib/THC/CMakeFiles/THC.dir/THCGeneral.c.o
Building C object lib/THC/CMakeFiles/THC.dir/THCTensorCopy.c.o
Building C object lib/THC/CMakeFiles/THC.dir/THCStorageCopy.c.o
Building CXX object lib/THC/CMakeFiles/THC.dir/THCStream.cpp.o
Building C object lib/THC/CMakeFiles/THC.dir/THCTensor.c.o
Building CXX object lib/THC/CMakeFiles/THC.dir/THCTensorRandom.cpp.o
In file included from generic/THCTensor.c:1:0,
from /tmp/luarocks_cutorch-scm-1-4258/cutorch/lib/THC/THCGenerateAllTypes.h:17,
from /tmp/luarocks_cutorch-scm-1-4258/cutorch/lib/THC/THCTensor.c:7:
/tmp/luarocks_cutorch-scm-1-4258/cutorch/lib/THC/generic/THCTensor.c: In function ‘THCudaByteTensor_newExpand’:
/tmp/luarocks_cutorch-scm-1-4258/cutorch/lib/THC/generic/THCTensor.c:304:3: error: implicit declaration of function ‘THLongStorage_calculateExpandGeometry’ [-Werror=implicit-function-declaration]
THLongStorage_calculateExpandGeometry(tensor->size,
^
cc1: some warnings being treated as errors
make[2]: *** [lib/THC/CMakeFiles/THC.dir/THCTensor.c.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [lib/THC/CMakeFiles/THC.dir/all] Error 2
make: *** [all] Error 2
Thanks again!
I have the same problem as OP and noticed that the commit for fixing this only added some comments. I am using CUDA 8.0.61 and driver version 375.66, also have cudnn v5.
Thanks !
@natanielruiz, I'm in the exact same situation. Could you solve it?
Basically there's two IF statement and in those statement it uses the undefined variables. I just bypassed the IF statements and forced it into the ELSE statement. It worked..
Thanks @natanielruiz, that did the job for me too.
Hello, I'm trying to install cutorh using 'luarocks install cutorch'. But I got the following error while compling.
I have install cuda-7.5 and cudnn 4.0
Could anyone give me some suggestions? Thanks in advance!