From cd8d53df21f3ad2810add2a8cff766c745f55a17 Mon Sep 17 00:00:00 2001
From: Joseph Redmon <pjreddie@gmail.com>
Date: Fri, 09 May 2014 22:14:52 +0000
Subject: [PATCH] So there WAS this huge bug. Gone now

---
 src/opencl.h |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/src/opencl.h b/src/opencl.h
index 59efbae..eafb3e7 100644
--- a/src/opencl.h
+++ b/src/opencl.h
@@ -1,3 +1,6 @@
+#ifdef GPU
+#ifndef OPENCL_H
+#define OPENCL_H
 #ifdef __APPLE__
 #include <OpenCL/opencl.h>
 #else
@@ -18,4 +21,7 @@
 void cl_setup();
 void check_error(cl_info info);
 cl_kernel get_kernel(char *filename, char *kernelname, char *options);
-
+void cl_read_array(cl_mem mem, float *x, int n);
+void cl_write_array(cl_mem mem, float *x, int n);
+#endif
+#endif

--
Gitblit v1.10.0