Skip to content

Instantly share code, notes, and snippets.

@skn123
Created July 2, 2018 07:21
Show Gist options
  • Save skn123/468da66eb7f1027569991c90e93fd06b to your computer and use it in GitHub Desktop.
Save skn123/468da66eb7f1027569991c90e93fd06b to your computer and use it in GitHub Desktop.
fft enable error
/home/naths/sandbox/caffe_copy/src/caffe/layers/conv_layer_fft.cpp:402:15: error:
no member named 'backward_cpu_bias' in
'caffe::ConvolutionLayerFFT<caffe::half_fp, caffe::half_fp,
caffe::half_fp>'
this->backward_cpu_bias(bias_diff, top_diff + n * this->top_dim_);
~~~~ ^
/home/naths/sandbox/caffe_copy/src/caffe/layers/conv_layer_fft.cpp:446:30: note:
in instantiation of member function
'caffe::ConvolutionLayerFFT<caffe::half_fp, caffe::half_fp,
caffe::half_fp>::Backward_cpu' requested here
INSTANTIATE_CLASS_3T_GUARDED(ConvolutionLayerFFT, (half_fp), (half_fp), ...
^
/home/naths/sandbox/caffe_copy/src/caffe/layers/conv_layer_fft.cpp:409:17: error:
no member named 'weight_cpu_gemm' in
'caffe::ConvolutionLayerFFT<caffe::half_fp, caffe::half_fp,
caffe::half_fp>'
this->weight_cpu_gemm(bottom_data + n * this->bottom_dim_,
~~~~ ^
/home/naths/sandbox/caffe_copy/src/caffe/layers/conv_layer_fft.cpp:277:11: error:
no member named 'forward_cpu_bias' in
'caffe::ConvolutionLayerFFT<caffe::half_fp, caffe::half_fp,
caffe::half_fp>'
this->forward_cpu_bias(top_data + top_data_offset, bias);
~~~~ ^
@skn123
Copy link
Author

skn123 commented Jul 2, 2018

More errors if I hack in to enable clFFT

/home/naths/sandbox/caffe_copy/src/caffe/util/cl_fft_state.cpp:16:5: error: no
member named 'clfftGetErrorString' in namespace 'caffe::caffe'; did you
mean 'clGetErrorString'?
CLFFT_CHECK(clfftInitSetupData(&fftSetup));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/naths/sandbox/caffe_copy/include/caffe/backend/opencl/caffe_opencl.hpp:88:10: note:
expanded from macro 'CLFFT_CHECK'
<< caffe::clfftGetErrorString(status);
^~~~~~~
/home/naths/sandbox/caffe_copy/include/caffe/backend/opencl/caffe_opencl.hpp:66:13: note:
'clGetErrorString' declared here
const char* clGetErrorString(cl_int error);
^
/home/naths/sandbox/caffe_copy/src/caffe/util/cl_fft_state.cpp:17:5: error: no
member named 'clfftGetErrorString' in namespace 'caffe::caffe'; did you
mean 'clGetErrorString'?
CLFFT_CHECK(clfftSetup(&fftSetup));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/naths/sandbox/caffe_copy/include/caffe/backend/opencl/caffe_opencl.hpp:88:10: note:
expanded from macro 'CLFFT_CHECK'
<< caffe::clfftGetErrorString(status);
^~~~~~~
/home/naths/sandbox/caffe_copy/include/caffe/backend/opencl/caffe_opencl.hpp:66:13: note:
'clGetErrorString' declared here
const char* clGetErrorString(cl_int error);
^
/home/naths/sandbox/caffe_copy/src/caffe/util/cl_fft_state.cpp:31:5: error: no
member named 'clfftGetErrorString' in namespace 'caffe::caffe'; did you
mean 'clGetErrorString'?
CLFFT_CHECK(clfftDestroyPlan(&(it->second)));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/naths/sandbox/caffe_copy/include/caffe/backend/opencl/caffe_opencl.hpp:88:10: note:
expanded from macro 'CLFFT_CHECK'
<< caffe::clfftGetErrorString(status);
^~~~~~~
/home/naths/sandbox/caffe_copy/include/caffe/backend/opencl/caffe_opencl.hpp:66:13: note:
'clGetErrorString' declared here
const char* clGetErrorString(cl_int error);
^
/home/naths/sandbox/caffe_copy/src/caffe/util/cl_fft_state.cpp:37:5: error: no
member named 'clfftGetErrorString' in namespace 'caffe::caffe'; did you
mean 'clGetErrorString'?
CLFFT_CHECK(clfftDestroyPlan(&(it->second)));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/naths/sandbox/caffe_copy/include/caffe/backend/opencl/caffe_opencl.hpp:88:10: note:
expanded from macro 'CLFFT_CHECK'
<< caffe::clfftGetErrorString(status);
^~~~~~~
/home/naths/sandbox/caffe_copy/include/caffe/backend/opencl/caffe_opencl.hpp:66:13: note:
'clGetErrorString' declared here
const char* clGetErrorString(cl_int error);
^
/home/naths/sandbox/caffe_copy/src/caffe/util/cl_fft_state.cpp:42:5: error: no
member named 'clfftGetErrorString' in namespace 'caffe::caffe'; did you
mean 'clGetErrorString'?
CLFFT_CHECK(clfftDestroyPlan(&(it->second)));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/naths/sandbox/caffe_copy/include/caffe/backend/opencl/caffe_opencl.hpp:88:10: note:
expanded from macro 'CLFFT_CHECK'
<< caffe::clfftGetErrorString(status);
^~~~~~~
/home/naths/sandbox/caffe_copy/include/caffe/backend/opencl/caffe_opencl.hpp:66:13: note:
'clGetErrorString' declared here
const char* clGetErrorString(cl_int error);
^
/home/naths/sandbox/caffe_copy/src/caffe/util/cl_fft_state.cpp:48:5: error: no
member named 'clfftGetErrorString' in namespace 'caffe::caffe'; did you
mean 'clGetErrorString'?
CLFFT_CHECK(clfftDestroyPlan(&(it->second)));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/naths/sandbox/caffe_copy/include/caffe/backend/opencl/caffe_opencl.hpp:88:10: note:
expanded from macro 'CLFFT_CHECK'
<< caffe::clfftGetErrorString(status);
^~~~~~~
/home/naths/sandbox/caffe_copy/include/caffe/backend/opencl/caffe_opencl.hpp:66:13: note:
'clGetErrorString' declared here
const char* clGetErrorString(cl_int error);
^
/home/naths/sandbox/caffe_copy/src/caffe/util/cl_fft_state.cpp:54:5: error: no
member named 'clfftGetErrorString' in namespace 'caffe::caffe'; did you
mean 'clGetErrorString'?
CLFFT_CHECK(clfftDestroyPlan(&(it->second)));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/naths/sandbox/caffe_copy/include/caffe/backend/opencl/caffe_opencl.hpp:88:10: note:
expanded from macro 'CLFFT_CHECK'
<< caffe::clfftGetErrorString(status);
^~~~~~~
/home/naths/sandbox/caffe_copy/include/caffe/backend/opencl/caffe_opencl.hpp:66:13: note:
'clGetErrorString' declared here
const char* clGetErrorString(cl_int error);
^
/home/naths/sandbox/caffe_copy/src/caffe/util/cl_fft_state.cpp:58:3: error: no
member named 'clfftGetErrorString' in namespace 'caffe::caffe'; did you
mean 'clGetErrorString'?
CLFFT_CHECK(clfftTeardown());
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/naths/sandbox/caffe_copy/include/caffe/backend/opencl/caffe_opencl.hpp:88:10: note:
expanded from macro 'CLFFT_CHECK'
<< caffe::clfftGetErrorString(status);
^~~~~~~
/home/naths/sandbox/caffe_copy/include/caffe/backend/opencl/caffe_opencl.hpp:66:13: note:
'clGetErrorString' declared here
const char* clGetErrorString(cl_int error);
^
/home/naths/sandbox/caffe_copy/src/caffe/util/cl_fft_state.cpp:183:3: error: no
member named 'clfftGetErrorString' in namespace 'caffe::caffe'; did you
mean 'clGetErrorString'?
CLFFT_CHECK(clfftCreateDefaultPlan(&handle, ctx.handle().get(),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/naths/sandbox/caffe_copy/include/caffe/backend/opencl/caffe_opencl.hpp:88:10: note:
expanded from macro 'CLFFT_CHECK'
<< caffe::clfftGetErrorString(status);
^~~~~~~
/home/naths/sandbox/caffe_copy/include/caffe/backend/opencl/caffe_opencl.hpp:66:13: note:
'clGetErrorString' declared here
const char* clGetErrorString(cl_int error);
^
/home/naths/sandbox/caffe_copy/src/caffe/util/cl_fft_state.cpp:193:5: error: no
member named 'clfftGetErrorString' in namespace 'caffe::caffe'; did you
mean 'clGetErrorString'?
CLFFT_CHECK(clfftSetLayout(handle, CLFFT_REAL,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/naths/sandbox/caffe_copy/include/caffe/backend/opencl/caffe_opencl.hpp:88:10: note:
expanded from macro 'CLFFT_CHECK'
<< caffe::clfftGetErrorString(status);
^~~~~~~
/home/naths/sandbox/caffe_copy/include/caffe/backend/opencl/caffe_opencl.hpp:66:13: note:
'clGetErrorString' declared here
const char* clGetErrorString(cl_int error);
^
/home/naths/sandbox/caffe_copy/src/caffe/util/cl_fft_state.cpp:203:5: error: no
member named 'clfftGetErrorString' in namespace 'caffe::caffe'; did you
mean 'clGetErrorString'?
CLFFT_CHECK(clfftSetLayout(handle, CLFFT_HERMITIAN_INTERLEAVED,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/naths/sandbox/caffe_copy/include/caffe/backend/opencl/caffe_opencl.hpp:88:10: note:
expanded from macro 'CLFFT_CHECK'
<< caffe::clfftGetErrorString(status);
^~~~~~~
/home/naths/sandbox/caffe_copy/include/caffe/backend/opencl/caffe_opencl.hpp:66:13: note:
'clGetErrorString' declared here
const char* clGetErrorString(cl_int error);
^
/home/naths/sandbox/caffe_copy/src/caffe/util/cl_fft_state.cpp:206:5: error: no
member named 'clfftGetErrorString' in namespace 'caffe::caffe'; did you
mean 'clGetErrorString'?
CLFFT_CHECK(clfftDestroyPlan(&handle));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/naths/sandbox/caffe_copy/include/caffe/backend/opencl/caffe_opencl.hpp:88:10: note:
expanded from macro 'CLFFT_CHECK'
<< caffe::clfftGetErrorString(status);
^~~~~~~
/home/naths/sandbox/caffe_copy/include/caffe/backend/opencl/caffe_opencl.hpp:66:13: note:
'clGetErrorString' declared here
const char* clGetErrorString(cl_int error);
^
/home/naths/sandbox/caffe_copy/src/caffe/util/math_random.cpp:294:15: warning:
explicit instantiation of 'caffe_rng_bernoulli<caffe::half_fp, int>' that
occurs after an explicit specialization has no effect
[-Winstantiation-after-specialization]
template void caffe_rng_bernoulli<half_fp, int32_t>(const int_tp n,
^
/home/naths/sandbox/caffe_copy/src/caffe/util/math_random.cpp:118:6: note:
previous template specialization is here
void caffe_rng_bernoulli<half_fp, int32_t>(const int_tp n,
^
/home/naths/sandbox/caffe_copy/src/caffe/util/math_random.cpp:302:15: warning:
explicit instantiation of 'caffe_rng_bernoulli<caffe::half_fp, unsigned
int>' that occurs after an explicit specialization has no effect
[-Winstantiation-after-specialization]
template void caffe_rng_bernoulli<half_fp, uint32_t>(const int_tp n,
^
/home/naths/sandbox/caffe_copy/src/caffe/util/math_random.cpp:136:6: note:
previous template specialization is here
void caffe_rng_bernoulli<half_fp, uint32_t>(const int_tp n,
^
/home/naths/sandbox/caffe_copy/src/caffe/util/cl_fft_state.cpp:211:3: error: no
member named 'clfftGetErrorString' in namespace 'caffe::caffe'; did you
mean 'clGetErrorString'?
CLFFT_CHECK(clfftSetResultLocation(handle, CLFFT_OUTOFPLACE));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/naths/sandbox/caffe_copy/include/caffe/backend/opencl/caffe_opencl.hpp:88:10: note:
expanded from macro 'CLFFT_CHECK'
<< caffe::clfftGetErrorString(status);
^~~~~~~
/home/naths/sandbox/caffe_copy/include/caffe/backend/opencl/caffe_opencl.hpp:66:13: note:
'clGetErrorString' declared here
const char* clGetErrorString(cl_int error);
^
/home/naths/sandbox/caffe_copy/src/caffe/util/cl_fft_state.cpp:212:3: error: no
member named 'clfftGetErrorString' in namespace 'caffe::caffe'; did you
mean 'clGetErrorString'?
CLFFT_CHECK(clfftSetPlanPrecision(handle, CLFFT_SINGLE));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/naths/sandbox/caffe_copy/include/caffe/backend/opencl/caffe_opencl.hpp:88:10: note:
expanded from macro 'CLFFT_CHECK'
<< caffe::clfftGetErrorString(status);
^~~~~~~
/home/naths/sandbox/caffe_copy/include/caffe/backend/opencl/caffe_opencl.hpp:66:13: note:
'clGetErrorString' declared here
const char* clGetErrorString(cl_int error);
^
/home/naths/sandbox/caffe_copy/src/caffe/util/cl_fft_state.cpp:213:3: error: no
member named 'clfftGetErrorString' in namespace 'caffe::caffe'; did you
mean 'clGetErrorString'?
CLFFT_CHECK(clfftSetPlanScale(handle, dir, scale));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/naths/sandbox/caffe_copy/include/caffe/backend/opencl/caffe_opencl.hpp:88:10: note:
expanded from macro 'CLFFT_CHECK'
<< caffe::clfftGetErrorString(status);
^~~~~~~
/home/naths/sandbox/caffe_copy/include/caffe/backend/opencl/caffe_opencl.hpp:66:13: note:
'clGetErrorString' declared here
const char* clGetErrorString(cl_int error);
^
/home/naths/sandbox/caffe_copy/src/caffe/util/cl_fft_state.cpp:214:3: error: no
member named 'clfftGetErrorString' in namespace 'caffe::caffe'; did you
mean 'clGetErrorString'?
CLFFT_CHECK(clfftSetPlanBatchSize(handle, batch_size));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/naths/sandbox/caffe_copy/include/caffe/backend/opencl/caffe_opencl.hpp:88:10: note:
expanded from macro 'CLFFT_CHECK'
<< caffe::clfftGetErrorString(status);
^~~~~~~
/home/naths/sandbox/caffe_copy/include/caffe/backend/opencl/caffe_opencl.hpp:66:13: note:
'clGetErrorString' declared here
const char* clGetErrorString(cl_int error);
^
/home/naths/sandbox/caffe_copy/src/caffe/util/persistent_storage.cpp:15:15: warning:
extra tokens at end of #ifdef directive [-Wextra-tokens]
#ifdef defined(APPLE) || defined(MACH)
^
//
/home/naths/sandbox/caffe_copy/src/caffe/util/cl_fft_state.cpp:215:3: error: no
member named 'clfftGetErrorString' in namespace 'caffe::caffe'; did you
mean 'clGetErrorString'?
CLFFT_CHECK(clfftSetPlanDistance(handle, idist, odist));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/naths/sandbox/caffe_copy/include/caffe/backend/opencl/caffe_opencl.hpp:88:10: note:
expanded from macro 'CLFFT_CHECK'
<< caffe::clfftGetErrorString(status);
^~~~~~~
/home/naths/sandbox/caffe_copy/include/caffe/backend/opencl/caffe_opencl.hpp:66:13: note:
'clGetErrorString' declared here
const char* clGetErrorString(cl_int error);
^
/home/naths/sandbox/caffe_copy/src/caffe/util/cl_fft_state.cpp:216:3: error: no
member named 'clfftGetErrorString' in namespace 'caffe::caffe'; did you
mean 'clGetErrorString'?
CLFFT_CHECK(clfftSetPlanInStride(handle, CLFFT_2D, instrides));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/naths/sandbox/caffe_copy/include/caffe/backend/opencl/caffe_opencl.hpp:88:10: note:
expanded from macro 'CLFFT_CHECK'
<< caffe::clfftGetErrorString(status);
^~~~~~~
/home/naths/sandbox/caffe_copy/include/caffe/backend/opencl/caffe_opencl.hpp:66:13: note:
'clGetErrorString' declared here
const char* clGetErrorString(cl_int error);
^
/home/naths/sandbox/caffe_copy/src/caffe/util/cl_fft_state.cpp:217:3: error: no
member named 'clfftGetErrorString' in namespace 'caffe::caffe'; did you
mean 'clGetErrorString'?
CLFFT_CHECK(clfftSetPlanOutStride(handle, CLFFT_2D, outstrides));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/naths/sandbox/caffe_copy/include/caffe/backend/opencl/caffe_opencl.hpp:88:10: note:
expanded from macro 'CLFFT_CHECK'
<< caffe::clfftGetErrorString(status);
^~~~~~~
/home/naths/sandbox/caffe_copy/include/caffe/backend/opencl/caffe_opencl.hpp:66:13: note:
'clGetErrorString' declared here
const char* clGetErrorString(cl_int error);
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
src/caffe/CMakeFiles/caffe.dir/build.make:1960: recipe for target 'src/caffe/CMakeFiles/caffe.dir/util/cl_fft_state.cpp.o' failed
make[2]: *** [src/caffe/CMakeFiles/caffe.dir/util/cl_fft_state.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/home/naths/sandbox/caffe_copy/src/caffe/util/cl_fft.cpp:31:33: error: too many
arguments to function call, expected 3, have 5
dc->memset(dc->id(), size, 0, (cl_mem) data, 0);

/home/naths/sandbox/caffe_copy/include/caffe/backend/device.hpp:221:3: note: 
    'memset' declared here
void memset(const uint_tp n, const char alpha, vptr<char> x);
^
/home/naths/sandbox/caffe_copy/src/caffe/util/cl_fft.cpp:54:5: error: use of
    undeclared identifier 'CL_KERNEL_SELECT'
  CL_KERNEL_SELECT("copy2buffer_cyclic_shift_in"));
  ^
/home/naths/sandbox/caffe_copy/src/caffe/util/cl_fft.cpp:55:24: error: use of
    undeclared identifier 'WrapHandle'
kernel.arg(argIdx++, WrapHandle((cl_mem)fft_gpu_weights_real, &ctx));
                     ^
/home/naths/sandbox/caffe_copy/src/caffe/util/cl_fft.cpp:57:24: error: use of
    undeclared identifier 'WrapHandle'
kernel.arg(argIdx++, WrapHandle((cl_mem)weight, &ctx));
                     ^
/home/naths/sandbox/caffe_copy/src/caffe/util/cl_fft.cpp:53:27: error: 
    declaration of reference variable 'kernel' requires an initializer
viennacl::ocl::kernel & kernel = ctx.get_kernel("kernel_program",
                        ^~~~~~
/home/naths/sandbox/caffe_copy/src/caffe/util/cl_fft.cpp:79:15: note: in
    instantiation of function template specialization
    'caffe::fft_gpu_copy2buffer<float>' requested here
template void fft_gpu_copy2buffer<float>(float* fft_gpu_weights_real,
            ^
/home/naths/sandbox/caffe_copy/src/caffe/util/cl_fft.cpp:53:27: error: 
    declaration of reference variable 'kernel' requires an initializer
viennacl::ocl::kernel & kernel = ctx.get_kernel("kernel_program",
                        ^~~~~~
/home/naths/sandbox/caffe_copy/src/caffe/util/cl_fft.cpp:83:15: note: in
    instantiation of function template specialization
    'caffe::fft_gpu_copy2buffer<double>' requested here
template void fft_gpu_copy2buffer<double>(double* fft_gpu_weights_real,
            ^
/home/naths/sandbox/caffe_copy/src/caffe/util/cl_fft.cpp:107:7: error: use of
    undeclared identifier 'CL_KERNEL_SELECT'
    CL_KERNEL_SELECT("copy2buffer_left_top_in_naive_2d"));
    ^
/home/naths/sandbox/caffe_copy/src/caffe/util/cl_fft.cpp:110:7: error: use of
    undeclared identifier 'CL_KERNEL_SELECT'
    CL_KERNEL_SELECT("copy2buffer_left_top_in_2d"));
    ^
1 warning generated.
/home/naths/sandbox/caffe_copy/src/caffe/util/cl_fft.cpp:113:24: error: use of
    undeclared identifier 'WrapHandle'
kernel.arg(argIdx++, WrapHandle((cl_mem)map_out, &ctx));
                     ^
/home/naths/sandbox/caffe_copy/src/caffe/util/cl_fft.cpp:115:24: error: use of
    undeclared identifier 'WrapHandle'
kernel.arg(argIdx++, WrapHandle((cl_mem)map_in, &ctx));
                     ^
/home/naths/sandbox/caffe_copy/src/caffe/util/cl_fft.cpp:167:9: error: use of
    undeclared identifier 'CL_KERNEL_SELECT'
      CL_KERNEL_SELECT("copy2buffer_left_top_out_naive_2d"));
      ^
/home/naths/sandbox/caffe_copy/src/caffe/util/cl_fft.cpp:170:9: error: use of
    undeclared identifier 'CL_KERNEL_SELECT'
      CL_KERNEL_SELECT("copy2buffer_left_top_out_2d"));
      ^
/home/naths/sandbox/caffe_copy/src/caffe/util/cl_fft.cpp:173:24: error: use of
    undeclared identifier 'WrapHandle'
kernel.arg(argIdx++, WrapHandle((cl_mem)map_out, &ctx));
                     ^
/home/naths/sandbox/caffe_copy/src/caffe/util/cl_fft.cpp:175:24: error: use of
    undeclared identifier 'WrapHandle'
kernel.arg(argIdx++, WrapHandle((cl_mem)map_in, &ctx));
                     ^
/home/naths/sandbox/caffe_copy/src/caffe/util/cl_fft.cpp:226:7: error: use of
    undeclared identifier 'CL_KERNEL_SELECT'
    CL_KERNEL_SELECT("copy2buffer_cyclic_shift_out"));
    ^
/home/naths/sandbox/caffe_copy/src/caffe/util/cl_fft.cpp:228:24: error: use of
    undeclared identifier 'WrapHandle'
kernel.arg(argIdx++, WrapHandle((cl_mem)map_out, &ctx));
                     ^
/home/naths/sandbox/caffe_copy/src/caffe/util/cl_fft.cpp:230:24: error: use of
    undeclared identifier 'WrapHandle'
kernel.arg(argIdx++, WrapHandle((cl_mem)map_in, &ctx));
                     ^
/home/naths/sandbox/caffe_copy/src/caffe/util/cl_fft.cpp:225:26: error: 
    declaration of reference variable 'kernel' requires an initializer
viennacl::ocl::kernel &kernel = ctx.get_kernel("kernel_program",
                       ^~~~~~
/home/naths/sandbox/caffe_copy/src/caffe/util/cl_fft.cpp:252:15: note: in
    instantiation of function template specialization
    'caffe::fft_gpu_copy2buffer_out_backward<float>' requested here
template void fft_gpu_copy2buffer_out_backward<float>(float* map_out,
            ^
/home/naths/sandbox/caffe_copy/src/caffe/util/cl_fft.cpp:225:26: error: 
    declaration of reference variable 'kernel' requires an initializer
viennacl::ocl::kernel &kernel = ctx.get_kernel("kernel_program",
                       ^~~~~~
/home/naths/sandbox/caffe_copy/src/caffe/util/cl_fft.cpp:257:15: note: in
    instantiation of function template specialization
    'caffe::fft_gpu_copy2buffer_out_backward<double>' requested here
template void fft_gpu_copy2buffer_out_backward<double>(double* map_out,
            ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
src/caffe/CMakeFiles/caffe.dir/build.make:1947: recipe for target 'src/caffe/CMakeFiles/caffe.dir/util/cl_fft.cpp.o' failed
make[2]: *** [src/caffe/CMakeFiles/caffe.dir/util/cl_fft.cpp.o] Error 1
In file included from /home/naths/sandbox/caffe_copy/src/caffe/util/signal_handler.cpp:7:
In file included from /home/naths/sandbox/caffe_copy/include/caffe/util/signal_handler.h:5:
/home/naths/sandbox/caffe_copy/include/caffe/solver.hpp:40:21: warning: field
    'callbacks_' will be initialized after field 'requested_early_exit_'
    [-Wreorder]
  : device_(dev), callbacks_(), requested_early_exit_(false) {
                  ^

@skn123
Copy link
Author

skn123 commented Jul 2, 2018

If I enable DOUBLE I get these errors

/home/naths/sandbox/caffe_copy/src/caffe/backend/device_math_blas1.cpp:142:68: error:
too few arguments to function call, expected at least 5, have 3
this->template GetLibDNNBlas<double, double>()->axpby(n, alpha, x);

/home/naths/sandbox/caffe_copy/include/caffe/libdnn/libdnn_blas.hpp:23:3: note: 
    'axpby' declared here
void axpby(const uint_tp n, const MItype alpha, vptr<const MItype> x,
^
/home/naths/sandbox/caffe_copy/src/caffe/backend/device_math.cpp:278:37: error: 
    too many arguments to function call, expected 4, have 7
this->axpy_double(n, alpha, x, y, alpha_quant, x_quant, y_quant);
~~~~~~~~~~~~~~~~~                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/naths/sandbox/caffe_copy/include/caffe/backend/device.hpp:467:3: note: 
    'axpy_double' declared here
virtual void axpy_double(const uint_tp n, const double alpha,
^
/home/naths/sandbox/caffe_copy/src/caffe/backend/device_math.cpp:288:44: error: 
    too many arguments to function call, expected 5, have 9
this->axpby_double(n, alpha, x, beta, y, alpha_quant, x_quant,
~~~~~~~~~~~~~~~~~~                       ^~~~~~~~~~~~~~~~~~~~~
/home/naths/sandbox/caffe_copy/include/caffe/backend/device.hpp:469:3: note: 
    'axpby_double' declared here
virtual void axpby_double(const uint_tp n, const double alpha,
^

> 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment