@@ -20,7 +20,11 @@
#include <string.h>
#include <unistd.h>
+#ifdef __APPLE_CC__
+#include <OpenCL/opencl.h>
+#else
#include <CL/cl.h>
+#endif
#define error(...) do { fprintf(stderr, "Error: " __VA_ARGS__); exit(EXIT_FAILURE); } while(0)
#define check(err, str) do { if(err != CL_SUCCESS) { fprintf(stderr, "OpenCL Error (%d): %s\n",err, str); exit(EXIT_FAILURE); }} while(0)
@@ -18,7 +18,11 @@
#include <stdio.h>
#include <stdlib.h>
static inline void
checkErr(cl_int err, const char * name) {
@@ -42,7 +42,11 @@ int frames = -1;
#include <assert.h>
#include <sys/time.h>
@@ -14,7 +14,12 @@
* See the GNU Lesser General Public License in COPYING.LGPL for more details.
*/
+