----------------------------------------- waitForEvent -----------------------------------------
| 204 | // waitForEvent |
| 205 | //----------------------------------------- |
| 206 | int 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 |