Skip to content

Instantly share code, notes, and snippets.

@skn123
Created June 14, 2018 04:14
Show Gist options
  • Save skn123/139d7eac5aa4264278054462056c450e to your computer and use it in GitHub Desktop.
Save skn123/139d7eac5aa4264278054462056c450e to your computer and use it in GitHub Desktop.
caffe opencl build error
[ 0%] Running C++/Python protocol buffer compiler on /home/naths/sandbox/caffe/src/caffe/proto/caffe.proto
[ 0%] Generating test macros source (python -> C++).
[ 0%] Generating macros source (python -> C++).
[ 1%] Generating blob creator source (python -> C++).
[ 1%] Generating layer creator source (python -> C++).
[ 1%] Generating quantizer creator source (python -> C++).
Scanning dependencies of target pre_build
[ 2%] Linking CXX static library ../../lib/libpre_build.a
Scanning dependencies of target caffeproto
[ 2%] Built target pre_build
[ 4%] Building CXX object src/caffe/CMakeFiles/caffeproto.dir/__/__/include/caffe/proto/caffe.pb.cc.o
[ 4%] Linking CXX static library ../../lib/libcaffeproto.a
[ 4%] Built target caffeproto
Scanning dependencies of target caffe
[ 4%] Building CXX object src/caffe/CMakeFiles/caffe.dir/backend/backend.cpp.o
[ 4%] Building CXX object src/caffe/CMakeFiles/caffe.dir/backend/cuda/caffe_cuda.cpp.o
[ 4%] Building CXX object src/caffe/CMakeFiles/caffe.dir/backend/cuda/cuda_dev_ptr.cpp.o
[ 5%] Building CXX object src/caffe/CMakeFiles/caffe.dir/backend/cuda/cuda_device.cpp.o
[ 5%] Building CXX object src/caffe/CMakeFiles/caffe.dir/backend/cuda/cuda_device_kernel.cpp.o
[ 5%] Building CXX object src/caffe/CMakeFiles/caffe.dir/backend/cuda/cuda_device_program.cpp.o
[ 5%] Building CXX object src/caffe/CMakeFiles/caffe.dir/backend/device.cpp.o
[ 6%] Building CXX object src/caffe/CMakeFiles/caffe.dir/backend/device_im2col.cpp.o
[ 6%] Building CXX object src/caffe/CMakeFiles/caffe.dir/backend/device_kernel.cpp.o
[ 6%] Building CXX object src/caffe/CMakeFiles/caffe.dir/backend/device_math.cpp.o
[ 8%] Building CXX object src/caffe/CMakeFiles/caffe.dir/backend/device_math_blas1.cpp.o
[ 8%] Building CXX object src/caffe/CMakeFiles/caffe.dir/backend/device_math_blas3.cpp.o
[ 8%] Building CXX object src/caffe/CMakeFiles/caffe.dir/backend/device_math_blas2.cpp.o
[ 8%] Building CXX object src/caffe/CMakeFiles/caffe.dir/backend/device_math_functions.cpp.o
In file included from /home/naths/sandbox/caffe/src/caffe/backend/device_math_blas3.cpp:1:
In file included from /home/naths/sandbox/caffe/include/caffe/common.hpp:14:
In file included from /home/naths/sandbox/caffe/include/caffe/definitions.hpp:25:
In file included from /home/naths/sandbox/caffe/include/caffe/trait_helper.hpp:6:
In file included from /home/naths/sandbox/caffe/include/caffe/util/half_fp.hpp:5:
/home/naths/sandbox/caffe/include/3rdparty/half/half.hpp:1080:12: warning:
class 'numeric_limits' was previously declared as a struct
[-Wmismatched-tags]
friend class std::numeric_limits<half_fp>;
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/5.4.0/../../../../include/c++/5.4.0/limits:315:12: note:
previous use is here
struct numeric_limits : public __numeric_limits_base
^
In file included from /home/naths/sandbox/caffe/src/caffe/backend/device_math_blas2.cpp:1:
In file included from /home/naths/sandbox/caffe/include/caffe/common.hpp:14:
In file included from /home/naths/sandbox/caffe/include/caffe/definitions.hpp:25:
In file included from /home/naths/sandbox/caffe/include/caffe/trait_helper.hpp:6:
In file included from /home/naths/sandbox/caffe/include/caffe/util/half_fp.hpp:5:
/home/naths/sandbox/caffe/include/3rdparty/half/half.hpp:1080:12: warning:
class 'numeric_limits' was previously declared as a struct
[-Wmismatched-tags]
friend class std::numeric_limits<half_fp>;
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/5.4.0/../../../../include/c++/5.4.0/limits:315:12: note:
previous use is here
struct numeric_limits : public __numeric_limits_base
^
In file included from /home/naths/sandbox/caffe/src/caffe/backend/device_math.cpp:1:
In file included from /home/naths/sandbox/caffe/include/caffe/backend/device.hpp:12:
In file included from /home/naths/sandbox/caffe/include/caffe/blob.hpp:8:
In file included from /home/naths/sandbox/caffe/include/caffe/common.hpp:14:
In file included from /home/naths/sandbox/caffe/include/caffe/definitions.hpp:25:
In file included from /home/naths/sandbox/caffe/include/caffe/trait_helper.hpp:6:
In file included from /home/naths/sandbox/caffe/include/caffe/util/half_fp.hpp:5:
/home/naths/sandbox/caffe/include/3rdparty/half/half.hpp:1080:12: warning:
class 'numeric_limits' was previously declared as a struct
[-Wmismatched-tags]
friend class std::numeric_limits<half_fp>;
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/5.4.0/../../../../include/c++/5.4.0/limits:315:12: note:
previous use is here
struct numeric_limits : public __numeric_limits_base
^
In file included from /home/naths/sandbox/caffe/src/caffe/backend/device_im2col.cpp:1:
In file included from /home/naths/sandbox/caffe/include/caffe/backend/device.hpp:12:
In file included from /home/naths/sandbox/caffe/include/caffe/blob.hpp:8:
In file included from /home/naths/sandbox/caffe/include/caffe/common.hpp:14:
In file included from /home/naths/sandbox/caffe/include/caffe/definitions.hpp:25:
In file included from /home/naths/sandbox/caffe/include/caffe/trait_helper.hpp:6:
In file included from /home/naths/sandbox/caffe/include/caffe/util/half_fp.hpp:5:
/home/naths/sandbox/caffe/include/3rdparty/half/half.hpp:1080:12: warning:
class 'numeric_limits' was previously declared as a struct
[-Wmismatched-tags]
friend class std::numeric_limits<half_fp>;
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/5.4.0/../../../../include/c++/5.4.0/limits:315:12: note:
previous use is here
struct numeric_limits : public __numeric_limits_base
^
In file included from /home/naths/sandbox/caffe/src/caffe/backend/device_kernel.cpp:1:
In file included from /home/naths/sandbox/caffe/include/caffe/backend/device_kernel.hpp:4:
In file included from /home/naths/sandbox/caffe/include/caffe/common.hpp:14:
In file included from /home/naths/sandbox/caffe/include/caffe/definitions.hpp:25:
In file included from /home/naths/sandbox/caffe/include/caffe/trait_helper.hpp:6:
In file included from /home/naths/sandbox/caffe/include/caffe/util/half_fp.hpp:5:
/home/naths/sandbox/caffe/include/3rdparty/half/half.hpp:1080:12: warning:
class 'numeric_limits' was previously declared as a struct
[-Wmismatched-tags]
friend class std::numeric_limits<half_fp>;
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/5.4.0/../../../../include/c++/5.4.0/limits:315:12: note:
previous use is here
struct numeric_limits : public __numeric_limits_base
^
In file included from /home/naths/sandbox/caffe/src/caffe/backend/cuda/cuda_dev_ptr.cpp:1:
In file included from /home/naths/sandbox/caffe/include/caffe/common.hpp:14:
In file included from /home/naths/sandbox/caffe/include/caffe/definitions.hpp:25:
In file included from /home/naths/sandbox/caffe/include/caffe/trait_helper.hpp:6:
In file included from /home/naths/sandbox/caffe/include/caffe/util/half_fp.hpp:5:
/home/naths/sandbox/caffe/include/3rdparty/half/half.hpp:1080:12: warning:
class 'numeric_limits' was previously declared as a struct
[-Wmismatched-tags]
friend class std::numeric_limits<half_fp>;
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/5.4.0/../../../../include/c++/5.4.0/limits:315:12: note:
previous use is here
struct numeric_limits : public __numeric_limits_base
^
In file included from /home/naths/sandbox/caffe/src/caffe/backend/device.cpp:6:
In file included from /home/naths/sandbox/caffe/include/caffe/backend/device.hpp:12:
In file included from /home/naths/sandbox/caffe/include/caffe/blob.hpp:8:
In file included from /home/naths/sandbox/caffe/include/caffe/common.hpp:14:
In file included from /home/naths/sandbox/caffe/include/caffe/definitions.hpp:25:
In file included from /home/naths/sandbox/caffe/include/caffe/trait_helper.hpp:6:
In file included from /home/naths/sandbox/caffe/include/caffe/util/half_fp.hpp:5:
/home/naths/sandbox/caffe/include/3rdparty/half/half.hpp:1080:12: warning:
class 'numeric_limits' was previously declared as a struct
[-Wmismatched-tags]
friend class std::numeric_limits<half_fp>;
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/5.4.0/../../../../include/c++/5.4.0/limits:315:12: note:
previous use is here
struct numeric_limits : public __numeric_limits_base
^
In file included from /home/naths/sandbox/caffe/src/caffe/backend/device_math_blas1.cpp:1:
In file included from /home/naths/sandbox/caffe/include/caffe/common.hpp:14:
In file included from /home/naths/sandbox/caffe/include/caffe/definitions.hpp:25:
In file included from /home/naths/sandbox/caffe/include/caffe/trait_helper.hpp:6:
In file included from /home/naths/sandbox/caffe/include/caffe/util/half_fp.hpp:5:
/home/naths/sandbox/caffe/include/3rdparty/half/half.hpp:1080:12: warning:
class 'numeric_limits' was previously declared as a struct
[-Wmismatched-tags]
friend class std::numeric_limits<half_fp>;
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/5.4.0/../../../../include/c++/5.4.0/limits:315:12: note:
previous use is here
struct numeric_limits : public __numeric_limits_base
^
In file included from /home/naths/sandbox/caffe/src/caffe/backend/backend.cpp:1:
In file included from /home/naths/sandbox/caffe/include/caffe/backend/backend.hpp:7:
In file included from /home/naths/sandbox/caffe/include/caffe/common.hpp:14:
In file included from /home/naths/sandbox/caffe/include/caffe/definitions.hpp:25:
In file included from /home/naths/sandbox/caffe/include/caffe/trait_helper.hpp:6:
In file included from /home/naths/sandbox/caffe/include/caffe/util/half_fp.hpp:5:
/home/naths/sandbox/caffe/include/3rdparty/half/half.hpp:1080:12: warning:
class 'numeric_limits' was previously declared as a struct
[-Wmismatched-tags]
friend class std::numeric_limits<half_fp>;
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/5.4.0/../../../../include/c++/5.4.0/limits:315:12: note:
previous use is here
struct numeric_limits : public __numeric_limits_base
^
In file included from /home/naths/sandbox/caffe/src/caffe/backend/device_math_functions.cpp:1:
In file included from /home/naths/sandbox/caffe/include/caffe/backend/device_program.hpp:5:
In file included from /home/naths/sandbox/caffe/include/caffe/backend/backend.hpp:7:
In file included from /home/naths/sandbox/caffe/include/caffe/common.hpp:14:
In file included from /home/naths/sandbox/caffe/include/caffe/definitions.hpp:25:
In file included from /home/naths/sandbox/caffe/include/caffe/trait_helper.hpp:6:
In file included from /home/naths/sandbox/caffe/include/caffe/util/half_fp.hpp:5:
/home/naths/sandbox/caffe/include/3rdparty/half/half.hpp:1080:12: warning:
class 'numeric_limits' was previously declared as a struct
[-Wmismatched-tags]
friend class std::numeric_limits<half_fp>;
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/5.4.0/../../../../include/c++/5.4.0/limits:315:12: note:
previous use is here
struct numeric_limits : public __numeric_limits_base
^
In file included from /home/naths/sandbox/caffe/src/caffe/backend/cuda/cuda_device_kernel.cpp:3:
In file included from /home/naths/sandbox/caffe/include/caffe/backend/cuda/cuda_device_kernel.hpp:4:
In file included from /home/naths/sandbox/caffe/include/caffe/backend/device_kernel.hpp:4:
In file included from /home/naths/sandbox/caffe/include/caffe/common.hpp:14:
In file included from /home/naths/sandbox/caffe/include/caffe/definitions.hpp:25:
In file included from /home/naths/sandbox/caffe/include/caffe/trait_helper.hpp:6:
In file included from /home/naths/sandbox/caffe/include/caffe/util/half_fp.hpp:5:
/home/naths/sandbox/caffe/include/3rdparty/half/half.hpp:1080:12: warning:
class 'numeric_limits' was previously declared as a struct
[-Wmismatched-tags]
friend class std::numeric_limits<half_fp>;
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/5.4.0/../../../../include/c++/5.4.0/limits:315:12: note:
previous use is here
struct numeric_limits : public __numeric_limits_base
^
/home/naths/sandbox/caffe/src/caffe/backend/device_kernel.cpp:6:5: warning:
field 'name_' will be initialized after field 'device_' [-Wreorder]
: name_(name), device_(dev), arg_idx_(0), args_(args) {
^
1 warning generated.
[ 9%] Building CXX object src/caffe/CMakeFiles/caffe.dir/backend/device_math_random.cpp.o
2 warnings generated.
[ 9%] Building CXX object src/caffe/CMakeFiles/caffe.dir/backend/device_program.cpp.o
In file included from /home/naths/sandbox/caffe/src/caffe/backend/device_im2col.cpp:4:
/home/naths/sandbox/caffe/include/caffe/quantizer.hpp:14:1: warning:
'QuantizerValues' defined as a struct here but previously declared as a
class [-Wmismatched-tags]
struct QuantizerValues {
^
/home/naths/sandbox/caffe/include/caffe/util/math_functions.hpp:16:1: note: did
you mean struct here?
class QuantizerValues;
^~~~~
struct
/home/naths/sandbox/caffe/src/caffe/backend/device.cpp:280:50: error: ordered
comparison between pointer and zero ('int32_t *' (aka 'int *') and 'int')
if (*lock_id < buffer_flags_.size() && lock_id > 0) {
~~~~~~~ ^ ~
In file included from /home/naths/sandbox/caffe/src/caffe/backend/device_math.cpp:3:
/home/naths/sandbox/caffe/include/caffe/quantizer.hpp:14:1: warning:
'QuantizerValues' defined as a struct here but previously declared as a
class [-Wmismatched-tags]
struct QuantizerValues {
^
/home/naths/sandbox/caffe/include/caffe/util/math_functions.hpp:16:1: note: did
you mean struct here?
class QuantizerValues;
^~~~~
struct
1 warning and 1 error generated.
src/caffe/CMakeFiles/caffe.dir/build.make:140: recipe for target 'src/caffe/CMakeFiles/caffe.dir/backend/device.cpp.o' failed
make[2]: *** [src/caffe/CMakeFiles/caffe.dir/backend/device.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
1 warning generated.
In file included from /home/naths/sandbox/caffe/src/caffe/backend/device_math_blas2.cpp:6:
In file included from /home/naths/sandbox/caffe/include/caffe/libdnn/libdnn_blas.hpp:13:
/home/naths/sandbox/caffe/include/caffe/quantizer.hpp:14:1: warning:
'QuantizerValues' defined as a struct here but previously declared as a
class [-Wmismatched-tags]
struct QuantizerValues {
^
/home/naths/sandbox/caffe/include/caffe/util/math_functions.hpp:16:1: note: did
you mean struct here?
class QuantizerValues;
^~~~~
struct
In file included from /home/naths/sandbox/caffe/src/caffe/backend/device_math_blas1.cpp:6:
In file included from /home/naths/sandbox/caffe/include/caffe/libdnn/libdnn_blas.hpp:13:
/home/naths/sandbox/caffe/include/caffe/quantizer.hpp:14:1: warning:
'QuantizerValues' defined as a struct here but previously declared as a
class [-Wmismatched-tags]
struct QuantizerValues {
^
/home/naths/sandbox/caffe/include/caffe/util/math_functions.hpp:16:1: note: did
you mean struct here?
class QuantizerValues;
^~~~~
struct
In file included from /home/naths/sandbox/caffe/src/caffe/backend/device_math_blas3.cpp:6:
In file included from /home/naths/sandbox/caffe/include/caffe/libdnn/libdnn_blas.hpp:13:
/home/naths/sandbox/caffe/include/caffe/quantizer.hpp:14:1: warning:
'QuantizerValues' defined as a struct here but previously declared as a
class [-Wmismatched-tags]
struct QuantizerValues {
^
/home/naths/sandbox/caffe/include/caffe/util/math_functions.hpp:16:1: note: did
you mean struct here?
class QuantizerValues;
^~~~~
struct
1 warning generated.
In file included from /home/naths/sandbox/caffe/src/caffe/backend/device_math_random.cpp:1:
In file included from /home/naths/sandbox/caffe/include/caffe/backend/device.hpp:12:
In file included from /home/naths/sandbox/caffe/include/caffe/blob.hpp:8:
In file included from /home/naths/sandbox/caffe/include/caffe/common.hpp:14:
In file included from /home/naths/sandbox/caffe/include/caffe/definitions.hpp:25:
In file included from /home/naths/sandbox/caffe/include/caffe/trait_helper.hpp:6:
In file included from /home/naths/sandbox/caffe/include/caffe/util/half_fp.hpp:5:
/home/naths/sandbox/caffe/include/3rdparty/half/half.hpp:1080:12: warning:
class 'numeric_limits' was previously declared as a struct
[-Wmismatched-tags]
friend class std::numeric_limits<half_fp>;
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/5.4.0/../../../../include/c++/5.4.0/limits:315:12: note:
previous use is here
struct numeric_limits : public __numeric_limits_base
^
/home/naths/sandbox/caffe/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/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,
^
In file included from /home/naths/sandbox/caffe/src/caffe/backend/device_program.cpp:1:
In file included from /home/naths/sandbox/caffe/include/caffe/backend/device_program.hpp:5:
In file included from /home/naths/sandbox/caffe/include/caffe/backend/backend.hpp:7:
In file included from /home/naths/sandbox/caffe/include/caffe/common.hpp:14:
In file included from /home/naths/sandbox/caffe/include/caffe/definitions.hpp:25:
In file included from /home/naths/sandbox/caffe/include/caffe/trait_helper.hpp:6:
In file included from /home/naths/sandbox/caffe/include/caffe/util/half_fp.hpp:5:
/home/naths/sandbox/caffe/include/3rdparty/half/half.hpp:1080:12: warning:
class 'numeric_limits' was previously declared as a struct
[-Wmismatched-tags]
friend class std::numeric_limits<half_fp>;
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/5.4.0/../../../../include/c++/5.4.0/limits:315:12: note:
previous use is here
struct numeric_limits : public __numeric_limits_base
^
/home/naths/sandbox/caffe/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/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/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/include/caffe/backend/device.hpp:469:3: note:
'axpby_double' declared here
virtual void axpby_double(const uint_tp n, const double alpha,
^
2 warnings and 1 error generated.
src/caffe/CMakeFiles/caffe.dir/build.make:192: recipe for target 'src/caffe/CMakeFiles/caffe.dir/backend/device_math_blas1.cpp.o' failed
make[2]: *** [src/caffe/CMakeFiles/caffe.dir/backend/device_math_blas1.cpp.o] Error 1
2 warnings and 2 errors generated.
src/caffe/CMakeFiles/caffe.dir/build.make:179: recipe for target 'src/caffe/CMakeFiles/caffe.dir/backend/device_math.cpp.o' failed
make[2]: *** [src/caffe/CMakeFiles/caffe.dir/backend/device_math.cpp.o] Error 1
2 warnings generated.
2 warnings generated.
/home/naths/sandbox/caffe/src/caffe/backend/device_program.cpp:410:23: error:
explicit specialization of 'device_type_name<bool>' after instantiation
string DeviceProgram::device_type_name<bool>() const {
^
/home/naths/sandbox/caffe/src/caffe/backend/device_program.cpp:240:30: note:
implicit instantiation first required here
this->device_type_name<Dtype>() + std::to_string(i));
^
/home/naths/sandbox/caffe/src/caffe/backend/device_program.cpp:414:23: error:
explicit specialization of 'device_type_name<char>' after instantiation
string DeviceProgram::device_type_name<char>() const {
^
/home/naths/sandbox/caffe/src/caffe/backend/device_program.cpp:240:30: note:
implicit instantiation first required here
this->device_type_name<Dtype>() + std::to_string(i));
^
/home/naths/sandbox/caffe/src/caffe/backend/device_program.cpp:418:23: error:
explicit specialization of 'device_type_name<caffe::half_fp>' after
instantiation
string DeviceProgram::device_type_name<half_fp>() const {
^
/home/naths/sandbox/caffe/src/caffe/backend/device_program.cpp:240:30: note:
implicit instantiation first required here
this->device_type_name<Dtype>() + std::to_string(i));
^
/home/naths/sandbox/caffe/src/caffe/backend/device_program.cpp:422:23: error:
explicit specialization of 'device_type_name<float>' after instantiation
string DeviceProgram::device_type_name<float>() const {
^
/home/naths/sandbox/caffe/src/caffe/backend/device_program.cpp:240:30: note:
implicit instantiation first required here
this->device_type_name<Dtype>() + std::to_string(i));
^
/home/naths/sandbox/caffe/src/caffe/backend/device_program.cpp:426:23: error:
explicit specialization of 'device_type_name<double>' after instantiation
string DeviceProgram::device_type_name<double>() const {
^
/home/naths/sandbox/caffe/src/caffe/backend/device_program.cpp:240:30: note:
implicit instantiation first required here
this->device_type_name<Dtype>() + std::to_string(i));
^
/home/naths/sandbox/caffe/src/caffe/backend/device_program.cpp:430:23: error:
explicit specialization of 'device_type_name<signed char>' after
instantiation
string DeviceProgram::device_type_name<int8_t>() const {
^
/home/naths/sandbox/caffe/src/caffe/backend/device_program.cpp:240:30: note:
implicit instantiation first required here
this->device_type_name<Dtype>() + std::to_string(i));
^
/home/naths/sandbox/caffe/src/caffe/backend/device_program.cpp:434:23: error:
explicit specialization of 'device_type_name<short>' after instantiation
string DeviceProgram::device_type_name<int16_t>() const {
^
/home/naths/sandbox/caffe/src/caffe/backend/device_program.cpp:240:30: note:
implicit instantiation first required here
this->device_type_name<Dtype>() + std::to_string(i));
^
/home/naths/sandbox/caffe/src/caffe/backend/device_program.cpp:438:23: error:
explicit specialization of 'device_type_name<int>' after instantiation
string DeviceProgram::device_type_name<int32_t>() const {
^
/home/naths/sandbox/caffe/src/caffe/backend/device_program.cpp:240:30: note:
implicit instantiation first required here
this->device_type_name<Dtype>() + std::to_string(i));
^
/home/naths/sandbox/caffe/src/caffe/backend/device_program.cpp:442:23: error:
explicit specialization of 'device_type_name<long>' after instantiation
string DeviceProgram::device_type_name<int64_t>() const {
^
/home/naths/sandbox/caffe/src/caffe/backend/device_program.cpp:240:30: note:
implicit instantiation first required here
this->device_type_name<Dtype>() + std::to_string(i));
^
/home/naths/sandbox/caffe/src/caffe/backend/device_program.cpp:446:23: error:
explicit specialization of 'device_type_name<unsigned char>' after
instantiation
string DeviceProgram::device_type_name<uint8_t>() const {
^
/home/naths/sandbox/caffe/src/caffe/backend/device_program.cpp:240:30: note:
implicit instantiation first required here
this->device_type_name<Dtype>() + std::to_string(i));
^
/home/naths/sandbox/caffe/src/caffe/backend/device_program.cpp:450:23: error:
explicit specialization of 'device_type_name<unsigned short>' after
instantiation
string DeviceProgram::device_type_name<uint16_t>() const {
^
/home/naths/sandbox/caffe/src/caffe/backend/device_program.cpp:240:30: note:
implicit instantiation first required here
this->device_type_name<Dtype>() + std::to_string(i));
^
/home/naths/sandbox/caffe/src/caffe/backend/device_program.cpp:454:23: error:
explicit specialization of 'device_type_name<unsigned int>' after
instantiation
string DeviceProgram::device_type_name<uint32_t>() const {
^
/home/naths/sandbox/caffe/src/caffe/backend/device_program.cpp:240:30: note:
implicit instantiation first required here
this->device_type_name<Dtype>() + std::to_string(i));
^
/home/naths/sandbox/caffe/src/caffe/backend/device_program.cpp:458:23: error:
explicit specialization of 'device_type_name<unsigned long>' after
instantiation
string DeviceProgram::device_type_name<uint64_t>() const {
^
/home/naths/sandbox/caffe/src/caffe/backend/device_program.cpp:240:30: note:
implicit instantiation first required here
this->device_type_name<Dtype>() + std::to_string(i));
^
1 warning and 13 errors generated.
src/caffe/CMakeFiles/caffe.dir/build.make:257: recipe for target 'src/caffe/CMakeFiles/caffe.dir/backend/device_program.cpp.o' failed
make[2]: *** [src/caffe/CMakeFiles/caffe.dir/backend/device_program.cpp.o] Error 1
1 warning generated.
1 warning generated.
2 warnings generated.
CMakeFiles/Makefile2:348: recipe for target 'src/caffe/CMakeFiles/caffe.dir/all' failed
make[1]: *** [src/caffe/CMakeFiles/caffe.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2
@rajhlinux
Copy link

Getting the same error, were you able to fix the issue?

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