Commit 62cc8d86 authored by Alexander Alekhin's avatar Alexander Alekhin

dnn: build fixes

parent 2feb23cf
...@@ -60,12 +60,12 @@ BaseConvolutionLayerImpl::BaseConvolutionLayerImpl(): ...@@ -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 @@ ...@@ -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 @@ ...@@ -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 @@ ...@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment