[gegl] bail from cl compiler if opencl is not enabled
- From: Ãyvind KolÃs <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] bail from cl compiler if opencl is not enabled
- Date: Sat, 14 Apr 2012 18:38:47 +0000 (UTC)
commit a5c6ce6f1dc515df10f8b055395ce195a422434c
Author: Ãyvind KolÃs <pippin gimp org>
Date: Sat Apr 14 20:38:39 2012 +0200
bail from cl compiler if opencl is not enabled
gegl/opencl/gegl-cl-init.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gegl/opencl/gegl-cl-init.c b/gegl/opencl/gegl-cl-init.c
index a5ac2ef..d973e1c 100644
--- a/gegl/opencl/gegl-cl-init.c
+++ b/gegl/opencl/gegl-cl-init.c
@@ -330,6 +330,8 @@ gegl_cl_compile_and_build (const char *program_source, const char *kernel_name[]
{
gint errcode;
gegl_cl_run_data *cl_data = NULL;
+ if (!gegl_cl_is_accelerated ())
+ return NULL;
if ((cl_data = (gegl_cl_run_data *)g_hash_table_lookup(cl_program_hash, program_source)) == NULL)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]