[gegl] Use public CL_CHECK_ONLY in gegl_cl_compile_and_build
- From: Daniel Sabo <daniels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] Use public CL_CHECK_ONLY in gegl_cl_compile_and_build
- Date: Sun, 3 Nov 2013 23:04:13 +0000 (UTC)
commit 7bf15b8fbe4fcf81f9108d4d0c2d68746d9aa5cb
Author: Daniel Sabo <DanielSabo gmail com>
Date: Sun Nov 3 14:55:16 2013 -0800
Use public CL_CHECK_ONLY in gegl_cl_compile_and_build
gegl/opencl/gegl-cl-init.c | 10 +---------
1 files changed, 1 insertions(+), 9 deletions(-)
---
diff --git a/gegl/opencl/gegl-cl-init.c b/gegl/opencl/gegl-cl-init.c
index b56fa9b..5ff542a 100644
--- a/gegl/opencl/gegl-cl-init.c
+++ b/gegl/opencl/gegl-cl-init.c
@@ -32,6 +32,7 @@
#include <string.h>
#include <stdio.h>
+#include "gegl-cl.h"
#include "gegl-cl-color.h"
#include "opencl/random.cl.h"
@@ -477,13 +478,6 @@ gegl_cl_init (GError **error)
#undef CL_LOAD_FUNCTION
-#define CL_CHECK_ONLY(errcode) \
-if (errcode != CL_SUCCESS) \
-{ \
- g_warning ("OpenCL error: %s:%d - %s", \
- __FILE__, __LINE__, gegl_cl_errstring (errcode)); \
-}
-
/* XXX: same program_source with different kernel_name[], context or device
* will retrieve the same key
*/
@@ -580,5 +574,3 @@ gegl_cl_compile_and_build (const char *program_source, const char *kernel_name[]
return cl_data;
}
-
-#undef CL_CHECK_ONLY
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]