From cc0db0054d76474e55393c05806f715a0e2f6d08 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Sat, 20 Feb 2010 22:25:39 +0100 Subject: Move OpenCL utility stuff to a separate module --- src/cl-utils.h | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 src/cl-utils.h (limited to 'src/cl-utils.h') diff --git a/src/cl-utils.h b/src/cl-utils.h new file mode 100644 index 00000000..1725ea1e --- /dev/null +++ b/src/cl-utils.h @@ -0,0 +1,26 @@ +/* + * cl-utils.h + * + * OpenCL utility functions + * + * (c) 2006-2010 Thomas White + * + * Part of CrystFEL - crystallography with a FEL + * + */ + +#ifndef CLUTILS_H +#define CLUTILS_H + +#ifdef HAVE_CONFIG_H +#include +#endif + + +extern const char *clError(cl_int err); +extern cl_device_id get_first_dev(cl_context ctx); +extern cl_program load_program(const char *filename, cl_context ctx, + cl_device_id dev, cl_int *err); + + +#endif /* CLUTILS_H */ -- cgit v1.2.3