Browse Source

make sure the user doesn't provide too many buffers

Samuel Thibault 14 years ago
parent
commit
105d72f50a
1 changed files with 1 additions and 0 deletions
  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