mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-25 16:29:03 +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 );
|
int ret = runTestHarnessWithCheck( 1, arg, test_num, test_list, true, 0, InitCL );
|
||||||
|
|
||||||
free_mtdata( gMTdata );
|
free_mtdata( gMTdata );
|
||||||
|
if (gQueue) {
|
||||||
error = clFinish(gQueue);
|
error = clFinish(gQueue);
|
||||||
if (error)
|
if (error)
|
||||||
vlog_error("clFinish failed: %d\n", error);
|
vlog_error("clFinish failed: %d\n", error);
|
||||||
|
}
|
||||||
|
|
||||||
clReleaseMemObject(gInBuffer);
|
clReleaseMemObject(gInBuffer);
|
||||||
|
|
||||||
|
|||||||
@@ -816,9 +816,11 @@ int main (int argc, const char * argv[])
|
|||||||
free_mtdata(gMTdata);
|
free_mtdata(gMTdata);
|
||||||
free(gTestNames);
|
free(gTestNames);
|
||||||
|
|
||||||
int error_code = clFinish(gQueue);
|
if (gQueue) {
|
||||||
if (error_code)
|
int error_code = clFinish(gQueue);
|
||||||
vlog_error("clFinish failed:%d\n", error_code);
|
if (error_code)
|
||||||
|
vlog_error("clFinish failed:%d\n", error_code);
|
||||||
|
}
|
||||||
|
|
||||||
ReleaseCL();
|
ReleaseCL();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user