dl-docker
dl-docker copied to clipboard
Build issue GPU
Getting this when trying to build today.
[100%] Building C object lib/THNN/CMakeFiles/THNN.dir/init.c.o
In file included from generic/SparseLinear.c:1:0,
from /tmp/luarocks_nn-scm-1-303/nn/lib/THNN/init.c:153:
/tmp/luarocks_nn-scm-1-303/nn/lib/THNN/generic/SparseLinear.c: In function 'THNN_FloatSparseLinear_accGradParameters':
/tmp/luarocks_nn-scm-1-303/nn/lib/THNN/generic/SparseLinear.c:237:3: error: too many arguments to function 'THFloatTensor_sum'
THTensor_(sum)(buf, gradOutput, 0, 1);
^
In file included from /root/torch/install/include/TH/TH.h:4:0,
from /tmp/luarocks_nn-scm-1-303/nn/lib/THNN/init.c:1:
/root/torch/install/include/TH/THTensor.h:8:39: note: declared here
#define THTensor_(NAME) TH_CONCAT_4(TH,Real,Tensor_,NAME)
^
/root/torch/install/include/TH/THGeneral.h:108:37: note: in definition of macro 'TH_CONCAT_4_EXPAND'
#define TH_CONCAT_4_EXPAND(x,y,z,w) x ## y ## z ## w
^
/root/torch/install/include/TH/THTensor.h:8:27: note: in expansion of macro 'TH_CONCAT_4'
#define THTensor_(NAME) TH_CONCAT_4(TH,Real,Tensor_,NAME)
^
/root/torch/install/include/TH/generic/THTensorMath.h:77:13: note: in expansion of macro 'THTensor_'
TH_API void THTensor_(sum)(THTensor *r_, THTensor *t, int dimension);
^
In file included from generic/SparseLinear.c:1:0,
from /tmp/luarocks_nn-scm-1-303/nn/lib/THNN/init.c:153:
/tmp/luarocks_nn-scm-1-303/nn/lib/THNN/generic/SparseLinear.c: In function 'THNN_DoubleSparseLinear_accGradParameters':
/tmp/luarocks_nn-scm-1-303/nn/lib/THNN/generic/SparseLinear.c:237:3: error: too many arguments to function 'THDoubleTensor_sum'
THTensor_(sum)(buf, gradOutput, 0, 1);
^
In file included from /root/torch/install/include/TH/TH.h:4:0,
from /tmp/luarocks_nn-scm-1-303/nn/lib/THNN/init.c:1:
/root/torch/install/include/TH/THTensor.h:8:39: note: declared here
#define THTensor_(NAME) TH_CONCAT_4(TH,Real,Tensor_,NAME)
^
/root/torch/install/include/TH/THGeneral.h:108:37: note: in definition of macro 'TH_CONCAT_4_EXPAND'
#define TH_CONCAT_4_EXPAND(x,y,z,w) x ## y ## z ## w
^
/root/torch/install/include/TH/THTensor.h:8:27: note: in expansion of macro 'TH_CONCAT_4'
#define THTensor_(NAME) TH_CONCAT_4(TH,Real,Tensor_,NAME)
^
/root/torch/install/include/TH/generic/THTensorMath.h:77:13: note: in expansion of macro 'THTensor_'
TH_API void THTensor_(sum)(THTensor *r_, THTensor *t, int dimension);
^
In file included from generic/TemporalSubSampling.c:1:0,
from /tmp/luarocks_nn-scm-1-303/nn/lib/THNN/init.c:174:
/tmp/luarocks_nn-scm-1-303/nn/lib/THNN/generic/TemporalSubSampling.c: In function 'THNN_FloatTemporalSubSampling_updateOutput':
/tmp/luarocks_nn-scm-1-303/nn/lib/THNN/generic/TemporalSubSampling.c:73:5: error: too many arguments to function 'THFloatTensor_sum'
THTensor_(sum)(outputFrame, inputWindow, 0, 1);
^
In file included from /root/torch/install/include/TH/TH.h:4:0,
from /tmp/luarocks_nn-scm-1-303/nn/lib/THNN/init.c:1:
/root/torch/install/include/TH/THTensor.h:8:39: note: declared here
#define THTensor_(NAME) TH_CONCAT_4(TH,Real,Tensor_,NAME)
^
/root/torch/install/include/TH/THGeneral.h:108:37: note: in definition of macro 'TH_CONCAT_4_EXPAND'
#define TH_CONCAT_4_EXPAND(x,y,z,w) x ## y ## z ## w
^
/root/torch/install/include/TH/THTensor.h:8:27: note: in expansion of macro 'TH_CONCAT_4'
#define THTensor_(NAME) TH_CONCAT_4(TH,Real,Tensor_,NAME)
^
/root/torch/install/include/TH/generic/THTensorMath.h:77:13: note: in expansion of macro 'THTensor_'
TH_API void THTensor_(sum)(THTensor *r_, THTensor *t, int dimension);
^
In file included from generic/TemporalSubSampling.c:1:0,
from /tmp/luarocks_nn-scm-1-303/nn/lib/THNN/init.c:174:
/tmp/luarocks_nn-scm-1-303/nn/lib/THNN/generic/TemporalSubSampling.c: In function 'THNN_FloatTemporalSubSampling_accGradParameters':
/tmp/luarocks_nn-scm-1-303/nn/lib/THNN/generic/TemporalSubSampling.c:146:5: error: too many arguments to function 'THFloatTensor_sum'
THTensor_(sum)(buffer, inputWindow, 0, 1);
^
In file included from /root/torch/install/include/TH/TH.h:4:0,
from /tmp/luarocks_nn-scm-1-303/nn/lib/THNN/init.c:1:
/root/torch/install/include/TH/THTensor.h:8:39: note: declared here
#define THTensor_(NAME) TH_CONCAT_4(TH,Real,Tensor_,NAME)
^
/root/torch/install/include/TH/THGeneral.h:108:37: note: in definition of macro 'TH_CONCAT_4_EXPAND'
#define TH_CONCAT_4_EXPAND(x,y,z,w) x ## y ## z ## w
^
/root/torch/install/include/TH/THTensor.h:8:27: note: in expansion of macro 'TH_CONCAT_4'
#define THTensor_(NAME) TH_CONCAT_4(TH,Real,Tensor_,NAME)
^
/root/torch/install/include/TH/generic/THTensorMath.h:77:13: note: in expansion of macro 'THTensor_'
TH_API void THTensor_(sum)(THTensor *r_, THTensor *t, int dimension);
^
In file included from generic/TemporalSubSampling.c:1:0,
from /tmp/luarocks_nn-scm-1-303/nn/lib/THNN/init.c:174:
/tmp/luarocks_nn-scm-1-303/nn/lib/THNN/generic/TemporalSubSampling.c: In function 'THNN_DoubleTemporalSubSampling_updateOutput':
/tmp/luarocks_nn-scm-1-303/nn/lib/THNN/generic/TemporalSubSampling.c:73:5: error: too many arguments to function 'THDoubleTensor_sum'
THTensor_(sum)(outputFrame, inputWindow, 0, 1);
^
In file included from /root/torch/install/include/TH/TH.h:4:0,
from /tmp/luarocks_nn-scm-1-303/nn/lib/THNN/init.c:1:
/root/torch/install/include/TH/THTensor.h:8:39: note: declared here
#define THTensor_(NAME) TH_CONCAT_4(TH,Real,Tensor_,NAME)
^
/root/torch/install/include/TH/THGeneral.h:108:37: note: in definition of macro 'TH_CONCAT_4_EXPAND'
#define TH_CONCAT_4_EXPAND(x,y,z,w) x ## y ## z ## w
^
/root/torch/install/include/TH/THTensor.h:8:27: note: in expansion of macro 'TH_CONCAT_4'
#define THTensor_(NAME) TH_CONCAT_4(TH,Real,Tensor_,NAME)
^
/root/torch/install/include/TH/generic/THTensorMath.h:77:13: note: in expansion of macro 'THTensor_'
TH_API void THTensor_(sum)(THTensor *r_, THTensor *t, int dimension);
^
In file included from generic/TemporalSubSampling.c:1:0,
from /tmp/luarocks_nn-scm-1-303/nn/lib/THNN/init.c:174:
/tmp/luarocks_nn-scm-1-303/nn/lib/THNN/generic/TemporalSubSampling.c: In function 'THNN_DoubleTemporalSubSampling_accGradParameters':
/tmp/luarocks_nn-scm-1-303/nn/lib/THNN/generic/TemporalSubSampling.c:146:5: error: too many arguments to function 'THDoubleTensor_sum'
THTensor_(sum)(buffer, inputWindow, 0, 1);
^
In file included from /root/torch/install/include/TH/TH.h:4:0,
from /tmp/luarocks_nn-scm-1-303/nn/lib/THNN/init.c:1:
/root/torch/install/include/TH/THTensor.h:8:39: note: declared here
#define THTensor_(NAME) TH_CONCAT_4(TH,Real,Tensor_,NAME)
^
/root/torch/install/include/TH/THGeneral.h:108:37: note: in definition of macro 'TH_CONCAT_4_EXPAND'
#define TH_CONCAT_4_EXPAND(x,y,z,w) x ## y ## z ## w
^
/root/torch/install/include/TH/THTensor.h:8:27: note: in expansion of macro 'TH_CONCAT_4'
#define THTensor_(NAME) TH_CONCAT_4(TH,Real,Tensor_,NAME)
^
/root/torch/install/include/TH/generic/THTensorMath.h:77:13: note: in expansion of macro 'THTensor_'
TH_API void THTensor_(sum)(THTensor *r_, THTensor *t, int dimension);
^
make[2]: *** [lib/THNN/CMakeFiles/THNN.dir/init.c.o] Error 1
make[1]: *** [lib/THNN/CMakeFiles/THNN.dir/all] Error 2
make: *** [all] Error 2
Error: Build error: Failed building.
cmake -E make_directory build && cd build && cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH="/root/torch/install/bin/.." -DCMAKE_INSTALL_PREFIX="/root/torch/install/lib/luarocks/rocks/nn/scm-1" && make
The command '/bin/sh -c luarocks install nn && luarocks install cutorch && luarocks install cunn && luarocks install loadcaffe && cd /root && git clone https://github.com/soumith/cudnn.torch.git && cd cudnn.torch && git checkout R4 && luarocks make && cd /root && git clone https://github.com/facebook/iTorch.git && cd iTorch && luarocks make' returned a non-zero code: 1
I encountered the same problem here at Step 28
Also encountered this issue.
Same issue here as well