From af4e4f92dc9e5da160eb6c6870a7b38b863f1c6c Mon Sep 17 00:00:00 2001
From: Joseph Redmon <pjreddie@gmail.com>
Date: Tue, 28 Oct 2014 02:45:06 +0000
Subject: [PATCH] getting rid of sub_arrays, nvidia driver memory leak
---
src/opencl.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/opencl.c b/src/opencl.c
index 604a2e3..fc7310c 100644
--- a/src/opencl.c
+++ b/src/opencl.c
@@ -4,7 +4,7 @@
#include <string.h>
#include <time.h>
#include <unistd.h>
-#include <clBLAS.h>
+//#include <clBLAS.h>
#include "opencl.h"
#include "utils.h"
@@ -99,7 +99,7 @@
info.queues[i] = clCreateCommandQueue(info.context, info.device, 0, &info.error);
check_error(info);
}
- info.error = clblasSetup();
+ //info.error = clblasSetup();
check_error(info);
info.initialized = 1;
return info;
@@ -141,6 +141,7 @@
void cl_setup()
{
if(!cl.initialized){
+ printf("initializing\n");
cl = cl_init();
}
}
--
Gitblit v1.10.0