aboutsummaryrefslogtreecommitdiff
path: root/src/diffraction-gpu.h
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2010-02-19 22:43:11 +0100
committerThomas White <taw@bitwiz.org.uk>2010-02-19 22:43:38 +0100
commitdca8cc2962e2768a7cb69b5d9717b6e5c78be288 (patch)
treed89d9bf32b37a3d9c781321bcc4f523f7586b48c /src/diffraction-gpu.h
parentc7e0450702ab668cdcda34541e6bf815d50be8a8 (diff)
Move critical array size definitions to share between CPU and GPU versions
Diffstat (limited to 'src/diffraction-gpu.h')
-rw-r--r--src/diffraction-gpu.h21
1 files changed, 17 insertions, 4 deletions
diff --git a/src/diffraction-gpu.h b/src/diffraction-gpu.h
index a7446a98..f3bed8bf 100644
--- a/src/diffraction-gpu.h
+++ b/src/diffraction-gpu.h
@@ -22,19 +22,32 @@
struct gpu_context;
#if HAVE_OPENCL
+
extern void get_diffraction_gpu(struct gpu_context *gctx, struct image *image,
int na, int nb, int nc);
+extern struct gpu_context *setup_gpu(int no_sfac, struct image *image,
+ struct molecule *molecule);
+extern void cleanup_gpu(struct gpu_context *gctx);
+
#else
+
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);
+static struct gpu_context *setup_gpu(int no_sfac, struct image *image,
+ struct molecule *molecule)
+{
+ return NULL;
+}
+
+static void cleanup_gpu(struct gpu_context *gctx)
+{
+}
+
+#endif
#endif /* DIFFRACTION_GPU_H */