From 2662cd51a32cf8292ccce555f64880f460108d2d Mon Sep 17 00:00:00 2001
From: AlexeyAB <alexeyab84@gmail.com>
Date: Tue, 28 Mar 2017 10:57:27 +0000
Subject: [PATCH] Fixed sequence of freeing memory.

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

diff --git a/src/convolutional_kernels.cu b/src/convolutional_kernels.cu
index 4191efe..005269b 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"

--
Gitblit v1.10.0