@@ -812,6 +812,7 @@ cl_int acl_create_event(cl_command_queue command_queue, cl_uint num_events,
812
812
#endif
813
813
814
814
context = command_queue->context ;
815
+
815
816
event = l_get_unused_event (context);
816
817
if (event == 0 ) {
817
818
acl_context_callback (context, " Could not allocate an event or command" );
@@ -860,6 +861,7 @@ cl_int acl_create_event(cl_command_queue command_queue, cl_uint num_events,
860
861
events[i]->depend_on_me .pop_back ();
861
862
}
862
863
}
864
+
863
865
// Return event back to free pool
864
866
event->depend_on .clear ();
865
867
l_return_event_to_free_pool (event);
@@ -869,6 +871,7 @@ cl_int acl_create_event(cl_command_queue command_queue, cl_uint num_events,
869
871
870
872
if (event) {
871
873
// Success!
874
+
872
875
// Normally, the command info union usage is determined only
873
876
// by the command type. But in the case of CL_COMMAND_MAP_BUFFER
874
877
// and CL_COMMAND_UNMAP_MEM_OBJECT, we need this extra bit to know
@@ -916,6 +919,7 @@ cl_int acl_create_event(cl_command_queue command_queue, cl_uint num_events,
916
919
printf (" Notify: Event [%d] has been created:\n " , event->id );
917
920
acl_dump_event (event);
918
921
}
922
+
919
923
acl_track_object (ACL_OBJ_EVENT, event);
920
924
} else {
921
925
acl_context_callback (context, " Could not allocate an event" );
0 commit comments