From d356d2bea1a5c0012bf6ef746a90f86b2076d9c2 Mon Sep 17 00:00:00 2001 From: David Phillips Date: Sat, 18 Feb 2017 00:48:16 +1300 Subject: 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. --- fractal-gen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fractal-gen.c') 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; } -- cgit v1.1