-
Notifications
You must be signed in to change notification settings - Fork 174
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Installation problem with CMake #265
Comments
Quickfix: define _FORCE_INLINES, e.g. add Same problem mentioned at other places: |
Thanks. But is there a way to incorporate this fix if I want to install the package with |
@KUO000 here is how I fixed it in case you are looking for a solution.
replace with
then install with |
I tried updating cunn with above instructions and I get below erros. Any idea whats causing the issue. I tried with gcc 4.8.1 cuda 7.0.28 and gcc 4.8.1 cuda 7.5.18 Errors: /tmp/luarocks_cunn-scm-1-1796/cunn/lib/THCUNN/SparseLinear.cu(53): error: identifier "rowbuf" is undefined /tmp/luarocks_cunn-scm-1-1796/cunn/lib/THCUNN/SparseLinear.cu(53): error: identifier "THCudaIntTensor_new" is undefined /tmp/luarocks_cunn-scm-1-1796/cunn/lib/THCUNN/SparseLinear.cu(54): error: identifier "csrPtrs" is undefined /tmp/luarocks_cunn-scm-1-1796/cunn/lib/THCUNN/SparseLinear.cu(55): error: identifier "colInds" is undefined /tmp/luarocks_cunn-scm-1-1796/cunn/lib/THCUNN/SparseLinear.cu(58): error: identifier "THCudaIntTensor_resize1d" is undefined /tmp/luarocks_cunn-scm-1-1796/cunn/lib/THCUNN/SparseLinear.cu(67): error: identifier "THCudaIntTensor_copyCudaFloat" is undefined /tmp/luarocks_cunn-scm-1-1796/cunn/lib/THCUNN/SparseLinear.cu(75): error: identifier "THCudaIntTensor_data" is undefined /tmp/luarocks_cunn-scm-1-1796/cunn/lib/THCUNN/SparseLinear.cu(113): error: identifier "THCudaIntTensor_free" is undefined /tmp/luarocks_cunn-scm-1-1796/cunn/lib/THCUNN/SparseLinear.cu(146): error: identifier "THCudaIntTensor" is undefined /tmp/luarocks_cunn-scm-1-1796/cunn/lib/THCUNN/SparseLinear.cu(146): error: identifier "colbuf" is undefined /tmp/luarocks_cunn-scm-1-1796/cunn/lib/THCUNN/SparseLinear.cu(146): error: identifier "THCudaIntTensor_new" is undefined /tmp/luarocks_cunn-scm-1-1796/cunn/lib/THCUNN/SparseLinear.cu(147): error: identifier "colPtrs" is undefined /tmp/luarocks_cunn-scm-1-1796/cunn/lib/THCUNN/SparseLinear.cu(148): error: identifier "rowInds" is undefined /tmp/luarocks_cunn-scm-1-1796/cunn/lib/THCUNN/SparseLinear.cu(157): error: identifier "THCudaIntTensor_resize1d" is undefined /tmp/luarocks_cunn-scm-1-1796/cunn/lib/THCUNN/SparseLinear.cu(163): error: identifier "THCudaIntTensor_copyCudaFloat" is undefined /tmp/luarocks_cunn-scm-1-1796/cunn/lib/THCUNN/SparseLinear.cu(172): error: identifier "THCudaIntTensor_data" is undefined /tmp/luarocks_cunn-scm-1-1796/cunn/lib/THCUNN/SparseLinear.cu(213): error: identifier "THCudaIntTensor_free" is undefined 18 errors detected in the compilation of "/tmp/tmpxft_00018450_00000000-7_SparseLinear.cpp1.ii". make[2]: *** [lib/THCUNN/CMakeFiles/THCUNN.dir/THCUNN_generated_SparseLinear.cu.o] Error 1 |
I do not see anywhere to put I tried adding it to this line in cunn-scm-1.rockspec
|
@robotnikthingy this stuff should already be fixed now! |
I seem to be still getting the same error as the original poster unfortunately `Cloning into 'cunn'... -- The C compiler identification is GNU 5.3.1
-- Build files have been written to: /tmp/luarocks_cunn-scm-1-7901/cunn/build CMake Error at THCUNN_generated_VolumetricMaxPooling.cu.o.cmake:207 (message): CMake Error at THCUNN_generated_PReLU.cu.o.cmake:207 (message): lib/THCUNN/CMakeFiles/THCUNN.dir/build.make:70: recipe for target 'lib/THCUNN/CMakeFiles/THCUNN.dir/THCUNN_generated_VolumetricMaxPooling.cu.o' failed CMake Warning at /usr/share/cmake-3.5/Modules/FindCUDA/make2cmake.cmake:65 (message): CMake Warning at /usr/share/cmake-3.5/Modules/FindCUDA/make2cmake.cmake:65 (message): CMake Warning at /usr/share/cmake-3.5/Modules/FindCUDA/make2cmake.cmake:65 (message): CMake Warning at /usr/share/cmake-3.5/Modules/FindCUDA/make2cmake.cmake:65 (message): CMake Warning at /usr/share/cmake-3.5/Modules/FindCUDA/make2cmake.cmake:65 (message): CMake Warning at /usr/share/cmake-3.5/Modules/FindCUDA/make2cmake.cmake:65 (message): CMake Warning at /usr/share/cmake-3.5/Modules/FindCUDA/make2cmake.cmake:65 (message): CMake Warning at /usr/share/cmake-3.5/Modules/FindCUDA/make2cmake.cmake:65 (message): CMake Warning at /usr/share/cmake-3.5/Modules/FindCUDA/make2cmake.cmake:65 (message): CMake Warning at /usr/share/cmake-3.5/Modules/FindCUDA/make2cmake.cmake:65 (message): CMake Warning at /usr/share/cmake-3.5/Modules/FindCUDA/make2cmake.cmake:65 (message): CMake Warning at /usr/share/cmake-3.5/Modules/FindCUDA/make2cmake.cmake:65 (message): CMake Warning at /usr/share/cmake-3.5/Modules/FindCUDA/make2cmake.cmake:65 (message): CMake Warning at /usr/share/cmake-3.5/Modules/FindCUDA/make2cmake.cmake:65 (message): CMake Warning at /usr/share/cmake-3.5/Modules/FindCUDA/make2cmake.cmake:65 (message): CMake Warning at /usr/share/cmake-3.5/Modules/FindCUDA/make2cmake.cmake:65 (message): CMake Warning at /usr/share/cmake-3.5/Modules/FindCUDA/make2cmake.cmake:65 (message): CMake Warning at /usr/share/cmake-3.5/Modules/FindCUDA/make2cmake.cmake:65 (message): CMake Warning at /usr/share/cmake-3.5/Modules/FindCUDA/make2cmake.cmake:65 (message): CMake Warning at /usr/share/cmake-3.5/Modules/FindCUDA/make2cmake.cmake:65 (message): CMake Warning at /usr/share/cmake-3.5/Modules/FindCUDA/make2cmake.cmake:65 (message): CMake Warning at /usr/share/cmake-3.5/Modules/FindCUDA/make2cmake.cmake:65 (message): CMake Warning at /usr/share/cmake-3.5/Modules/FindCUDA/make2cmake.cmake:65 (message): CMake Warning at /usr/share/cmake-3.5/Modules/FindCUDA/make2cmake.cmake:65 (message): CMake Warning at /usr/share/cmake-3.5/Modules/FindCUDA/make2cmake.cmake:65 (message): CMake Warning at /usr/share/cmake-3.5/Modules/FindCUDA/make2cmake.cmake:65 (message): CMake Warning at /usr/share/cmake-3.5/Modules/FindCUDA/make2cmake.cmake:65 (message): CMake Warning at /usr/share/cmake-3.5/Modules/FindCUDA/make2cmake.cmake:65 (message): CMake Warning at /usr/share/cmake-3.5/Modules/FindCUDA/make2cmake.cmake:65 (message): CMake Warning at /usr/share/cmake-3.5/Modules/FindCUDA/make2cmake.cmake:65 (message): CMake Warning at /usr/share/cmake-3.5/Modules/FindCUDA/make2cmake.cmake:65 (message): CMake Warning at /usr/share/cmake-3.5/Modules/FindCUDA/make2cmake.cmake:65 (message): CMake Warning at /usr/share/cmake-3.5/Modules/FindCUDA/make2cmake.cmake:65 (message): CMake Warning at /usr/share/cmake-3.5/Modules/FindCUDA/make2cmake.cmake:65 (message): CMake Warning at /usr/share/cmake-3.5/Modules/FindCUDA/make2cmake.cmake:65 (message): CMake Warning at /usr/share/cmake-3.5/Modules/FindCUDA/make2cmake.cmake:65 (message): CMake Warning at /usr/share/cmake-3.5/Modules/FindCUDA/make2cmake.cmake:65 (message): CMake Warning at /usr/share/cmake-3.5/Modules/FindCUDA/make2cmake.cmake:65 (message): CMake Warning at /usr/share/cmake-3.5/Modules/FindCUDA/make2cmake.cmake:65 (message): CMake Warning at /usr/share/cmake-3.5/Modules/FindCUDA/make2cmake.cmake:65 (message): CMake Warning at /usr/share/cmake-3.5/Modules/FindCUDA/make2cmake.cmake:65 (message): CMake Warning at /usr/share/cmake-3.5/Modules/FindCUDA/make2cmake.cmake:65 (message): CMake Warning at /usr/share/cmake-3.5/Modules/FindCUDA/make2cmake.cmake:65 (message): CMake Warning at /usr/share/cmake-3.5/Modules/FindCUDA/make2cmake.cmake:65 (message): CMake Warning at /usr/share/cmake-3.5/Modules/FindCUDA/make2cmake.cmake:65 (message): CMake Warning at /usr/share/cmake-3.5/Modules/FindCUDA/make2cmake.cmake:65 (message): CMake Warning at /usr/share/cmake-3.5/Modules/FindCUDA/make2cmake.cmake:65 (message): CMake Warning at /usr/share/cmake-3.5/Modules/FindCUDA/make2cmake.cmake:65 (message): CMake Warning at /usr/share/cmake-3.5/Modules/FindCUDA/make2cmake.cmake:65 (message): CMake Warning at /usr/share/cmake-3.5/Modules/FindCUDA/make2cmake.cmake:65 (message): CMake Warning at /usr/share/cmake-3.5/Modules/FindCUDA/make2cmake.cmake:65 (message): CMake Warning at /usr/share/cmake-3.5/Modules/FindCUDA/make2cmake.cmake:65 (message): CMake Warning at /usr/share/cmake-3.5/Modules/FindCUDA/make2cmake.cmake:65 (message): CMake Warning at /usr/share/cmake-3.5/Modules/FindCUDA/make2cmake.cmake:65 (message): CMake Warning at /usr/share/cmake-3.5/Modules/FindCUDA/make2cmake.cmake:65 (message): CMake Warning at /usr/share/cmake-3.5/Modules/FindCUDA/make2cmake.cmake:65 (message): CMake Warning at /usr/share/cmake-3.5/Modules/FindCUDA/make2cmake.cmake:65 (message): CMake Warning at /usr/share/cmake-3.5/Modules/FindCUDA/make2cmake.cmake:65 (message): CMake Warning at /usr/share/cmake-3.5/Modules/FindCUDA/make2cmake.cmake:65 (message): CMake Warning at /usr/share/cmake-3.5/Modules/FindCUDA/make2cmake.cmake:65 (message): CMake Warning at /usr/share/cmake-3.5/Modules/FindCUDA/make2cmake.cmake:65 (message): CMake Warning at /usr/share/cmake-3.5/Modules/FindCUDA/make2cmake.cmake:65 (message): CMake Warning at /usr/share/cmake-3.5/Modules/FindCUDA/make2cmake.cmake:65 (message): CMake Warning at /usr/share/cmake-3.5/Modules/FindCUDA/make2cmake.cmake:65 (message): CMake Warning at /usr/share/cmake-3.5/Modules/FindCUDA/make2cmake.cmake:65 (message): CMake Warning at /usr/share/cmake-3.5/Modules/FindCUDA/make2cmake.cmake:65 (message): CMake Warning at /usr/share/cmake-3.5/Modules/FindCUDA/make2cmake.cmake:65 (message): CMake Warning at /usr/share/cmake-3.5/Modules/FindCUDA/make2cmake.cmake:65 (message): CMake Warning at /usr/share/cmake-3.5/Modules/FindCUDA/make2cmake.cmake:65 (message): CMake Warning at /usr/share/cmake-3.5/Modules/FindCUDA/make2cmake.cmake:65 (message): CMake Warning at /usr/share/cmake-3.5/Modules/FindCUDA/make2cmake.cmake:65 (message): CMake Warning at /usr/share/cmake-3.5/Modules/FindCUDA/make2cmake.cmake:65 (message): CMake Warning at /usr/share/cmake-3.5/Modules/FindCUDA/make2cmake.cmake:65 (message): CMake Warning at /usr/share/cmake-3.5/Modules/FindCUDA/make2cmake.cmake:65 (message): CMakeFiles/Makefile2:103: recipe for target 'lib/THCUNN/CMakeFiles/THCUNN.dir/all' failed Error: Build error: Failed building. |
@robotnikthingy have you updated cutorch?
|
I had the same problem, I have updated torch cutorch nn before I install cunn. $ luarocks install rocks/cunn-scm-1.rockspec /tmp/luarocks_cunn-scm-1-5240/cunn/lib/THCUNN/LookupTable.cu(49): warning: function "__any" [ 28%] Building NVCC (Device) object lib/THCUNN/CMakeFiles/THCUNN.dir/THCUNN_generated_MSECriterion.cu.o lib/THCUNN/CMakeFiles/THCUNN.dir/build.make:175: recipe for target 'lib/THCUNN/CMakeFiles/THCUNN.dir/THCUNN_generated_LookupTable.cu.o' failed CMakeFiles/Makefile2:111: recipe for target 'lib/THCUNN/CMakeFiles/THCUNN.dir/all' failed Error: Build error: Failed building. |
fortunally, I solved this problem using a patch in #492, haha |
I have this error after running : CC=gcc-7 CXX=g++-7 luarocks make rocks/cunn-scm-1.rockspec Torch 7 and CUDA 10.2 [ 26%] Building NVCC (Device) object lib/THCUNN/CMakeFiles/THCUNN.dir/THCUNN_generated_LookupTableBag.cu.o /tmp/cunn/lib/THCUNN/LookupTable.cu(62): error: identifier "FULL_MASK" is undefined /tmp/cunn/lib/THCUNN/generic/LookupTable.cu(5): error: incomplete type is not allowed /tmp/cunn/lib/THCUNN/generic/LookupTable.cu(5): error: identifier "LookupTable_accGradParameters" is undefined /tmp/cunn/lib/THCUNN/generic/LookupTable.cu(5): error: expected a ";" /tmp/cunn/lib/THCUNN/generic/LookupTable.cu(37): warning: parsing restarts here after previous syntax error /tmp/cunn/lib/THCUNN/generic/LookupTable.cu(40): error: this declaration has no storage class or type specifier /tmp/cunn/lib/THCUNN/generic/LookupTable.cu(40): error: declaration is incompatible with function template "void cunn_LookupTable_accGradParametersKernelByFeature(long *, Dtype *, Dtype *, Dtype, ptrdiff_t, long, int)" /tmp/cunn/lib/THCUNN/generic/LookupTable.cu(40): error: expected a ";" /tmp/cunn/lib/THCUNN/generic/LookupTable.cu(47): warning: parsing restarts here after previous syntax error /tmp/cunn/lib/THCUNN/generic/LookupTable.cu(48): error: this declaration has no storage class or type specifier /tmp/cunn/lib/THCUNN/generic/LookupTable.cu(48): error: declaration is incompatible with "void THCudaHalfTensor_free(THCState *, THCudaHalfTensor *)" /tmp/cunn/lib/THCUNN/generic/LookupTable.cu(48): error: identifier "state" is undefined /tmp/cunn/lib/THCUNN/generic/LookupTable.cu(48): error: expected a ")" /tmp/cunn/lib/THCUNN/generic/LookupTable.cu(49): error: this declaration has no storage class or type specifier /tmp/cunn/lib/THCUNN/generic/LookupTable.cu(49): error: declaration is incompatible with "void __THCudaCheck(cudaError_t, const char *, int)" /tmp/cunn/lib/THCUNN/generic/LookupTable.cu(49): error: expected a ")" /tmp/cunn/lib/THCUNN/generic/LookupTable.cu(50): error: expected a declaration /tmp/cunn/lib/THCUNN/generic/LookupTable.cu(51): error: expected a declaration /tmp/cunn/lib/THCUNN/generic/LookupTable.cu(54): error: this declaration has no storage class or type specifier /tmp/cunn/lib/THCUNN/generic/LookupTable.cu(54): error: identifier "resize" is undefined /tmp/cunn/lib/THCUNN/generic/LookupTable.cu(54): error: expected a ";" /tmp/cunn/lib/THCUNN/generic/LookupTable.cu(54): warning: parsing restarts here after previous syntax error /tmp/cunn/lib/THCUNN/generic/LookupTable.cu(55): error: this declaration has no storage class or type specifier /tmp/cunn/lib/THCUNN/generic/LookupTable.cu(55): error: variable "THCIndexTensor_" has already been defined /tmp/cunn/lib/THCUNN/generic/LookupTable.cu(55): error: expected a ";" /tmp/cunn/lib/THCUNN/generic/LookupTable.cu(55): warning: parsing restarts here after previous syntax error /tmp/cunn/lib/THCUNN/generic/LookupTable.cu(56): error: this declaration has no storage class or type specifier /tmp/cunn/lib/THCUNN/generic/LookupTable.cu(56): error: declaration is incompatible with "void THLongStorage_free(THLongStorage *)" /tmp/cunn/lib/THCUNN/generic/LookupTable.cu(56): error: identifier "inputSize" is undefined /tmp/cunn/lib/THCUNN/generic/LookupTable.cu(61): error: expected a declaration /tmp/cunn/lib/THCUNN/generic/LookupTable.cu(83): error: this declaration has no storage class or type specifier /tmp/cunn/lib/THCUNN/generic/LookupTable.cu(83): error: namespace "thrust::cuda" has no actual member "par" /tmp/cunn/lib/THCUNN/generic/LookupTable.cu(83): error: identifier "thrustAlloc" is undefined /tmp/cunn/lib/THCUNN/generic/LookupTable.cu(83): error: expected a ";" /tmp/cunn/lib/THCUNN/generic/LookupTable.cu(86): warning: parsing restarts here after previous syntax error /tmp/cunn/lib/THCUNN/generic/LookupTable.cu(87): error: expected a declaration /tmp/cunn/lib/THCUNN/generic/LookupTable.cu(90): error: identifier "THCIndex_t" is undefined /tmp/cunn/lib/THCUNN/generic/LookupTable.cu(90): error: expression preceding parentheses of apparent call must have (pointer-to-) function type /tmp/cunn/lib/THCUNN/generic/LookupTable.cu(90): error: identifier "data" is undefined /tmp/cunn/lib/THCUNN/generic/LookupTable.cu(90): error: identifier "origIndices" is undefined /tmp/cunn/lib/THCUNN/generic/LookupTable.cu(91): error: identifier "THCIndex_t" is undefined /tmp/cunn/lib/THCUNN/generic/LookupTable.cu(93): error: expected a declaration /tmp/cunn/lib/THCUNN/generic/LookupTable.cu(127): warning: parsing restarts here after previous syntax error /tmp/cunn/lib/THCUNN/generic/LookupTable.cu(128): error: expected a declaration /tmp/cunn/lib/THCUNN/generic/LookupTable.cu(131): error: variable "block" has already been defined /tmp/cunn/lib/THCUNN/generic/LookupTable.cu(132): error: expected a declaration /tmp/cunn/lib/THCUNN/generic/LookupTable.cu(142): warning: parsing restarts here after previous syntax error /tmp/cunn/lib/THCUNN/generic/LookupTable.cu(144): error: this declaration has no storage class or type specifier /tmp/cunn/lib/THCUNN/generic/LookupTable.cu(144): error: variable "THCudaHalfTensor_free" has already been defined /tmp/cunn/lib/THCUNN/generic/LookupTable.cu(144): error: expected a ")" /tmp/cunn/lib/THCUNN/generic/LookupTable.cu(145): error: this declaration has no storage class or type specifier /tmp/cunn/lib/THCUNN/generic/LookupTable.cu(145): error: variable "__THCudaCheck" has already been defined /tmp/cunn/lib/THCUNN/generic/LookupTable.cu(145): error: expected a ")" /tmp/cunn/lib/THCUNN/generic/LookupTable.cu(146): error: expected a declaration /tmp/cunn/lib/THCUNN/generic/LookupTable.cu(175): warning: parsing restarts here after previous syntax error /tmp/cunn/lib/THCUNN/generic/LookupTable.cu(176): error: identifier "THCIndex_t" is undefined /tmp/cunn/lib/THCUNN/generic/LookupTable.cu(176): error: expression preceding parentheses of apparent call must have (pointer-to-) function type /tmp/cunn/lib/THCUNN/generic/LookupTable.cu(176): error: identifier "idx" is undefined /tmp/cunn/lib/THCUNN/generic/LookupTable.cu(177): error: identifier "THCIndex_t" is undefined /tmp/cunn/lib/THCUNN/generic/LookupTable.cu(177): error: identifier "numel" is undefined /tmp/cunn/lib/THCUNN/generic/LookupTable.cu(177): error: no instance of overloaded function "thrust::unique" matches the argument list /tmp/cunn/lib/THCUNN/generic/LookupTable.cu(178): error: this declaration has no storage class or type specifier /tmp/cunn/lib/THCUNN/generic/LookupTable.cu(180): error: identifier "normType" is undefined /tmp/cunn/lib/THCUNN/generic/LookupTable.cu(183): error: expected a declaration /tmp/cunn/lib/THCUNN/generic/LookupTable.cu(37): warning: parsing restarts here after previous syntax error /tmp/cunn/lib/THCUNN/generic/LookupTable.cu(38): error: variable "block" has already been defined /tmp/cunn/lib/THCUNN/generic/LookupTable.cu(40): error: this declaration has no storage class or type specifier /tmp/cunn/lib/THCUNN/generic/LookupTable.cu(40): error: variable "cunn_LookupTable_accGradParametersKernelByFeature" has already been defined /tmp/cunn/lib/THCUNN/generic/LookupTable.cu(40): error: expected a ";" /tmp/cunn/lib/THCUNN/generic/LookupTable.cu(47): warning: parsing restarts here after previous syntax error /tmp/cunn/lib/THCUNN/generic/LookupTable.cu(48): error: this declaration has no storage class or type specifier /tmp/cunn/lib/THCUNN/generic/LookupTable.cu(48): error: declaration is incompatible with "void THCudaTensor_free(THCState *, THCudaTensor *)" /tmp/cunn/lib/THCUNN/generic/LookupTable.cu(48): error: expected a ")" /tmp/cunn/lib/THCUNN/generic/LookupTable.cu(49): error: this declaration has no storage class or type specifier /tmp/cunn/lib/THCUNN/generic/LookupTable.cu(49): error: variable "__THCudaCheck" has already been defined /tmp/cunn/lib/THCUNN/generic/LookupTable.cu(49): error: expected a ")" /tmp/cunn/lib/THCUNN/generic/LookupTable.cu(50): error: expected a declaration /tmp/cunn/lib/THCUNN/generic/LookupTable.cu(51): error: expected a declaration /tmp/cunn/lib/THCUNN/generic/LookupTable.cu(54): error: this declaration has no storage class or type specifier /tmp/cunn/lib/THCUNN/generic/LookupTable.cu(54): error: variable "THCIndexTensor_" has already been defined /tmp/cunn/lib/THCUNN/generic/LookupTable.cu(54): error: expected a ";" /tmp/cunn/lib/THCUNN/generic/LookupTable.cu(54): warning: parsing restarts here after previous syntax error /tmp/cunn/lib/THCUNN/generic/LookupTable.cu(55): error: this declaration has no storage class or type specifier /tmp/cunn/lib/THCUNN/generic/LookupTable.cu(55): error: variable "THCIndexTensor_" has already been defined /tmp/cunn/lib/THCUNN/generic/LookupTable.cu(55): error: expected a ";" /tmp/cunn/lib/THCUNN/generic/LookupTable.cu(55): warning: parsing restarts here after previous syntax error /tmp/cunn/lib/THCUNN/generic/LookupTable.cu(56): error: this declaration has no storage class or type specifier /tmp/cunn/lib/THCUNN/generic/LookupTable.cu(56): error: variable "THLongStorage_free" has already been defined /tmp/cunn/lib/THCUNN/generic/LookupTable.cu(61): error: expected a declaration /tmp/cunn/lib/THCUNN/generic/LookupTable.cu(83): error: this declaration has no storage class or type specifier /tmp/cunn/lib/THCUNN/generic/LookupTable.cu(83): error: namespace "thrust::cuda" has no actual member "par" /tmp/cunn/lib/THCUNN/generic/LookupTable.cu(83): error: expected a ";" /tmp/cunn/lib/THCUNN/generic/LookupTable.cu(86): warning: parsing restarts here after previous syntax error /tmp/cunn/lib/THCUNN/generic/LookupTable.cu(87): error: expected a declaration /tmp/cunn/lib/THCUNN/generic/LookupTable.cu(90): error: identifier "THCIndex_t" is undefined /tmp/cunn/lib/THCUNN/generic/LookupTable.cu(90): error: variable "origIndices_data" has already been defined /tmp/cunn/lib/THCUNN/generic/LookupTable.cu(90): error: expression preceding parentheses of apparent call must have (pointer-to-) function type /tmp/cunn/lib/THCUNN/generic/LookupTable.cu(91): error: identifier "THCIndex_t" is undefined /tmp/cunn/lib/THCUNN/generic/LookupTable.cu(91): error: variable "count_data" has already been defined /tmp/cunn/lib/THCUNN/generic/LookupTable.cu(93): error: expected a declaration /tmp/cunn/lib/THCUNN/generic/LookupTable.cu(127): warning: parsing restarts here after previous syntax error /tmp/cunn/lib/THCUNN/generic/LookupTable.cu(128): error: expected a declaration /tmp/cunn/lib/THCUNN/generic/LookupTable.cu(131): error: variable "block" has already been defined /tmp/cunn/lib/THCUNN/generic/LookupTable.cu(132): error: expected a declaration /tmp/cunn/lib/THCUNN/generic/LookupTable.cu(142): warning: parsing restarts here after previous syntax error /tmp/cunn/lib/THCUNN/generic/LookupTable.cu(144): error: this declaration has no storage class or type specifier /tmp/cunn/lib/THCUNN/generic/LookupTable.cu(144): error: variable "THCudaTensor_free" has already been defined /tmp/cunn/lib/THCUNN/generic/LookupTable.cu(144): error: expected a ")" /tmp/cunn/lib/THCUNN/generic/LookupTable.cu(145): error: this declaration has no storage class or type specifier /tmp/cunn/lib/THCUNN/generic/LookupTable.cu(145): error: variable "__THCudaCheck" has already been defined /tmp/cunn/lib/THCUNN/generic/LookupTable.cu(145): error: expected a ")" /tmp/cunn/lib/THCUNN/generic/LookupTable.cu(146): error: expected a declaration /tmp/cunn/lib/THCUNN/generic/LookupTable.cu(175): warning: parsing restarts here after previous syntax error /tmp/cunn/lib/THCUNN/generic/LookupTable.cu(176): error: identifier "THCIndex_t" is undefined /tmp/cunn/lib/THCUNN/generic/LookupTable.cu(176): error: variable "idx_ptr" has already been defined Error limit reached. lib/THCUNN/CMakeFiles/THCUNN.dir/build.make:8563: recipe for target 'lib/THCUNN/CMakeFiles/THCUNN.dir/THCUNN_generated_LookupTable.cu.o' failed /tmp/cunn/lib/THCUNN/LookupTableBag.cu(18): warning: variable "MODE_SUM" was declared but never referenced /tmp/cunn/lib/THCUNN/LookupTableBag.cu(18): warning: variable "MODE_SUM" was declared but never referenced /tmp/cunn/lib/THCUNN/LookupTableBag.cu(18): warning: variable "MODE_SUM" was declared but never referenced ptxas warning : Value of threads per SM for entry Z21kernelPointwiseApply3I34logSigmoid_updateGradInput_functorIdEdddmLin1ELin1ELin1EEv10TensorInfoIT0_T3_ES2_IT1_S4_ES2_IT2_S4_ES4_T is out of range. .minnctapersm will be ignored /tmp/cunn/lib/THCUNN/LookupTableBag.cu(18): warning: variable "MODE_SUM" was declared but never referenced /tmp/cunn/lib/THCUNN/LookupTableBag.cu(18): warning: variable "MODE_SUM" was declared but never referenced /tmp/cunn/lib/THCUNN/LookupTableBag.cu(18): warning: variable "MODE_SUM" was declared but never referenced CMakeFiles/Makefile2:131: recipe for target 'lib/THCUNN/CMakeFiles/THCUNN.dir/all' failed |
I recently installed torch and cunn on my desktop running Ubuntu 15.10, which had cuda 7.5 installed. Everything went smoothly except that I had to first downgrade GCC to version 4.9.
A couple days ago, I was trying to install torch on my laptop with Ubuntu 16.04 just installed. Using GCC 4.9, I was able to install cuda 7.5 and torch. However, when I was trying to install
cunn
with commandluarocks install cunn
, it failed with the following error message:This looks like a problem with CMake. On my Ubuntu 15.10, I used CMake 3.2.2 to install torch and everything. On my Ubuntu 16.04, I'm currently running CMake 3.5.1. Any idea how I can try to fix this?
The text was updated successfully, but these errors were encountered: