From 84d6533cb8112f23a34d3de76435a10f4620f4b8 Mon Sep 17 00:00:00 2001
From: AlexeyAB <alexeyab84@gmail.com>
Date: Mon, 23 Oct 2017 13:43:03 +0000
Subject: [PATCH] Fixed OpenCV usage in the yolo_console_dll.cpp

---
 src/convolutional_kernels.cu |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/convolutional_kernels.cu b/src/convolutional_kernels.cu
index 4191efe..03c9ab7 100644
--- a/src/convolutional_kernels.cu
+++ b/src/convolutional_kernels.cu
@@ -2,7 +2,9 @@
 #include "curand.h"
 #include "cublas_v2.h"
 
+#ifdef CUDNN
 #pragma comment(lib, "cudnn.lib")  
+#endif
 
 extern "C" {
 #include "convolutional_layer.h"
@@ -125,6 +127,7 @@
     activate_array_ongpu(l.output_gpu, l.outputs*l.batch, l.activation);
     //if(l.dot > 0) dot_error_gpu(l);
     if(l.binary || l.xnor) swap_binary(&l);
+	//cudaDeviceSynchronize();	// for correct profiling of performance
 }
 
 void backward_convolutional_layer_gpu(convolutional_layer l, network_state state)

--
Gitblit v1.10.0