Created
July 2, 2018 07:21
-
-
Save skn123/468da66eb7f1027569991c90e93fd06b to your computer and use it in GitHub Desktop.
fft enable error
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/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); | |
~~~~ ^ |
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
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);