Browse Source

- avoid dumping tons of source code when debugging real application, unless the user really wants it

Olivier Aumage 9 years ago
parent
commit
48563de46a
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/drivers/opencl/driver_opencl_utils.c

+ 2 - 0
src/drivers/opencl/driver_opencl_utils.c

@@ -169,7 +169,9 @@ char *_starpu_opencl_load_program_source(const char *filename)
 	}
 	source[x] = '\0';
 
+#ifdef STARPU_EXTRA_VERBOSE
 	_STARPU_DEBUG("OpenCL kernel <%s>\n", source);
+#endif
 
 	fclose(fh);