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
29 for i
in $srcdir/tests
/*.c
; do
33 out_c
="${OUTDIR}/$name.ppcg.c"
34 out
="${OUTDIR}/$name.ppcg$EXEEXT"
35 options
="--target=opencl --opencl-no-use-gpu"
36 functions
="$srcdir/tests/${name}_opencl_functions.cl"
37 if test -f $functions; then
38 options
="$options --opencl-include-file=$functions"
39 options
="$options --opencl-compiler-options=-I."
41 .
/ppcg
$EXEEXT $options $i -o "$out_c" ||
exit
42 $CC $CFLAGS "$srcdir/ocl_utilities.c" -lOpenCL "$out_c" -o "$out" || \
47 if [ $keep = "no" ]; then