소스 검색

make sure the user doesn't provide too many buffers

Samuel Thibault 15 년 전
부모
커밋
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