[gegl] tools/gegl-tester: print whether opencl acceleration is used or not



commit f62795ddf7b699ddc9df9357cfb0bce530fe530a
Author: Øyvind Kolås <pippin gimp org>
Date:   Sat Mar 11 21:26:10 2017 +0100

    tools/gegl-tester: print whether opencl acceleration is used or not

 tools/gegl-tester.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/tools/gegl-tester.c b/tools/gegl-tester.c
index a9dd934..79b2405 100644
--- a/tools/gegl-tester.c
+++ b/tools/gegl-tester.c
@@ -282,6 +282,7 @@ main (gint    argc,
 
   setlocale (LC_ALL, "");
 
+
   context = g_option_context_new (NULL);
   g_option_context_add_main_entries (context, options, NULL);
   g_option_context_add_group (context, gegl_get_option_group ());
@@ -309,6 +310,9 @@ main (gint    argc,
     }
   else
     {
+      g_printf ("running gegl-tester with%s opencl acceleration\n",
+        gegl_cl_is_accelerated()?"":"out");
+
       regex = g_regex_new (pattern, 0, 0, NULL);
       exc_regex = g_regex_new (exclusion_pattern, 0, 0, NULL);
 
@@ -322,7 +326,7 @@ main (gint    argc,
 
   if (failed != 0)
   {
-    g_warning ("%i operations not producing the expected result: %s\n", failed, failed_ops->str);
+    g_print ("%i operations not producing the expected result: %s\n", failed, failed_ops->str);
     return -1;
   }
   g_string_free (failed_ops, TRUE);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]