Explorar o código

SOCL: fix reference counting command queues used in split functions

Sylvain Henry %!s(int64=12) %!d(string=hai) anos
pai
achega
3fe410ffaf
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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);