From d407bffde934ea4c1ee392f24cdf26d9a987199b Mon Sep 17 00:00:00 2001
From: Joseph Redmon <pjreddie@gmail.com>
Date: Tue, 18 Nov 2014 21:51:04 +0000
Subject: [PATCH] checkpoint

---
 src/axpy.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/axpy.c b/src/axpy.c
index eddfdc6..21293b3 100644
--- a/src/axpy.c
+++ b/src/axpy.c
@@ -87,7 +87,7 @@
 
     const size_t global_size[] = {N};
 
-    clEnqueueNDRangeKernel(queue, kernel, 1, 0, global_size, 0, 0, 0, 0);
+    cl.error = clEnqueueNDRangeKernel(queue, kernel, 1, 0, global_size, 0, 0, 0, 0);
     check_error(cl);
 
 }
@@ -113,7 +113,7 @@
 
     const size_t global_size[] = {N};
 
-    clEnqueueNDRangeKernel(queue, kernel, 1, 0, global_size, 0, 0, 0, 0);
+    cl.error = clEnqueueNDRangeKernel(queue, kernel, 1, 0, global_size, 0, 0, 0, 0);
     check_error(cl);
 }
 void scal_ongpu(int N, float ALPHA, cl_mem X, int INCX)
@@ -131,7 +131,7 @@
 
     const size_t global_size[] = {N};
 
-    clEnqueueNDRangeKernel(queue, kernel, 1, 0, global_size, 0, 0, 0, 0);
+    cl.error = clEnqueueNDRangeKernel(queue, kernel, 1, 0, global_size, 0, 0, 0, 0);
     check_error(cl);
 }
 #endif

--
Gitblit v1.10.0