소스 검색

Make sure node is known before getting its kind

Samuel Thibault 7 년 전
부모
커밋
a7b6d0ecdc
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      tests/datawizard/specific_node.c

+ 1 - 0
tests/datawizard/specific_node.c

@@ -36,6 +36,7 @@ void specific_kernel(void *descr[], void *arg)
 {
 	(void)arg;
 	int node = starpu_task_get_current_data_node(0);
+	STARPU_ASSERT(node >= 0);
 	STARPU_ASSERT(starpu_node_get_kind(node) == STARPU_CPU_RAM);
 	unsigned *dataptr = (unsigned*) STARPU_VARIABLE_GET_PTR(descr[0]);