Test bruteforce/conversions - run finish only on existing queue.

This commit is contained in:
Grzegorz Wawiorko
2020-03-31 11:26:41 +02:00
committed by Alastair Murray
parent 9a006ba1a0
commit 2a8cecb925
2 changed files with 10 additions and 7 deletions

View File

@@ -319,10 +319,11 @@ int main (int argc, const char **argv )
int ret = runTestHarnessWithCheck( 1, arg, test_num, test_list, true, 0, InitCL );
free_mtdata( gMTdata );
error = clFinish(gQueue);
if (error)
vlog_error("clFinish failed: %d\n", error);
if (gQueue) {
error = clFinish(gQueue);
if (error)
vlog_error("clFinish failed: %d\n", error);
}
clReleaseMemObject(gInBuffer);