MCPcopy Create free account
hub / github.com/KhronosGroup/OpenCL-CTS / waitForEvent

Function waitForEvent

test_conformance/printf/test_printf.cpp:206–222  ·  view source on GitHub ↗

----------------------------------------- waitForEvent -----------------------------------------

Source from the content-addressed store, hash-verified

204// waitForEvent
205//-----------------------------------------
206int waitForEvent(cl_event* event)
207{
208 cl_int status = clWaitForEvents(1, event);
209 if(status != CL_SUCCESS)
210 {
211 log_error("clWaitForEvents failed");
212 return status;
213 }
214
215 status = clReleaseEvent(*event);
216 if(status != CL_SUCCESS)
217 {
218 log_error("clReleaseEvent failed. (*event)");
219 return status;
220 }
221 return CL_SUCCESS;
222}
223
224//-----------------------------------------
225// makeMixedFormatPrintfProgram

Callers 1

doTestFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected