Browse Source

SOCL: no longer wait blocking waitForEvents before submitting commands to StarPU

Sylvain Henry 13 years ago
parent
commit
aecafb9550
2 changed files with 3 additions and 10 deletions
  1. 0 10
      socl/src/cl_waitforevents.c
  2. 3 0
      socl/src/command_queue.c

+ 0 - 10
socl/src/cl_waitforevents.c

@@ -22,16 +22,6 @@ soclWaitForEvents(cl_uint           num_events,
 {
 {
    unsigned int i;
    unsigned int i;
    DEBUG_MSG("Waiting for events: ");
    DEBUG_MSG("Waiting for events: ");
-   for (i=0; i<num_events; i++) {
-   	command_graph_dump(event_list[i]->command);
-
-   	/* We need to submit commands if it's not already done */
-	command_submit_deep(event_list[i]->command);
-
-      	DEBUG_MSG_NOHEAD("%d ", event_list[i]->id);
-   }
-   DEBUG_MSG_NOHEAD("\n");
-
    for (i=0; i<num_events; i++)
    for (i=0; i<num_events; i++)
       starpu_tag_wait(event_list[i]->id);
       starpu_tag_wait(event_list[i]->id);
 
 

+ 3 - 0
socl/src/command_queue.c

@@ -165,4 +165,7 @@ void command_queue_enqueue_ex(cl_command_queue cq, cl_command cmd, cl_uint num_e
 
 
 	/* Unlock command queue */
 	/* Unlock command queue */
 	pthread_mutex_unlock(&cq->mutex);
 	pthread_mutex_unlock(&cq->mutex);
+
+	/* Submit command */
+	command_submit_ex(cmd);
 }
 }