diff options
Diffstat (limited to 'libcrystfel/src/cl-utils.h')
-rw-r--r-- | libcrystfel/src/cl-utils.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/libcrystfel/src/cl-utils.h b/libcrystfel/src/cl-utils.h new file mode 100644 index 00000000..21a7ecd2 --- /dev/null +++ b/libcrystfel/src/cl-utils.h @@ -0,0 +1,27 @@ +/* + * cl-utils.h + * + * OpenCL utility functions + * + * (c) 2006-2010 Thomas White <taw@physics.org> + * + * Part of CrystFEL - crystallography with a FEL + * + */ + +#ifndef CLUTILS_H +#define CLUTILS_H + +#ifdef HAVE_CONFIG_H +#include <config.h> +#endif + + +extern const char *clError(cl_int err); +extern cl_device_id get_cl_dev(cl_context ctx, int n); +extern cl_program load_program(const char *filename, cl_context ctx, + cl_device_id dev, cl_int *err, + const char *extra_cflags); + + +#endif /* CLUTILS_H */ |