MCPcopy Create free account
hub / github.com/clMathLibraries/clBLAS / waitForSuccessfulFinish

Function waitForSuccessfulFinish

src/tests/common.cpp:38–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36}
37
38cl_int
39waitForSuccessfulFinish(
40 cl_uint numCommandQueues,
41 cl_command_queue *commandQueues,
42 cl_event *events)
43{
44 cl_int err = CL_SUCCESS;
45 cl_uint i;
46
47 for (i = 0; i < numCommandQueues; i++) {
48 cl_int e;
49 cl_int status;
50
51 e = clFinish(commandQueues[i]);
52 if ((events != NULL) && (events[i] != NULL)) {
53 if (e == CL_SUCCESS) {
54 status = CL_COMPLETE;
55 e = clGetEventInfo(events[i], CL_EVENT_COMMAND_EXECUTION_STATUS,
56 sizeof(status), &status, NULL);
57 if ((e == CL_SUCCESS) && (status < 0)) {
58 e = -status;
59 }
60 }
61 clReleaseEvent(events[i]);
62 }
63
64 if (err == CL_SUCCESS) {
65 err = e;
66}
67 }
68
69 return err;
70}
71
72cl_int
73flushAll(

Callers 15

herCorrectnessTestFunction · 0.50
swapCorrectnessTestFunction · 0.50
trmvCorrectnessTestFunction · 0.50
sprCorrectnessTestFunction · 0.50
scalCorrectnessTestFunction · 0.50
iamaxCorrectnessTestFunction · 0.50
trsvCorrectnessTestFunction · 0.50
gbmvCorrectnessTestFunction · 0.50
tpmvCorrectnessTestFunction · 0.50
syr2kCorrectnessTestFunction · 0.50
rotgCorrectnessTestFunction · 0.50
tbmvCorrectnessTestFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected