From dca8cc2962e2768a7cb69b5d9717b6e5c78be288 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Fri, 19 Feb 2010 22:43:11 +0100 Subject: Move critical array size definitions to share between CPU and GPU versions --- src/diffraction-gpu.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/diffraction-gpu.c') diff --git a/src/diffraction-gpu.c b/src/diffraction-gpu.c index 133c0bc1..1d0cb4dd 100644 --- a/src/diffraction-gpu.c +++ b/src/diffraction-gpu.c @@ -129,7 +129,8 @@ static cl_program load_program(const char *filename, cl_context ctx, return 0; } - r = clBuildProgram(prog, 0, NULL, "-Werror", NULL, NULL); + r = clBuildProgram(prog, 0, NULL, "-Werror -I"DATADIR"/crystfel/", + NULL, NULL); if ( r != CL_SUCCESS ) { ERROR("Couldn't build program '%s'\n", filename); show_build_log(prog, dev); -- cgit v1.2.3