Browse Source

SOCL: fix reference counting command queues used in split functions

Sylvain Henry 12 years ago
parent
commit
3fe410ffaf
1 changed files with 1 additions and 1 deletions
  1. 1 1
      socl/src/cl_enqueuendrangekernel.c

+ 1 - 1
socl/src/cl_enqueuendrangekernel.c

@@ -167,7 +167,7 @@ soclEnqueueNDRangeKernel(cl_command_queue cq,
       totalEvent->prof_start = _socl_nanotime();
       totalEvent->prof_submit = totalEvent->prof_start;
       totalEvent->prof_queued = totalEvent->prof_start;
-      totalEvent->cq = cq;
+      gc_entity_store(&totalEvent->cq, cq);
 
       command_marker cmd = command_marker_create();
       beforeEvent = command_event_get(cmd);