Improved test script for OpenCL