Explorar o código

make sure the user doesn't provide too many buffers

Samuel Thibault %!s(int64=15) %!d(string=hai) anos
pai
achega
105d72f50a
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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