aboutsummaryrefslogtreecommitdiff
path: root/fractal-gen.c
diff options
context:
space:
mode:
authorDavid Phillips <david@sighup.nz>2017-02-18 00:48:16 +1300
committerDavid Phillips <david@sighup.nz>2017-02-18 00:48:16 +1300
commitd356d2bea1a5c0012bf6ef746a90f86b2076d9c2 (patch)
treeeee34f17d35394da91e0d15c5889540de7fec46e /fractal-gen.c
parentea11f0c71f1617bbfdb5a5ef6644e34cb0192e29 (diff)
downloadfractal-gen-opencl-d356d2bea1a5c0012bf6ef746a90f86b2076d9c2.tar.xz
Add macro to set CL kernel source directory
This will future-proof the software for installation to system roots, where the executable isn't being run in the source tree.
Diffstat (limited to 'fractal-gen.c')
-rw-r--r--fractal-gen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fractal-gen.c b/fractal-gen.c
index 91a2f18..60b27e3 100644
--- a/fractal-gen.c
+++ b/fractal-gen.c
@@ -14,7 +14,7 @@ int run(unsigned int size, unsigned int iterations)
fprintf(stderr, "Done.\n");
fprintf(stderr, "Loading kernel source from file... ");
- if (tramp_load_kernel("mandelbrot.cl")) {
+ if (tramp_load_kernel(CL_SRC_DIR"mandelbrot.cl")) {
fprintf(stderr, "Failed.\n");
return 1;
}