aboutsummaryrefslogtreecommitdiff
path: root/src/cl-utils.h
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2011-11-15 16:37:04 +0100
committerThomas White <taw@physics.org>2012-02-22 15:27:40 +0100
commitfa010578c3ad146e6c7c89305fe57394eaff4b92 (patch)
tree21eea47ccb811957f9049f96932744ef17692980 /src/cl-utils.h
parentbf4c3bd3d82341bf9c134a47aa50eae2499831e7 (diff)
Move cl-utils back out of libcrystfel
Diffstat (limited to 'src/cl-utils.h')
-rw-r--r--src/cl-utils.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/cl-utils.h b/src/cl-utils.h
new file mode 100644
index 00000000..21a7ecd2
--- /dev/null
+++ b/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 */