浏览代码

make sure the user doesn't provide too many buffers

Samuel Thibault 14 年之前
父节点
当前提交
105d72f50a
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/core/task.c

+ 1 - 0
src/core/task.c

@@ -239,6 +239,7 @@ int starpu_task_submit(struct starpu_task *task)
                         _STARPU_LOG_OUT_TAG("ENODEV");
 			return -ENODEV;
                 }
+		assert(task->cl->nbuffers <= STARPU_NMAXBUFS);
 
 		/* In case we require that a task should be explicitely
 		 * executed on a specific worker, we make sure that the worker