testHarness: Print error string when clFinish fails (#1243)

This commit is contained in:
Pierre Moreau
2021-05-12 12:39:45 +02:00
committed by GitHub
parent 06f7661fdc
commit d7f87492bd

View File

@@ -861,7 +861,7 @@ test_status callSingleTestFunction(test_definition test,
int error = clFinish(queue); int error = clFinish(queue);
if (error) if (error)
{ {
log_error("clFinish failed: %d", error); log_error("clFinish failed: %s\n", IGetErrorString(error));
status = TEST_FAIL; status = TEST_FAIL;
} }
clReleaseCommandQueue(queue); clReleaseCommandQueue(queue);