opencl backend: opencl_open_files: use base name in #include
commit5c3d56570683c98a6c0e4df2a51628d33848e6b6
authorSven Verdoolaege <skimo@kotnet.org>
Thu, 10 Apr 2014 11:21:39 +0000 (10 13:21 +0200)
committerSven Verdoolaege <skimo@kotnet.org>
Thu, 10 Apr 2014 14:00:46 +0000 (10 16:00 +0200)
treecf77844ee2b5c25d114d4f2d32b6953eded031a2
parent3ebcb9ce23d346c002251968c5209e2f78d06a3d
opencl backend: opencl_open_files: use base name in #include

The name of the header file may have been derived from the output
file name specified by the user and may therefore include a relative path.
This path is relative to the location where ppcg is invoked
but this location may be different from the one where the generated
code is compiled.  Since the header file is created in the same
directory as the host source file, we can use the base name instead.

This commit fixes the --keep option of polybench_test.sh,
which has been broken ever since the introduction of the OpenCL backend
in 2b8a598 (Add OpenCL backend, Fri Jun 21 11:57:05 2013 +0200).

Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
opencl.c