Commit b6c11993 authored by Thomas White's avatar Thomas White
Browse files

setup_gpu() does not need an image

parent ef764dd1
......@@ -342,7 +342,7 @@ void get_diffraction_gpu(struct gpu_context *gctx, struct image *image,
/* Setup the OpenCL stuff, create buffers, load the structure factor table */
struct gpu_context *setup_gpu(int no_sfac, struct image *image,
struct gpu_context *setup_gpu(int no_sfac,
const double *intensities, unsigned char *flags,
const char *sym, int dev_num)
{
......
......@@ -25,7 +25,7 @@ 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,
extern struct gpu_context *setup_gpu(int no_sfac,
const double *intensities,
const unsigned char *flags,
const char *sym, int dev_num);
......@@ -40,7 +40,7 @@ static void get_diffraction_gpu(struct gpu_context *gctx, struct image *image,
ERROR("This copy of CrystFEL was not compiled with OpenCL support.\n");
}
static struct gpu_context *setup_gpu(int no_sfac, struct image *image,
static struct gpu_context *setup_gpu(int no_sfac,
const double *intensities,
const unsigned char *flags,
const char *sym, int dev_num)
......
......@@ -533,7 +533,7 @@ int main(int argc, char *argv[])
if ( config_gpu ) {
if ( gctx == NULL ) {
gctx = setup_gpu(config_nosfac, &image,
gctx = setup_gpu(config_nosfac,
intensities, flags, sym,
gpu_dev);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment