dnn: build fixes

pull/956/head
Alexander Alekhin 8 years ago
parent 2feb23cf36
commit 62cc8d86e9
  1. 12
      modules/dnn/src/layers/convolution_layer.cpp
  2. 4
      modules/dnn/src/layers/elementwise_layers.hpp
  3. 2
      modules/dnn/src/layers/lrn_layer.cpp
  4. 2
      modules/dnn/src/layers/softmax_layer.cpp

@ -60,12 +60,12 @@ BaseConvolutionLayerImpl::BaseConvolutionLayerImpl():
inpGroupCn(0), outGroupCn(0), inpGroupCn(0), outGroupCn(0),
ksize(0), bias(false), tryUseOpenCL(false) ksize(0), bias(false), tryUseOpenCL(false)
{ {
#if HAVE_CBLAS #ifdef HAVE_LAPACK
if (getBlasThreads() != cv::getThreadNum()) if (getBlasThreads() != cv::getThreadNum())
{ {
setBlasThreads(cv::getThreadNum()); setBlasThreads(cv::getThreadNum());
} }
#endif #endif
} }
void BaseConvolutionLayerImpl::init() void BaseConvolutionLayerImpl::init()

@ -46,9 +46,7 @@
#include <cmath> #include <cmath>
#include <opencv2/dnn/all_layers.hpp> #include <opencv2/dnn/all_layers.hpp>
#include <opencv2/core/ocl.hpp> #include <opencv2/core/ocl.hpp>
#ifdef HAVE_OPENCL #include "opencl_kernels_dnn.hpp"
#include "modules/dnn/opencl_kernels_dnn.hpp"
#endif
namespace cv namespace cv
{ {

@ -42,7 +42,7 @@
#include "../precomp.hpp" #include "../precomp.hpp"
#include "layers_common.hpp" #include "layers_common.hpp"
#include "lrn_layer.hpp" #include "lrn_layer.hpp"
#include "modules/dnn/opencl_kernels_dnn.hpp" #include "opencl_kernels_dnn.hpp"
#include <opencv2/imgproc.hpp> #include <opencv2/imgproc.hpp>
#include <opencv2/core/ocl.hpp> #include <opencv2/core/ocl.hpp>
#include <opencv2/dnn/shape_utils.hpp> #include <opencv2/dnn/shape_utils.hpp>

@ -43,7 +43,7 @@
#include "layers_common.hpp" #include "layers_common.hpp"
#include "softmax_layer.hpp" #include "softmax_layer.hpp"
#include <opencv2/core/ocl.hpp> #include <opencv2/core/ocl.hpp>
#include "modules/dnn/opencl_kernels_dnn.hpp" #include "opencl_kernels_dnn.hpp"
#include <algorithm> #include <algorithm>
#include <stdlib.h> #include <stdlib.h>
using std::max; using std::max;

Loading…
Cancel
Save