14 VERSION
=@GIT_HEAD_VERSION@
19 if [ $keep = "yes" ]; then
20 OUTDIR
="opencl_test.$VERSION"
21 mkdir
"$OUTDIR" ||
exit 1
23 if test "x$TMPDIR" = "x"; then
26 OUTDIR
=`mktemp -d $TMPDIR/ppcg.XXXXXXXXXX` ||
exit 1
33 echo Test with PPCG options
\'$ppcg_options\'
34 mkdir
${OUTDIR}/${subdir} ||
exit 1
35 for i
in $srcdir/tests
/*.c
; do
39 out_c
="${OUTDIR}/${subdir}/$name.ppcg.c"
40 out
="${OUTDIR}/${subdir}/$name.ppcg$EXEEXT"
41 options
="--target=opencl --opencl-no-use-gpu $ppcg_options"
42 functions
="$srcdir/tests/${name}_opencl_functions.cl"
43 if test -f $functions; then
44 options
="$options --opencl-include-file=$functions"
45 options
="$options --opencl-compiler-options=-I."
47 .
/ppcg
$EXEEXT $options $i -o "$out_c" ||
exit
48 $CC $CFLAGS "$srcdir/ocl_utilities.c" -lOpenCL -I.
"$out_c" \
55 run_tests embed
--opencl-embed-kernel-code
57 if [ $keep = "no" ]; then