diff options
author | Thomas White <taw@physics.org> | 2010-02-19 15:49:10 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2010-02-19 15:49:10 +0100 |
commit | cf163cb27898705b4f14344ad0b9a8edc2181d35 (patch) | |
tree | 66954eb7ab40e43a8fa89e04206d18f388f14d86 /src/diffraction-gpu.h | |
parent | 6c50250a83b6db61378c3e63bd8d23d1c6e5b838 (diff) |
Split OpenCL initialisation into separate routing to avoid re-compiling all the time
Diffstat (limited to 'src/diffraction-gpu.h')
-rw-r--r-- | src/diffraction-gpu.h | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/diffraction-gpu.h b/src/diffraction-gpu.h index 687fecf3..a7446a98 100644 --- a/src/diffraction-gpu.h +++ b/src/diffraction-gpu.h @@ -19,16 +19,22 @@ #include "image.h" #include "cell.h" +struct gpu_context; + #if HAVE_OPENCL -extern void get_diffraction_gpu(struct image *image, int na, int nb, int nc, - int nosfac); +extern void get_diffraction_gpu(struct gpu_context *gctx, struct image *image, + int na, int nb, int nc); #else -static void get_diffraction_gpu(struct image *image, int na, int nb, int nc, - int nosfac) +static void get_diffraction_gpu(struct gpu_context *gctx, struct image *image, + int na, int nb, int nc) { /* Do nothing */ ERROR("This copy of CrystFEL was not compiled with OpenCL support.\n"); } #endif +extern struct gpu_context *setup_gpu(int no_sfac, struct image *image, + struct molecule *molecule); +extern void cleanup_gpu(struct gpu_context *gctx); + #endif /* DIFFRACTION_GPU_H */ |