mxnet icon indicating copy to clipboard operation
mxnet copied to clipboard

USE_CUDNN=1

Open MDR-EX1000 opened this issue 9 years ago • 1 comments

CUDA version 8.0 CuDNN version 5.1 MXNet Source Code: The latest version Compile Error:

src/operator/contrib/./fft-inl.h:107:5: error: ‘cufftHandle’ was not declared in this scope
     cufftHandle plan;
     ^
src/operator/contrib/./fft-inl.h:107:17: error: expected ‘;’ before ‘plan’
     cufftHandle plan;
                 ^
src/operator/contrib/./fft-inl.h:108:20: error: ‘plan’ was not declared in this scope
     cufftPlanMany(&plan, 1, &dim_, nullptr, 0, 0, nullptr, 0, 0, CUFFT_C2C, param_.compute_size);
                    ^
src/operator/contrib/./fft-inl.h:108:66: error: ‘CUFFT_C2C’ was not declared in this scope
     cufftPlanMany(&plan, 1, &dim_, nullptr, 0, 0, nullptr, 0, 0, CUFFT_C2C, param_.compute_size);
                                                                  ^
src/operator/contrib/./fft-inl.h:108:96: error: there are no arguments to ‘cufftPlanMany’ that depend on a template parameter, so a declaration of ‘cufftPlanMany’ must be available [-fpermissive]
     cufftPlanMany(&plan, 1, &dim_, nullptr, 0, 0, nullptr, 0, 0, CUFFT_C2C, param_.compute_size);
                                                                                                ^
src/operator/contrib/./fft-inl.h:108:96: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
src/operator/contrib/./fft-inl.h:113:7: error: ‘cufftComplex’ was not declared in this scope
       cufftComplex* in_tmp = const_cast<cufftComplex*>(
       ^
src/operator/contrib/./fft-inl.h:113:21: error: ‘in_tmp’ was not declared in this scope
       cufftComplex* in_tmp = const_cast<cufftComplex*>(
                     ^
src/operator/contrib/./fft-inl.h:113:41: error: expected type-specifier before ‘cufftComplex’
       cufftComplex* in_tmp = const_cast<cufftComplex*>(
                                         ^
src/operator/contrib/./fft-inl.h:113:41: error: expected ‘>’ before ‘cufftComplex’
src/operator/contrib/./fft-inl.h:113:41: error: expected ‘(’ before ‘cufftComplex’
src/operator/contrib/./fft-inl.h:113:54: error: expected primary-expression before ‘>’ token
       cufftComplex* in_tmp = const_cast<cufftComplex*>(
                                                      ^
src/operator/contrib/./fft-inl.h:114:32: error: ISO C++ forbids declaration of ‘type name’ with no type [-fpermissive]
         reinterpret_cast<const cufftComplex*>(complex_data.dptr_));
                                ^
src/operator/contrib/./fft-inl.h:114:32: error: expected ‘>’ before ‘cufftComplex’
src/operator/contrib/./fft-inl.h:114:32: error: expected ‘(’ before ‘cufftComplex’
src/operator/contrib/./fft-inl.h:114:45: error: expected primary-expression before ‘>’ token
         reinterpret_cast<const cufftComplex*>(complex_data.dptr_));
                                             ^
src/operator/contrib/./fft-inl.h:114:67: error: expected ‘)’ before ‘;’ token
         reinterpret_cast<const cufftComplex*>(complex_data.dptr_));
                                                                   ^
src/operator/contrib/./fft-inl.h:114:67: error: expected ‘)’ before ‘;’ token
src/operator/contrib/./fft-inl.h:115:21: error: ‘out_tmp’ was not declared in this scope
       cufftComplex* out_tmp = reinterpret_cast<cufftComplex*>(out.dptr_ + 2*idx*stride_);
                     ^
src/operator/contrib/./fft-inl.h:115:48: error: expected type-specifier before ‘cufftComplex’
       cufftComplex* out_tmp = reinterpret_cast<cufftComplex*>(out.dptr_ + 2*idx*stride_);
                                                ^
src/operator/contrib/./fft-inl.h:115:48: error: expected ‘>’ before ‘cufftComplex’
src/operator/contrib/./fft-inl.h:115:48: error: expected ‘(’ before ‘cufftComplex’
src/operator/contrib/./fft-inl.h:115:61: error: expected primary-expression before ‘>’ token
       cufftComplex* out_tmp = reinterpret_cast<cufftComplex*>(out.dptr_ + 2*idx*stride_);
                                                             ^
src/operator/contrib/./fft-inl.h:115:89: error: expected ‘)’ before ‘;’ token
       cufftComplex* out_tmp = reinterpret_cast<cufftComplex*>(out.dptr_ + 2*idx*stride_);
                                                                                         ^
In file included from src/operator/contrib/./fft-inl.h:27:0,
                 from src/operator/contrib/fft.cc:25:
src/operator/contrib/./fft-inl.h:116:52: error: ‘CUFFT_FORWARD’ was not declared in this scope
       CHECK_EQ(cufftExecC2C(plan, in_tmp, out_tmp, CUFFT_FORWARD), CUFFT_SUCCESS);
                                                    ^
/home/mayuhao/mxnet/dmlc-core/include/dmlc/logging.h:89:61: note: in definition of macro ‘CHECK_BINARY_OP’
   if (dmlc::LogCheckError _check_err = dmlc::LogCheck##name(x, y))    \
                                                             ^
src/operator/contrib/./fft-inl.h:116:7: note: in expansion of macro ‘CHECK_EQ’
       CHECK_EQ(cufftExecC2C(plan, in_tmp, out_tmp, CUFFT_FORWARD), CUFFT_SUCCESS);
       ^
src/operator/contrib/./fft-inl.h:116:65: error: there are no arguments to ‘cufftExecC2C’ that depend on a template parameter, so a declaration of ‘cufftExecC2C’ must be available [-fpermissive]
       CHECK_EQ(cufftExecC2C(plan, in_tmp, out_tmp, CUFFT_FORWARD), CUFFT_SUCCESS);
                                                                 ^
/home/mayuhao/mxnet/dmlc-core/include/dmlc/logging.h:89:61: note: in definition of macro ‘CHECK_BINARY_OP’
   if (dmlc::LogCheckError _check_err = dmlc::LogCheck##name(x, y))    \
                                                             ^
src/operator/contrib/./fft-inl.h:116:7: note: in expansion of macro ‘CHECK_EQ’
       CHECK_EQ(cufftExecC2C(plan, in_tmp, out_tmp, CUFFT_FORWARD), CUFFT_SUCCESS);
       ^
src/operator/contrib/./fft-inl.h:116:68: error: ‘CUFFT_SUCCESS’ was not declared in this scope
       CHECK_EQ(cufftExecC2C(plan, in_tmp, out_tmp, CUFFT_FORWARD), CUFFT_SUCCESS);
                                                                    ^
/home/mayuhao/mxnet/dmlc-core/include/dmlc/logging.h:89:64: note: in definition of macro ‘CHECK_BINARY_OP’
   if (dmlc::LogCheckError _check_err = dmlc::LogCheck##name(x, y))    \
                                                                ^
src/operator/contrib/./fft-inl.h:116:7: note: in expansion of macro ‘CHECK_EQ’
       CHECK_EQ(cufftExecC2C(plan, in_tmp, out_tmp, CUFFT_FORWARD), CUFFT_SUCCESS);
       ^
In file included from src/operator/contrib/fft.cc:25:0:
src/operator/contrib/./fft-inl.h:118:22: error: there are no arguments to ‘cufftDestroy’ that depend on a template parameter, so a declaration of ‘cufftDestroy’ must be available [-fpermissive]
     cufftDestroy(plan);
                      ^
src/operator/contrib/./fft-inl.h:123:19: error: expected ‘;’ before ‘plan_remain’
       cufftHandle plan_remain;
                   ^
src/operator/contrib/./fft-inl.h:124:22: error: ‘plan_remain’ was not declared in this scope
       cufftPlanMany(&plan_remain, 1, &dim_, nullptr, 0, 0, nullptr, 0, 0,
                      ^
src/operator/contrib/./fft-inl.h:125:42: error: there are no arguments to ‘cufftPlanMany’ that depend on a template parameter, so a declaration of ‘cufftPlanMany’ must be available [-fpermissive]
                     CUFFT_C2C, remain_num);
                                          ^
src/operator/contrib/./fft-inl.h:132:7: error: ‘cufftComplex’ was not declared in this scope
       cufftComplex* in_tmp = const_cast<cufftComplex*>(
       ^
src/operator/contrib/./fft-inl.h:132:21: error: ‘in_tmp’ was not declared in this scope
       cufftComplex* in_tmp = const_cast<cufftComplex*>(
                     ^
src/operator/contrib/./fft-inl.h:132:41: error: expected type-specifier before ‘cufftComplex’
       cufftComplex* in_tmp = const_cast<cufftComplex*>(
                                         ^
src/operator/contrib/./fft-inl.h:132:41: error: expected ‘>’ before ‘cufftComplex’
src/operator/contrib/./fft-inl.h:132:41: error: expected ‘(’ before ‘cufftComplex’
src/operator/contrib/./fft-inl.h:132:54: error: expected primary-expression before ‘>’ token
       cufftComplex* in_tmp = const_cast<cufftComplex*>(
                                                      ^
src/operator/contrib/./fft-inl.h:133:32: error: ISO C++ forbids declaration of ‘type name’ with no type [-fpermissive]
         reinterpret_cast<const cufftComplex*>(complex_data.dptr_));
                                ^
src/operator/contrib/./fft-inl.h:133:32: error: expected ‘>’ before ‘cufftComplex’
src/operator/contrib/./fft-inl.h:133:32: error: expected ‘(’ before ‘cufftComplex’
src/operator/contrib/./fft-inl.h:133:45: error: expected primary-expression before ‘>’ token
         reinterpret_cast<const cufftComplex*>(complex_data.dptr_));
                                             ^
src/operator/contrib/./fft-inl.h:133:67: error: expected ‘)’ before ‘;’ token
         reinterpret_cast<const cufftComplex*>(complex_data.dptr_));
                                                                   ^
src/operator/contrib/./fft-inl.h:133:67: error: expected ‘)’ before ‘;’ token
src/operator/contrib/./fft-inl.h:134:21: error: ‘out_tmp’ was not declared in this scope
       cufftComplex* out_tmp = reinterpret_cast<cufftComplex*>(out.dptr_ + 2*num_compute*stride_);
                     ^
src/operator/contrib/./fft-inl.h:134:48: error: expected type-specifier before ‘cufftComplex’
       cufftComplex* out_tmp = reinterpret_cast<cufftComplex*>(out.dptr_ + 2*num_compute*stride_);
                                                ^
src/operator/contrib/./fft-inl.h:134:48: error: expected ‘>’ before ‘cufftComplex’
src/operator/contrib/./fft-inl.h:134:48: error: expected ‘(’ before ‘cufftComplex’
src/operator/contrib/./fft-inl.h:134:61: error: expected primary-expression before ‘>’ token
       cufftComplex* out_tmp = reinterpret_cast<cufftComplex*>(out.dptr_ + 2*num_compute*stride_);
                                                             ^
src/operator/contrib/./fft-inl.h:134:97: error: expected ‘)’ before ‘;’ token
       cufftComplex* out_tmp = reinterpret_cast<cufftComplex*>(out.dptr_ + 2*num_compute*stride_);
                                                                                                 ^
In file included from src/operator/contrib/./fft-inl.h:27:0,
                 from src/operator/contrib/fft.cc:25:
src/operator/contrib/./fft-inl.h:135:59: error: ‘CUFFT_FORWARD’ was not declared in this scope
       CHECK_EQ(cufftExecC2C(plan_remain, in_tmp, out_tmp, CUFFT_FORWARD), CUFFT_SUCCESS);
                                                           ^
/home/mayuhao/mxnet/dmlc-core/include/dmlc/logging.h:89:61: note: in definition of macro ‘CHECK_BINARY_OP’
   if (dmlc::LogCheckError _check_err = dmlc::LogCheck##name(x, y))    \
                                                             ^
src/operator/contrib/./fft-inl.h:135:7: note: in expansion of macro ‘CHECK_EQ’
       CHECK_EQ(cufftExecC2C(plan_remain, in_tmp, out_tmp, CUFFT_FORWARD), CUFFT_SUCCESS);
       ^
src/operator/contrib/./fft-inl.h:135:72: error: there are no arguments to ‘cufftExecC2C’ that depend on a template parameter, so a declaration of ‘cufftExecC2C’ must be available [-fpermissive]
       CHECK_EQ(cufftExecC2C(plan_remain, in_tmp, out_tmp, CUFFT_FORWARD), CUFFT_SUCCESS);
                                                                        ^
/home/mayuhao/mxnet/dmlc-core/include/dmlc/logging.h:89:61: note: in definition of macro ‘CHECK_BINARY_OP’
   if (dmlc::LogCheckError _check_err = dmlc::LogCheck##name(x, y))    \
                                                             ^
src/operator/contrib/./fft-inl.h:135:7: note: in expansion of macro ‘CHECK_EQ’
       CHECK_EQ(cufftExecC2C(plan_remain, in_tmp, out_tmp, CUFFT_FORWARD), CUFFT_SUCCESS);
       ^
src/operator/contrib/./fft-inl.h:135:75: error: ‘CUFFT_SUCCESS’ was not declared in this scope
       CHECK_EQ(cufftExecC2C(plan_remain, in_tmp, out_tmp, CUFFT_FORWARD), CUFFT_SUCCESS);
                                                                           ^
/home/mayuhao/mxnet/dmlc-core/include/dmlc/logging.h:89:64: note: in definition of macro ‘CHECK_BINARY_OP’
   if (dmlc::LogCheckError _check_err = dmlc::LogCheck##name(x, y))    \
                                                                ^
src/operator/contrib/./fft-inl.h:135:7: note: in expansion of macro ‘CHECK_EQ’
       CHECK_EQ(cufftExecC2C(plan_remain, in_tmp, out_tmp, CUFFT_FORWARD), CUFFT_SUCCESS);
       ^
In file included from src/operator/contrib/fft.cc:25:0:
src/operator/contrib/./fft-inl.h:136:31: error: there are no arguments to ‘cufftDestroy’ that depend on a template parameter, so a declaration of ‘cufftDestroy’ must be available [-fpermissive]
       cufftDestroy(plan_remain);
                               ^
src/operator/contrib/./fft-inl.h: In member function ‘virtual void mxnet::op::FFTOp<xpu, DType>::Backward(const mxnet::OpContext&, const std::vector<mxnet::TBlob>&, const std::vector<mxnet::TBlob>&, const std::vector<mxnet::TBlob>&, const std::vector<mxnet::OpReqType>&, const std::vector<mxnet::TBlob>&, const std::vector<mxnet::TBlob>&)’:
src/operator/contrib/./fft-inl.h:174:5: error: ‘cufftHandle’ was not declared in this scope
     cufftHandle plan;
     ^
src/operator/contrib/./fft-inl.h:174:17: error: expected ‘;’ before ‘plan’
     cufftHandle plan;
                 ^
src/operator/contrib/./fft-inl.h:175:20: error: ‘plan’ was not declared in this scope
     cufftPlanMany(&plan, 1, &dim_, nullptr, 0, 0, nullptr, 0, 0, CUFFT_C2C, param_.compute_size);
                    ^
src/operator/contrib/./fft-inl.h:175:66: error: ‘CUFFT_C2C’ was not declared in this scope
     cufftPlanMany(&plan, 1, &dim_, nullptr, 0, 0, nullptr, 0, 0, CUFFT_C2C, param_.compute_size);
                                                                  ^
src/operator/contrib/./fft-inl.h:175:96: error: there are no arguments to ‘cufftPlanMany’ that depend on a template parameter, so a declaration of ‘cufftPlanMany’ must be available [-fpermissive]
     cufftPlanMany(&plan, 1, &dim_, nullptr, 0, 0, nullptr, 0, 0, CUFFT_C2C, param_.compute_size);
                                                                                                ^
src/operator/contrib/./fft-inl.h:177:7: error: ‘cufftComplex’ was not declared in this scope
       cufftComplex* in_tmp = const_cast<cufftComplex*>(
       ^
src/operator/contrib/./fft-inl.h:177:21: error: ‘in_tmp’ was not declared in this scope
       cufftComplex* in_tmp = const_cast<cufftComplex*>(
                     ^
src/operator/contrib/./fft-inl.h:177:41: error: expected type-specifier before ‘cufftComplex’
       cufftComplex* in_tmp = const_cast<cufftComplex*>(
                                         ^
src/operator/contrib/./fft-inl.h:177:41: error: expected ‘>’ before ‘cufftComplex’
src/operator/contrib/./fft-inl.h:177:41: error: expected ‘(’ before ‘cufftComplex’
src/operator/contrib/./fft-inl.h:177:54: error: expected primary-expression before ‘>’ token
       cufftComplex* in_tmp = const_cast<cufftComplex*>(
                                                      ^
src/operator/contrib/./fft-inl.h:178:32: error: ISO C++ forbids declaration of ‘type name’ with no type [-fpermissive]
         reinterpret_cast<const cufftComplex*>(grad.dptr_ + 2*idx*stride_));
                                ^
src/operator/contrib/./fft-inl.h:178:32: error: expected ‘>’ before ‘cufftComplex’
src/operator/contrib/./fft-inl.h:178:32: error: expected ‘(’ before ‘cufftComplex’
src/operator/contrib/./fft-inl.h:178:45: error: expected primary-expression before ‘>’ token
         reinterpret_cast<const cufftComplex*>(grad.dptr_ + 2*idx*stride_));
                                             ^
src/operator/contrib/./fft-inl.h:178:75: error: expected ‘)’ before ‘;’ token
         reinterpret_cast<const cufftComplex*>(grad.dptr_ + 2*idx*stride_));
                                                                           ^
src/operator/contrib/./fft-inl.h:178:75: error: expected ‘)’ before ‘;’ token
src/operator/contrib/./fft-inl.h:179:21: error: ‘out_tmp’ was not declared in this scope
       cufftComplex* out_tmp = reinterpret_cast<cufftComplex*>(complex_data.dptr_);
                     ^
src/operator/contrib/./fft-inl.h:179:48: error: expected type-specifier before ‘cufftComplex’
       cufftComplex* out_tmp = reinterpret_cast<cufftComplex*>(complex_data.dptr_);
                                                ^
src/operator/contrib/./fft-inl.h:179:48: error: expected ‘>’ before ‘cufftComplex’
src/operator/contrib/./fft-inl.h:179:48: error: expected ‘(’ before ‘cufftComplex’
src/operator/contrib/./fft-inl.h:179:61: error: expected primary-expression before ‘>’ token
       cufftComplex* out_tmp = reinterpret_cast<cufftComplex*>(complex_data.dptr_);
                                                             ^
src/operator/contrib/./fft-inl.h:179:82: error: expected ‘)’ before ‘;’ token
       cufftComplex* out_tmp = reinterpret_cast<cufftComplex*>(complex_data.dptr_);
                                                                                  ^
In file included from src/operator/contrib/./fft-inl.h:27:0,
                 from src/operator/contrib/fft.cc:25:
src/operator/contrib/./fft-inl.h:180:52: error: ‘CUFFT_INVERSE’ was not declared in this scope
       CHECK_EQ(cufftExecC2C(plan, in_tmp, out_tmp, CUFFT_INVERSE), CUFFT_SUCCESS);
                                                    ^
/home/mayuhao/mxnet/dmlc-core/include/dmlc/logging.h:89:61: note: in definition of macro ‘CHECK_BINARY_OP’
   if (dmlc::LogCheckError _check_err = dmlc::LogCheck##name(x, y))    \
                                                             ^
src/operator/contrib/./fft-inl.h:180:7: note: in expansion of macro ‘CHECK_EQ’
       CHECK_EQ(cufftExecC2C(plan, in_tmp, out_tmp, CUFFT_INVERSE), CUFFT_SUCCESS);
       ^
src/operator/contrib/./fft-inl.h:180:65: error: there are no arguments to ‘cufftExecC2C’ that depend on a template parameter, so a declaration of ‘cufftExecC2C’ must be available [-fpermissive]
       CHECK_EQ(cufftExecC2C(plan, in_tmp, out_tmp, CUFFT_INVERSE), CUFFT_SUCCESS);
                                                                 ^
/home/mayuhao/mxnet/dmlc-core/include/dmlc/logging.h:89:61: note: in definition of macro ‘CHECK_BINARY_OP’
   if (dmlc::LogCheckError _check_err = dmlc::LogCheck##name(x, y))    \
                                                             ^
src/operator/contrib/./fft-inl.h:180:7: note: in expansion of macro ‘CHECK_EQ’
       CHECK_EQ(cufftExecC2C(plan, in_tmp, out_tmp, CUFFT_INVERSE), CUFFT_SUCCESS);
       ^
src/operator/contrib/./fft-inl.h:180:68: error: ‘CUFFT_SUCCESS’ was not declared in this scope
       CHECK_EQ(cufftExecC2C(plan, in_tmp, out_tmp, CUFFT_INVERSE), CUFFT_SUCCESS);
                                                                    ^
/home/mayuhao/mxnet/dmlc-core/include/dmlc/logging.h:89:64: note: in definition of macro ‘CHECK_BINARY_OP’
   if (dmlc::LogCheckError _check_err = dmlc::LogCheck##name(x, y))    \
                                                                ^
src/operator/contrib/./fft-inl.h:180:7: note: in expansion of macro ‘CHECK_EQ’
       CHECK_EQ(cufftExecC2C(plan, in_tmp, out_tmp, CUFFT_INVERSE), CUFFT_SUCCESS);
       ^
In file included from src/operator/contrib/fft.cc:25:0:
src/operator/contrib/./fft-inl.h:185:22: error: there are no arguments to ‘cufftDestroy’ that depend on a template parameter, so a declaration of ‘cufftDestroy’ must be available [-fpermissive]
     cufftDestroy(plan);
                      ^
src/operator/contrib/./fft-inl.h:190:19: error: expected ‘;’ before ‘plan_remain’
       cufftHandle plan_remain;
                   ^
src/operator/contrib/./fft-inl.h:191:22: error: ‘plan_remain’ was not declared in this scope
       cufftPlanMany(&plan_remain, 1, &dim_, nullptr, 0, 0, nullptr, 0, 0,
                      ^
src/operator/contrib/./fft-inl.h:192:42: error: there are no arguments to ‘cufftPlanMany’ that depend on a template parameter, so a declaration of ‘cufftPlanMany’ must be available [-fpermissive]
                     CUFFT_C2C, remain_num);
                                          ^
src/operator/contrib/./fft-inl.h:196:7: error: ‘cufftComplex’ was not declared in this scope
       cufftComplex* in_tmp = const_cast<cufftComplex*>(
       ^
src/operator/contrib/./fft-inl.h:196:21: error: ‘in_tmp’ was not declared in this scope
       cufftComplex* in_tmp = const_cast<cufftComplex*>(
                     ^
src/operator/contrib/./fft-inl.h:196:41: error: expected type-specifier before ‘cufftComplex’
       cufftComplex* in_tmp = const_cast<cufftComplex*>(
                                         ^
src/operator/contrib/./fft-inl.h:196:41: error: expected ‘>’ before ‘cufftComplex’
src/operator/contrib/./fft-inl.h:196:41: error: expected ‘(’ before ‘cufftComplex’
src/operator/contrib/./fft-inl.h:196:54: error: expected primary-expression before ‘>’ token
       cufftComplex* in_tmp = const_cast<cufftComplex*>(
                                                      ^
src/operator/contrib/./fft-inl.h:197:32: error: ISO C++ forbids declaration of ‘type name’ with no type [-fpermissive]
         reinterpret_cast<const cufftComplex*>(grad.dptr_ + 2*num_compute*stride_));
                                ^
src/operator/contrib/./fft-inl.h:197:32: error: expected ‘>’ before ‘cufftComplex’
src/operator/contrib/./fft-inl.h:197:32: error: expected ‘(’ before ‘cufftComplex’
src/operator/contrib/./fft-inl.h:197:45: error: expected primary-expression before ‘>’ token
         reinterpret_cast<const cufftComplex*>(grad.dptr_ + 2*num_compute*stride_));
                                             ^
src/operator/contrib/./fft-inl.h:197:83: error: expected ‘)’ before ‘;’ token
         reinterpret_cast<const cufftComplex*>(grad.dptr_ + 2*num_compute*stride_));
                                                                                   ^
src/operator/contrib/./fft-inl.h:197:83: error: expected ‘)’ before ‘;’ token
src/operator/contrib/./fft-inl.h:198:21: error: ‘out_tmp’ was not declared in this scope
       cufftComplex* out_tmp = reinterpret_cast<cufftComplex*>(complex_data.dptr_);
                     ^
src/operator/contrib/./fft-inl.h:198:48: error: expected type-specifier before ‘cufftComplex’
       cufftComplex* out_tmp = reinterpret_cast<cufftComplex*>(complex_data.dptr_);
                                                ^
src/operator/contrib/./fft-inl.h:198:48: error: expected ‘>’ before ‘cufftComplex’
src/operator/contrib/./fft-inl.h:198:48: error: expected ‘(’ before ‘cufftComplex’
src/operator/contrib/./fft-inl.h:198:61: error: expected primary-expression before ‘>’ token
       cufftComplex* out_tmp = reinterpret_cast<cufftComplex*>(complex_data.dptr_);
                                                             ^
src/operator/contrib/./fft-inl.h:198:82: error: expected ‘)’ before ‘;’ token
       cufftComplex* out_tmp = reinterpret_cast<cufftComplex*>(complex_data.dptr_);
                                                                                  ^
In file included from src/operator/contrib/./fft-inl.h:27:0,
                 from src/operator/contrib/fft.cc:25:
src/operator/contrib/./fft-inl.h:199:59: error: ‘CUFFT_INVERSE’ was not declared in this scope
       CHECK_EQ(cufftExecC2C(plan_remain, in_tmp, out_tmp, CUFFT_INVERSE), CUFFT_SUCCESS);
                                                           ^
/home/mayuhao/mxnet/dmlc-core/include/dmlc/logging.h:89:61: note: in definition of macro ‘CHECK_BINARY_OP’
   if (dmlc::LogCheckError _check_err = dmlc::LogCheck##name(x, y))    \
                                                             ^
src/operator/contrib/./fft-inl.h:199:7: note: in expansion of macro ‘CHECK_EQ’
       CHECK_EQ(cufftExecC2C(plan_remain, in_tmp, out_tmp, CUFFT_INVERSE), CUFFT_SUCCESS);
       ^
src/operator/contrib/./fft-inl.h:199:72: error: there are no arguments to ‘cufftExecC2C’ that depend on a template parameter, so a declaration of ‘cufftExecC2C’ must be available [-fpermissive]
       CHECK_EQ(cufftExecC2C(plan_remain, in_tmp, out_tmp, CUFFT_INVERSE), CUFFT_SUCCESS);
                                                                        ^
/home/mayuhao/mxnet/dmlc-core/include/dmlc/logging.h:89:61: note: in definition of macro ‘CHECK_BINARY_OP’
   if (dmlc::LogCheckError _check_err = dmlc::LogCheck##name(x, y))    \
                                                             ^
src/operator/contrib/./fft-inl.h:199:7: note: in expansion of macro ‘CHECK_EQ’
       CHECK_EQ(cufftExecC2C(plan_remain, in_tmp, out_tmp, CUFFT_INVERSE), CUFFT_SUCCESS);
       ^
src/operator/contrib/./fft-inl.h:199:75: error: ‘CUFFT_SUCCESS’ was not declared in this scope
       CHECK_EQ(cufftExecC2C(plan_remain, in_tmp, out_tmp, CUFFT_INVERSE), CUFFT_SUCCESS);
                                                                           ^
/home/mayuhao/mxnet/dmlc-core/include/dmlc/logging.h:89:64: note: in definition of macro ‘CHECK_BINARY_OP’
   if (dmlc::LogCheckError _check_err = dmlc::LogCheck##name(x, y))    \
                                                                ^
src/operator/contrib/./fft-inl.h:199:7: note: in expansion of macro ‘CHECK_EQ’
       CHECK_EQ(cufftExecC2C(plan_remain, in_tmp, out_tmp, CUFFT_INVERSE), CUFFT_SUCCESS);
       ^
In file included from src/operator/contrib/fft.cc:25:0:
src/operator/contrib/./fft-inl.h:204:31: error: there are no arguments to ‘cufftDestroy’ that depend on a template parameter, so a declaration of ‘cufftDestroy’ must be available [-fpermissive]
       cufftDestroy(plan_remain);
                               ^
make: *** [build/src/operator/contrib/fft.o] Error 1

MDR-EX1000 avatar Oct 20 '17 09:10 MDR-EX1000

Did you install the complete cuda toolkit? Looks like cufft is missing. Can you check /usr/local/cuda/lib64 and /usr/local/cuda/include and see whether cufft is there?

reminisce avatar Oct 20 '17 17:10 reminisce