-57 is CL_INVALID_EVENT_WAIT_LIST
if event_wait_list is NULL and
num_events_in_wait_list > 0, or event_wait_list is not NULL and
num_events_in_wait_list is 0, or if event objects in event_wait_list are not valid events.
Originally posted by: Raistmer thanks, I suppose it described elsewhere, not in possible returning error values for enqueue kernel function. In my situation events[0] was just NULL cause for some reason oclFFT doesn't use events in its kernel calls though function has them as arguments.
Raistmer,
Could you please post complete testcase which shows your problem?