aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/cl-utils.h
blob: 21a7ecd26c535b122c9c942da42a0f24f8cf18ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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 */