From 0f6ebe5649902dea9456c6598bc28e694c422336 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Tue, 9 Feb 2010 17:24:16 +0100 Subject: Use OpenCL for much faster diffraction calculation --- src/diffraction-gpu.h | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 src/diffraction-gpu.h (limited to 'src/diffraction-gpu.h') diff --git a/src/diffraction-gpu.h b/src/diffraction-gpu.h new file mode 100644 index 00000000..687fecf3 --- /dev/null +++ b/src/diffraction-gpu.h @@ -0,0 +1,34 @@ +/* + * diffraction-gpu.h + * + * Calculate diffraction patterns by Fourier methods (GPU version) + * + * (c) 2006-2010 Thomas White + * + * Part of CrystFEL - crystallography with a FEL + * + */ + +#ifdef HAVE_CONFIG_H +#include +#endif + +#ifndef DIFFRACTION_GPU_H +#define DIFFRACTION_GPU_H + +#include "image.h" +#include "cell.h" + +#if HAVE_OPENCL +extern void get_diffraction_gpu(struct image *image, int na, int nb, int nc, + int nosfac); +#else +static void get_diffraction_gpu(struct image *image, int na, int nb, int nc, + int nosfac) +{ + /* Do nothing */ + ERROR("This copy of CrystFEL was not compiled with OpenCL support.\n"); +} +#endif + +#endif /* DIFFRACTION_GPU_H */ -- cgit v1.2.3