aboutsummaryrefslogtreecommitdiff
path: root/src/cl-utils.h
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2010-02-20 22:25:39 +0100
committerThomas White <taw@bitwiz.org.uk>2010-02-20 22:26:22 +0100
commitcc0db0054d76474e55393c05806f715a0e2f6d08 (patch)
treef7c357a2b08507bcddf080ff8c8594f1ef567f23 /src/cl-utils.h
parent0fab44d676aacde5e04156ad2b2e24a580bfab18 (diff)
Move OpenCL utility stuff to a separate module
Diffstat (limited to 'src/cl-utils.h')
-rw-r--r--src/cl-utils.h26
1 files changed, 26 insertions, 0 deletions
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 <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_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 */