mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-20 06:29:02 +00:00
Test bruteforce/conversions - run finish only on existing queue.
This commit is contained in:
committed by
Alastair Murray
parent
9a006ba1a0
commit
2a8cecb925
@@ -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);
|
||||
|
||||
|
||||
@@ -816,9 +816,11 @@ int main (int argc, const char * argv[])
|
||||
free_mtdata(gMTdata);
|
||||
free(gTestNames);
|
||||
|
||||
int error_code = clFinish(gQueue);
|
||||
if (error_code)
|
||||
vlog_error("clFinish failed:%d\n", error_code);
|
||||
if (gQueue) {
|
||||
int error_code = clFinish(gQueue);
|
||||
if (error_code)
|
||||
vlog_error("clFinish failed:%d\n", error_code);
|
||||
}
|
||||
|
||||
ReleaseCL();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user