From 7c120aef23fde5b215b0fb6eef3074a15f16ff69 Mon Sep 17 00:00:00 2001
From: Joseph Redmon <pjreddie@gmail.com>
Date: Wed, 19 Nov 2014 22:03:51 +0000
Subject: [PATCH] stable, dropout on gpu
---
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