intel-device-plugins-for-ku.../demo/ubuntu-demo-opencl/run-opencl-example.sh
Dmitry Rozhkov 945f6e98f7 Update GPU demo to run FFT on the device
Also the demo runs on top of Intel compute runtime instead of
Beignet.
2018-07-05 16:19:16 +03:00

18 lines
329 B
Bash
Executable File

#!/bin/sh -xe
WORK_DIR=$1
cd $WORK_DIR
./fft
uprightdiff --format json output.pgm /expected.pgm diff.pgm > diff.json
MODIFIED_AREA=`cat diff.json | jq '.modifiedArea'`
if [ $MODIFIED_AREA -gt 10 ]; then
echo "The image difference with expected result is too big: ${MODIFIED_AREA} pixels"
exit 255
fi
echo "Success"