aboutsummaryrefslogtreecommitdiff
path: root/src/diffraction-gpu.h
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2010-04-01 16:12:11 +0200
committerThomas White <taw@physics.org>2010-04-01 16:12:11 +0200
commitfced9d2b5b9154205886e12b5cde73292db3b59d (patch)
treed50ce7b6c6485e16910d3386f74a9c52129f10c0 /src/diffraction-gpu.h
parent4ef558e6c6b1bf7be1a28b945834f8c5fcb65dd0 (diff)
indexamajig: Introduce multithreading
Diffstat (limited to 'src/diffraction-gpu.h')
-rw-r--r--src/diffraction-gpu.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/diffraction-gpu.h b/src/diffraction-gpu.h
index 9d74dec4..003c4c3a 100644
--- a/src/diffraction-gpu.h
+++ b/src/diffraction-gpu.h
@@ -26,7 +26,8 @@ struct gpu_context;
extern void get_diffraction_gpu(struct gpu_context *gctx, struct image *image,
int na, int nb, int nc, UnitCell *ucell);
extern struct gpu_context *setup_gpu(int no_sfac, struct image *image,
- double *intensities, unsigned int *counts);
+ const double *intensities,
+ const unsigned int *counts);
extern void cleanup_gpu(struct gpu_context *gctx);
#else
@@ -39,7 +40,8 @@ static void get_diffraction_gpu(struct gpu_context *gctx, struct image *image,
}
static struct gpu_context *setup_gpu(int no_sfac, struct image *image,
- double *intensities, unsigned int *counts)
+ const double *intensities,
+ const unsigned int *counts)
{
return NULL;
}