I have this compilation error while recompiling caffe after installing the upsample layer. It's seemingly due to me not having CUDA installed, so I'll try to do that now, since:
Could somebody help me with this? Would it be possible to keep the upsample layer in CPU mode? Is it mandatory to keep it to convert YOLOv3 to caffemodel?
/home/ap/code/clCaffe/src/caffe/layers/upsample_layer.cu: At global scope:
/home/ap/code/clCaffe/src/caffe/layers/upsample_layer.cu:9:1: error: ‘__device__’ does not name a type; did you mean ‘device’?
__device__ int translate_idx(int ii, int d1, int d2, int d3, int scale_factor) {
^~~~~~~~~~
device
/home/ap/code/clCaffe/src/caffe/layers/upsample_layer.cu:25:1: error: ‘__device__’ does not name a type; did you mean ‘device’?
__device__ int translate_idx_inv(
^~~~~~~~~~
device
/home/ap/code/clCaffe/src/caffe/layers/upsample_layer.cu:43:1: error: ‘__global__’ does not name a type; did you mean ‘__locale_t’?
__global__ void upscale(const Dtype *input, Dtype *output,
^~~~~~~~~~
__locale_t
/home/ap/code/clCaffe/src/caffe/layers/upsample_layer.cu:52:1: error: ‘__global__’ does not name a type; did you mean ‘__locale_t’?
__global__ void downscale(Dtype *gradInput_data, const Dtype *gradOutput_data,
^~~~~~~~~~
__locale_t
/home/ap/code/clCaffe/src/caffe/layers/upsample_layer.cu: In member function ‘virtual void caffe::UpsampleLayer<Dtype>::Forward_gpu(const std::vector<caffe::Blob<Dtype>*>&, const std::vector<caffe::Blob<Dtype>*>&)’:
/home/ap/code/clCaffe/src/caffe/layers/upsample_layer.cu:78:3: error: ‘upscale’ was not declared in this scope
upscale<Dtype> // NOLINT_NEXT_LINE(whitespace/operators)
^~~~~~~
/home/ap/code/clCaffe/src/caffe/layers/upsample_layer.cu:78:3: note: suggested alternative: ‘scale_’
upscale<Dtype> // NOLINT_NEXT_LINE(whitespace/operators)
^~~~~~~
scale_
/home/ap/code/clCaffe/src/caffe/layers/upsample_layer.cu:78:16: error: expected primary-expression before ‘>’ token
upscale<Dtype> // NOLINT_NEXT_LINE(whitespace/operators)
^
/home/ap/code/clCaffe/src/caffe/layers/upsample_layer.cu:79:7: error: expected primary-expression before ‘<<’ token
<<<CAFFE_GET_BLOCKS(no_elements), CAFFE_CUDA_NUM_THREADS>>>(
^~
/home/ap/code/clCaffe/src/caffe/layers/upsample_layer.cu:79:9: error: expected primary-expression before ‘<’ token
<<<CAFFE_GET_BLOCKS(no_elements), CAFFE_CUDA_NUM_THREADS>>>(
^
/home/ap/code/clCaffe/src/caffe/layers/upsample_layer.cu:79:10: error: there are no arguments to ‘CAFFE_GET_BLOCKS’ that depend on a template parameter, so a declaration of ‘CAFFE_GET_BLOCKS’ must be available [-fpermissive]
<<<CAFFE_GET_BLOCKS(no_elements), CAFFE_CUDA_NUM_THREADS>>>(
^~~~~~~~~~~~~~~~
/home/ap/code/clCaffe/src/caffe/layers/upsample_layer.cu:79:10: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
/home/ap/code/clCaffe/src/caffe/layers/upsample_layer.cu:79:41: error: ‘CAFFE_CUDA_NUM_THREADS’ was not declared in this scope
<<<CAFFE_GET_BLOCKS(no_elements), CAFFE_CUDA_NUM_THREADS>>>(
^~~~~~~~~~~~~~~~~~~~~~
/home/ap/code/clCaffe/src/caffe/layers/upsample_layer.cu:79:65: error: expected primary-expression before ‘>’ token
<<<CAFFE_GET_BLOCKS(no_elements), CAFFE_CUDA_NUM_THREADS>>>(
^
/home/ap/code/clCaffe/src/caffe/layers/upsample_layer.cu: In member function ‘virtual void caffe::UpsampleLayer<Dtype>::Backward_gpu(const std::vector<caffe::Blob<Dtype>*>&, const std::vector<bool>&, const std::vector<caffe::Blob<Dtype>*>&)’:
/home/ap/code/clCaffe/src/caffe/layers/upsample_layer.cu:94:3: error: ‘downscale’ was not declared in this scope
downscale<Dtype> // NOLINT_NEXT_LINE(whitespace/operators)
^~~~~~~~~
/home/ap/code/clCaffe/src/caffe/layers/upsample_layer.cu:94:3: note: suggested alternative: ‘dscal’
downscale<Dtype> // NOLINT_NEXT_LINE(whitespace/operators)
^~~~~~~~~
dscal
/home/ap/code/clCaffe/src/caffe/layers/upsample_layer.cu:94:18: error: expected primary-expression before ‘>’ token
downscale<Dtype> // NOLINT_NEXT_LINE(whitespace/operators)
^
/home/ap/code/clCaffe/src/caffe/layers/upsample_layer.cu:95:7: error: expected primary-expression before ‘<<’ token
<<<CAFFE_GET_BLOCKS(no_elements), CAFFE_CUDA_NUM_THREADS>>>(
^~
/home/ap/code/clCaffe/src/caffe/layers/upsample_layer.cu:95:9: error: expected primary-expression before ‘<’ token
<<<CAFFE_GET_BLOCKS(no_elements), CAFFE_CUDA_NUM_THREADS>>>(
^
/home/ap/code/clCaffe/src/caffe/layers/upsample_layer.cu:95:10: error: there are no arguments to ‘CAFFE_GET_BLOCKS’ that depend on a template parameter, so a declaration of ‘CAFFE_GET_BLOCKS’ must be available [-fpermissive]
<<<CAFFE_GET_BLOCKS(no_elements), CAFFE_CUDA_NUM_THREADS>>>(
^~~~~~~~~~~~~~~~
/home/ap/code/clCaffe/src/caffe/layers/upsample_layer.cu:95:41: error: ‘CAFFE_CUDA_NUM_THREADS’ was not declared in this scope
<<<CAFFE_GET_BLOCKS(no_elements), CAFFE_CUDA_NUM_THREADS>>>(
^~~~~~~~~~~~~~~~~~~~~~
/home/ap/code/clCaffe/src/caffe/layers/upsample_layer.cu:95:65: error: expected primary-expression before ‘>’ token
<<<CAFFE_GET_BLOCKS(no_elements), CAFFE_CUDA_NUM_THREADS>>>(
^
/home/ap/code/clCaffe/src/caffe/layers/upsample_layer.cu: In instantiation of ‘void caffe::UpsampleLayer<Dtype>::Forward_gpu(const std::vector<caffe::Blob<Dtype>*>&, const std::vector<caffe::Blob<Dtype>*>&) [with Dtype = half_float::half]’:
/home/ap/code/clCaffe/src/caffe/layers/upsample_layer.cu:99:1: required from here
/home/ap/code/clCaffe/src/caffe/layers/upsample_layer.cu:79:26: error: ‘CAFFE_GET_BLOCKS’ was not declared in this scope
<<<CAFFE_GET_BLOCKS(no_elements), CAFFE_CUDA_NUM_THREADS>>>(
~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
/home/ap/code/clCaffe/src/caffe/layers/upsample_layer.cu:79:26: note: suggested alternative: ‘CAFFE_VERSION’
<<<CAFFE_GET_BLOCKS(no_elements), CAFFE_CUDA_NUM_THREADS>>>(
~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
CAFFE_VERSION
~/code/clCaffe/build$ make -j8
[ 1%] Built target proto
[ 1%] Built target pretune_convert
[ 2%] Building CXX object src/caffe/CMakeFiles/caffe.dir/layers/upsample_layer.cu.o
In file included from /opt/intel/opencl/OpenCL-Headers/CL/cl.h:32:0,
from /home/ap/code/clCaffe/include/caffe/greentea/greentea.hpp:30,
from /home/ap/code/clCaffe/include/caffe/common.hpp:25,
from /home/ap/code/clCaffe/include/caffe/blob.hpp:8,
from /home/ap/code/clCaffe/include/caffe/filler.hpp:10,
from /home/ap/code/clCaffe/src/caffe/layers/upsample_layer.cu:3:
/opt/intel/opencl/OpenCL-Headers/CL/cl_version.h:34:104: note: #pragma message: cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 220 (OpenCL 2.2)
#pragma message("cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 220 (OpenCL 2.2)")
^
In file included from /home/ap/local/include/viennacl/ocl/backend.hpp:26:0,
from /home/ap/local/include/viennacl/backend/opencl.hpp:28,
from /home/ap/code/clCaffe/include/caffe/greentea/greentea.hpp:35,
from /home/ap/code/clCaffe/include/caffe/common.hpp:25,
from /home/ap/code/clCaffe/include/caffe/blob.hpp:8,
from /home/ap/code/clCaffe/include/caffe/filler.hpp:10,
from /home/ap/code/clCaffe/src/caffe/layers/upsample_layer.cu:3:
/home/ap/local/include/viennacl/ocl/context.hpp: In member function ‘void viennacl::ocl::context::add_queue(cl_device_id)’:
/home/ap/local/include/viennacl/ocl/context.hpp:260:117: warning: ‘_cl_command_queue* clCreateCommandQueue(cl_context, cl_device_id, cl_command_queue_properties, cl_int*)’ is deprecated [-Wdeprecated-declarations]
viennacl::ocl::handle<cl_command_queue> temp(clCreateCommandQueue(h_.get(), dev, CL_QUEUE_PROFILING_ENABLE, &err), *this);
^
In file included from /home/ap/code/clCaffe/include/caffe/greentea/greentea.hpp:30:0,
from /home/ap/code/clCaffe/include/caffe/common.hpp:25,
from /home/ap/code/clCaffe/include/caffe/blob.hpp:8,
from /home/ap/code/clCaffe/include/caffe/filler.hpp:10,
from /home/ap/code/clCaffe/src/caffe/layers/upsample_layer.cu:3:
/opt/intel/opencl/OpenCL-Headers/CL/cl.h:1777:1: note: declared here
clCreateCommandQueue(cl_context context,
^~~~~~~~~~~~~~~~~~~~
/home/ap/code/clCaffe/src/caffe/layers/upsample_layer.cu: At global scope:
/home/ap/code/clCaffe/src/caffe/layers/upsample_layer.cu:9:1: error: ‘__device__’ does not name a type; did you mean ‘device’?
__device__ int translate_idx(int ii, int d1, int d2, int d3, int scale_factor) {
^~~~~~~~~~
device
/home/ap/code/clCaffe/src/caffe/layers/upsample_layer.cu:25:1: error: ‘__device__’ does not name a type; did you mean ‘device’?
__device__ int translate_idx_inv(
^~~~~~~~~~
device
/home/ap/code/clCaffe/src/caffe/layers/upsample_layer.cu:43:1: error: ‘__global__’ does not name a type; did you mean ‘__locale_t’?
__global__ void upscale(const Dtype *input, Dtype *output,
^~~~~~~~~~
__locale_t
/home/ap/code/clCaffe/src/caffe/layers/upsample_layer.cu:52:1: error: ‘__global__’ does not name a type; did you mean ‘__locale_t’?
__global__ void downscale(Dtype *gradInput_data, const Dtype *gradOutput_data,
^~~~~~~~~~
__locale_t
/home/ap/code/clCaffe/src/caffe/layers/upsample_layer.cu: In member function ‘virtual void caffe::UpsampleLayer<Dtype>::Forward_gpu(const std::vector<caffe::Blob<Dtype>*>&, const std::vector<caffe::Blob<Dtype>*>&)’:
/home/ap/code/clCaffe/src/caffe/layers/upsample_layer.cu:78:3: error: ‘upscale’ was not declared in this scope
upscale<Dtype> // NOLINT_NEXT_LINE(whitespace/operators)
^~~~~~~
/home/ap/code/clCaffe/src/caffe/layers/upsample_layer.cu:78:3: note: suggested alternative: ‘scale_’
upscale<Dtype> // NOLINT_NEXT_LINE(whitespace/operators)
^~~~~~~
scale_
/home/ap/code/clCaffe/src/caffe/layers/upsample_layer.cu:78:16: error: expected primary-expression before ‘>’ token
upscale<Dtype> // NOLINT_NEXT_LINE(whitespace/operators)
^
/home/ap/code/clCaffe/src/caffe/layers/upsample_layer.cu:79:7: error: expected primary-expression before ‘<<’ token
<<<CAFFE_GET_BLOCKS(no_elements), CAFFE_CUDA_NUM_THREADS>>>(
^~
/home/ap/code/clCaffe/src/caffe/layers/upsample_layer.cu:79:9: error: expected primary-expression before ‘<’ token
<<<CAFFE_GET_BLOCKS(no_elements), CAFFE_CUDA_NUM_THREADS>>>(
^
/home/ap/code/clCaffe/src/caffe/layers/upsample_layer.cu:79:10: error: there are no arguments to ‘CAFFE_GET_BLOCKS’ that depend on a template parameter, so a declaration of ‘CAFFE_GET_BLOCKS’ must be available [-fpermissive]
<<<CAFFE_GET_BLOCKS(no_elements), CAFFE_CUDA_NUM_THREADS>>>(
^~~~~~~~~~~~~~~~
/home/ap/code/clCaffe/src/caffe/layers/upsample_layer.cu:79:10: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
/home/ap/code/clCaffe/src/caffe/layers/upsample_layer.cu:79:41: error: ‘CAFFE_CUDA_NUM_THREADS’ was not declared in this scope
<<<CAFFE_GET_BLOCKS(no_elements), CAFFE_CUDA_NUM_THREADS>>>(
^~~~~~~~~~~~~~~~~~~~~~
/home/ap/code/clCaffe/src/caffe/layers/upsample_layer.cu:79:65: error: expected primary-expression before ‘>’ token
<<<CAFFE_GET_BLOCKS(no_elements), CAFFE_CUDA_NUM_THREADS>>>(
^
/home/ap/code/clCaffe/src/caffe/layers/upsample_layer.cu: In member function ‘virtual void caffe::UpsampleLayer<Dtype>::Backward_gpu(const std::vector<caffe::Blob<Dtype>*>&, const std::vector<bool>&, const std::vector<caffe::Blob<Dtype>*>&)’:
/home/ap/code/clCaffe/src/caffe/layers/upsample_layer.cu:94:3: error: ‘downscale’ was not declared in this scope
downscale<Dtype> // NOLINT_NEXT_LINE(whitespace/operators)
^~~~~~~~~
/home/ap/code/clCaffe/src/caffe/layers/upsample_layer.cu:94:3: note: suggested alternative: ‘dscal’
downscale<Dtype> // NOLINT_NEXT_LINE(whitespace/operators)
^~~~~~~~~
dscal
/home/ap/code/clCaffe/src/caffe/layers/upsample_layer.cu:94:18: error: expected primary-expression before ‘>’ token
downscale<Dtype> // NOLINT_NEXT_LINE(whitespace/operators)
^
/home/ap/code/clCaffe/src/caffe/layers/upsample_layer.cu:95:7: error: expected primary-expression before ‘<<’ token
<<<CAFFE_GET_BLOCKS(no_elements), CAFFE_CUDA_NUM_THREADS>>>(
^~
/home/ap/code/clCaffe/src/caffe/layers/upsample_layer.cu:95:9: error: expected primary-expression before ‘<’ token
<<<CAFFE_GET_BLOCKS(no_elements), CAFFE_CUDA_NUM_THREADS>>>(
^
/home/ap/code/clCaffe/src/caffe/layers/upsample_layer.cu:95:10: error: there are no arguments to ‘CAFFE_GET_BLOCKS’ that depend on a template parameter, so a declaration of ‘CAFFE_GET_BLOCKS’ must be available [-fpermissive]
<<<CAFFE_GET_BLOCKS(no_elements), CAFFE_CUDA_NUM_THREADS>>>(
^~~~~~~~~~~~~~~~
/home/ap/code/clCaffe/src/caffe/layers/upsample_layer.cu:95:41: error: ‘CAFFE_CUDA_NUM_THREADS’ was not declared in this scope
<<<CAFFE_GET_BLOCKS(no_elements), CAFFE_CUDA_NUM_THREADS>>>(
^~~~~~~~~~~~~~~~~~~~~~
/home/ap/code/clCaffe/src/caffe/layers/upsample_layer.cu:95:65: error: expected primary-expression before ‘>’ token
<<<CAFFE_GET_BLOCKS(no_elements), CAFFE_CUDA_NUM_THREADS>>>(
^
/home/ap/code/clCaffe/src/caffe/layers/upsample_layer.cu: In instantiation of ‘void caffe::UpsampleLayer<Dtype>::Forward_gpu(const std::vector<caffe::Blob<Dtype>*>&, const std::vector<caffe::Blob<Dtype>*>&) [with Dtype = half_float::half]’:
/home/ap/code/clCaffe/src/caffe/layers/upsample_layer.cu:99:1: required from here
/home/ap/code/clCaffe/src/caffe/layers/upsample_layer.cu:79:26: error: ‘CAFFE_GET_BLOCKS’ was not declared in this scope
<<<CAFFE_GET_BLOCKS(no_elements), CAFFE_CUDA_NUM_THREADS>>>(
~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
/home/ap/code/clCaffe/src/caffe/layers/upsample_layer.cu:79:26: note: suggested alternative: ‘CAFFE_VERSION’
<<<CAFFE_GET_BLOCKS(no_elements), CAFFE_CUDA_NUM_THREADS>>>(
~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
CAFFE_VERSION
/home/ap/code/clCaffe/src/caffe/layers/upsample_layer.cu:81:46: warning: right operand of comma operator has no effect [-Wunused-value]
top[0]->mutable_gpu_data(), no_elements, scale_, d1, d2, d3);
/home/ap/code/clCaffe/src/caffe/layers/upsample_layer.cu:81:48: warning: right operand of comma operator has no effect [-Wunused-value]
top[0]->mutable_gpu_data(), no_elements, scale_, d1, d2, d3);
^~~~~~
/home/ap/code/clCaffe/src/caffe/layers/upsample_layer.cu:81:58: warning: right operand of comma operator has no effect [-Wunused-value]
top[0]->mutable_gpu_data(), no_elements, scale_, d1, d2, d3);
/home/ap/code/clCaffe/src/caffe/layers/upsample_layer.cu:81:62: warning: right operand of comma operator has no effect [-Wunused-value]
<<<CAFFE_GET_BLOCKS(no_elements), CAFFE_CUDA_NUM_THREADS>>>(
~
bottom[0]->gpu_data(),
~~~~~~~~~~~~~~~~~~~~~~
top[0]->mutable_gpu_data(), no_elements, scale_, d1, d2, d3);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
/home/ap/code/clCaffe/src/caffe/layers/upsample_layer.cu: In instantiation of ‘void caffe::UpsampleLayer<Dtype>::Forward_gpu(const std::vector<caffe::Blob<Dtype>*>&, const std::vector<caffe::Blob<Dtype>*>&) [with Dtype = float]’:
/home/ap/code/clCaffe/src/caffe/layers/upsample_layer.cu:99:1: required from here
/home/ap/code/clCaffe/src/caffe/layers/upsample_layer.cu:79:26: error: ‘CAFFE_GET_BLOCKS’ was not declared in this scope
<<<CAFFE_GET_BLOCKS(no_elements), CAFFE_CUDA_NUM_THREADS>>>(
~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
/home/ap/code/clCaffe/src/caffe/layers/upsample_layer.cu:79:26: note: suggested alternative: ‘CAFFE_VERSION’
<<<CAFFE_GET_BLOCKS(no_elements), CAFFE_CUDA_NUM_THREADS>>>(
~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
CAFFE_VERSION
/home/ap/code/clCaffe/src/caffe/layers/upsample_layer.cu:81:46: warning: right operand of comma operator has no effect [-Wunused-value]
top[0]->mutable_gpu_data(), no_elements, scale_, d1, d2, d3);
/home/ap/code/clCaffe/src/caffe/layers/upsample_layer.cu:81:48: warning: right operand of comma operator has no effect [-Wunused-value]
top[0]->mutable_gpu_data(), no_elements, scale_, d1, d2, d3);
^~~~~~
/home/ap/code/clCaffe/src/caffe/layers/upsample_layer.cu:81:58: warning: right operand of comma operator has no effect [-Wunused-value]
top[0]->mutable_gpu_data(), no_elements, scale_, d1, d2, d3);
/home/ap/code/clCaffe/src/caffe/layers/upsample_layer.cu:81:62: warning: right operand of comma operator has no effect [-Wunused-value]
<<<CAFFE_GET_BLOCKS(no_elements), CAFFE_CUDA_NUM_THREADS>>>(
~
bottom[0]->gpu_data(),
~~~~~~~~~~~~~~~~~~~~~~
top[0]->mutable_gpu_data(), no_elements, scale_, d1, d2, d3);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
/home/ap/code/clCaffe/src/caffe/layers/upsample_layer.cu: In instantiation of ‘void caffe::UpsampleLayer<Dtype>::Forward_gpu(const std::vector<caffe::Blob<Dtype>*>&, const std::vector<caffe::Blob<Dtype>*>&) [with Dtype = double]’:
/home/ap/code/clCaffe/src/caffe/layers/upsample_layer.cu:99:1: required from here
/home/ap/code/clCaffe/src/caffe/layers/upsample_layer.cu:79:26: error: ‘CAFFE_GET_BLOCKS’ was not declared in this scope
<<<CAFFE_GET_BLOCKS(no_elements), CAFFE_CUDA_NUM_THREADS>>>(
~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
/home/ap/code/clCaffe/src/caffe/layers/upsample_layer.cu:79:26: note: suggested alternative: ‘CAFFE_VERSION’
<<<CAFFE_GET_BLOCKS(no_elements), CAFFE_CUDA_NUM_THREADS>>>(
~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
CAFFE_VERSION
/home/ap/code/clCaffe/src/caffe/layers/upsample_layer.cu:81:46: warning: right operand of comma operator has no effect [-Wunused-value]
top[0]->mutable_gpu_data(), no_elements, scale_, d1, d2, d3);
/home/ap/code/clCaffe/src/caffe/layers/upsample_layer.cu:81:48: warning: right operand of comma operator has no effect [-Wunused-value]
top[0]->mutable_gpu_data(), no_elements, scale_, d1, d2, d3);
^~~~~~
/home/ap/code/clCaffe/src/caffe/layers/upsample_layer.cu:81:58: warning: right operand of comma operator has no effect [-Wunused-value]
top[0]->mutable_gpu_data(), no_elements, scale_, d1, d2, d3);
/home/ap/code/clCaffe/src/caffe/layers/upsample_layer.cu:81:62: warning: right operand of comma operator has no effect [-Wunused-value]
<<<CAFFE_GET_BLOCKS(no_elements), CAFFE_CUDA_NUM_THREADS>>>(
~
bottom[0]->gpu_data(),
~~~~~~~~~~~~~~~~~~~~~~
top[0]->mutable_gpu_data(), no_elements, scale_, d1, d2, d3);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
/home/ap/code/clCaffe/src/caffe/layers/upsample_layer.cu: In instantiation of ‘void caffe::UpsampleLayer<Dtype>::Backward_gpu(const std::vector<caffe::Blob<Dtype>*>&, const std::vector<bool>&, const std::vector<caffe::Blob<Dtype>*>&) [with Dtype = half_float::half]’:
/home/ap/code/clCaffe/src/caffe/layers/upsample_layer.cu:99:1: required from here
/home/ap/code/clCaffe/src/caffe/layers/upsample_layer.cu:93:16: error: ‘caffe_gpu_set’ was not declared in this scope
caffe_gpu_set(bottom[0]->count(), Dtype(0), bottom_diff);
~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/ap/code/clCaffe/src/caffe/layers/upsample_layer.cu:95:26: error: ‘CAFFE_GET_BLOCKS’ was not declared in this scope
<<<CAFFE_GET_BLOCKS(no_elements), CAFFE_CUDA_NUM_THREADS>>>(
~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
/home/ap/code/clCaffe/src/caffe/layers/upsample_layer.cu:95:26: note: suggested alternative: ‘CAFFE_VERSION’
<<<CAFFE_GET_BLOCKS(no_elements), CAFFE_CUDA_NUM_THREADS>>>(
~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
CAFFE_VERSION
/home/ap/code/clCaffe/src/caffe/layers/upsample_layer.cu:96:18: warning: left operand of comma operator has no effect [-Wunused-value]
bottom_diff, top[0]->gpu_diff(), no_elements, scale_, d1, d2, d3);
/home/ap/code/clCaffe/src/caffe/layers/upsample_layer.cu:96:51: warning: right operand of comma operator has no effect [-Wunused-value]
bottom_diff, top[0]->gpu_diff(), no_elements, scale_, d1, d2, d3);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
/home/ap/code/clCaffe/src/caffe/layers/upsample_layer.cu:96:53: warning: right operand of comma operator has no effect [-Wunused-value]
bottom_diff, top[0]->gpu_diff(), no_elements, scale_, d1, d2, d3);
^~~~~~
/home/ap/code/clCaffe/src/caffe/layers/upsample_layer.cu:96:63: warning: right operand of comma operator has no effect [-Wunused-value]
bottom_diff, top[0]->gpu_diff(), no_elements, scale_, d1, d2, d3);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
/home/ap/code/clCaffe/src/caffe/layers/upsample_layer.cu:96:67: warning: right operand of comma operator has no effect [-Wunused-value]
<<<CAFFE_GET_BLOCKS(no_elements), CAFFE_CUDA_NUM_THREADS>>>(
~
bottom_diff, top[0]->gpu_diff(), no_elements, scale_, d1, d2, d3);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
/home/ap/code/clCaffe/src/caffe/layers/upsample_layer.cu: In instantiation of ‘void caffe::UpsampleLayer<Dtype>::Backward_gpu(const std::vector<caffe::Blob<Dtype>*>&, const std::vector<bool>&, const std::vector<caffe::Blob<Dtype>*>&) [with Dtype = float]’:
/home/ap/code/clCaffe/src/caffe/layers/upsample_layer.cu:99:1: required from here
/home/ap/code/clCaffe/src/caffe/layers/upsample_layer.cu:93:16: error: ‘caffe_gpu_set’ was not declared in this scope
caffe_gpu_set(bottom[0]->count(), Dtype(0), bottom_diff);
~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/ap/code/clCaffe/src/caffe/layers/upsample_layer.cu:95:26: error: ‘CAFFE_GET_BLOCKS’ was not declared in this scope
<<<CAFFE_GET_BLOCKS(no_elements), CAFFE_CUDA_NUM_THREADS>>>(
~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
/home/ap/code/clCaffe/src/caffe/layers/upsample_layer.cu:95:26: note: suggested alternative: ‘CAFFE_VERSION’
<<<CAFFE_GET_BLOCKS(no_elements), CAFFE_CUDA_NUM_THREADS>>>(
~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
CAFFE_VERSION
/home/ap/code/clCaffe/src/caffe/layers/upsample_layer.cu:96:18: warning: left operand of comma operator has no effect [-Wunused-value]
bottom_diff, top[0]->gpu_diff(), no_elements, scale_, d1, d2, d3);
/home/ap/code/clCaffe/src/caffe/layers/upsample_layer.cu:96:51: warning: right operand of comma operator has no effect [-Wunused-value]
bottom_diff, top[0]->gpu_diff(), no_elements, scale_, d1, d2, d3);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
/home/ap/code/clCaffe/src/caffe/layers/upsample_layer.cu:96:53: warning: right operand of comma operator has no effect [-Wunused-value]
bottom_diff, top[0]->gpu_diff(), no_elements, scale_, d1, d2, d3);
^~~~~~
/home/ap/code/clCaffe/src/caffe/layers/upsample_layer.cu:96:63: warning: right operand of comma operator has no effect [-Wunused-value]
bottom_diff, top[0]->gpu_diff(), no_elements, scale_, d1, d2, d3);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
/home/ap/code/clCaffe/src/caffe/layers/upsample_layer.cu:96:67: warning: right operand of comma operator has no effect [-Wunused-value]
<<<CAFFE_GET_BLOCKS(no_elements), CAFFE_CUDA_NUM_THREADS>>>(
~
bottom_diff, top[0]->gpu_diff(), no_elements, scale_, d1, d2, d3);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
/home/ap/code/clCaffe/src/caffe/layers/upsample_layer.cu: In instantiation of ‘void caffe::UpsampleLayer<Dtype>::Backward_gpu(const std::vector<caffe::Blob<Dtype>*>&, const std::vector<bool>&, const std::vector<caffe::Blob<Dtype>*>&) [with Dtype = double]’:
/home/ap/code/clCaffe/src/caffe/layers/upsample_layer.cu:99:1: required from here
/home/ap/code/clCaffe/src/caffe/layers/upsample_layer.cu:93:16: error: ‘caffe_gpu_set’ was not declared in this scope
caffe_gpu_set(bottom[0]->count(), Dtype(0), bottom_diff);
~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/ap/code/clCaffe/src/caffe/layers/upsample_layer.cu:95:26: error: ‘CAFFE_GET_BLOCKS’ was not declared in this scope
<<<CAFFE_GET_BLOCKS(no_elements), CAFFE_CUDA_NUM_THREADS>>>(
~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
/home/ap/code/clCaffe/src/caffe/layers/upsample_layer.cu:95:26: note: suggested alternative: ‘CAFFE_VERSION’
<<<CAFFE_GET_BLOCKS(no_elements), CAFFE_CUDA_NUM_THREADS>>>(
~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
CAFFE_VERSION
/home/ap/code/clCaffe/src/caffe/layers/upsample_layer.cu:96:18: warning: left operand of comma operator has no effect [-Wunused-value]
bottom_diff, top[0]->gpu_diff(), no_elements, scale_, d1, d2, d3);
/home/ap/code/clCaffe/src/caffe/layers/upsample_layer.cu:96:51: warning: right operand of comma operator has no effect [-Wunused-value]
bottom_diff, top[0]->gpu_diff(), no_elements, scale_, d1, d2, d3);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
/home/ap/code/clCaffe/src/caffe/layers/upsample_layer.cu:96:53: warning: right operand of comma operator has no effect [-Wunused-value]
bottom_diff, top[0]->gpu_diff(), no_elements, scale_, d1, d2, d3);
^~~~~~
/home/ap/code/clCaffe/src/caffe/layers/upsample_layer.cu:96:63: warning: right operand of comma operator has no effect [-Wunused-value]
bottom_diff, top[0]->gpu_diff(), no_elements, scale_, d1, d2, d3);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
/home/ap/code/clCaffe/src/caffe/layers/upsample_layer.cu:96:67: warning: right operand of comma operator has no effect [-Wunused-value]
<<<CAFFE_GET_BLOCKS(no_elements), CAFFE_CUDA_NUM_THREADS>>>(
~
bottom_diff, top[0]->gpu_diff(), no_elements, scale_, d1, d2, d3);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
src/caffe/CMakeFiles/caffe.dir/build.make:2802: recipe for target 'src/caffe/CMakeFiles/caffe.dir/layers/upsample_layer.cu.o' failed
make[2]: *** [src/caffe/CMakeFiles/caffe.dir/layers/upsample_layer.cu.o] Error 1
CMakeFiles/Makefile2:281: 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