浏览代码

SOCL: fix reference counting command queues used in split functions

Sylvain Henry 12 年之前
父节点
当前提交
3fe410ffaf
共有 1 个文件被更改,包括 1 次插入1 次删除
  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);