aboutsummaryrefslogtreecommitdiff
path: root/src/diffraction-gpu.c
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.c
parentc7e0450702ab668cdcda34541e6bf815d50be8a8 (diff)
Move critical array size definitions to share between CPU and GPU versions
Diffstat (limited to 'src/diffraction-gpu.c')
-rw-r--r--src/diffraction-gpu.c3
1 files changed, 2 insertions, 1 deletions
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);