소스 검색

more explicit assertion failure

Samuel Thibault 8 년 전
부모
커밋
f7bc8021a6
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/core/disk.c

+ 1 - 1
src/core/disk.c

@@ -75,7 +75,7 @@ int starpu_disk_register(struct starpu_disk_ops *func, void *parameter, starpu_s
 	char name[16];
 	snprintf(name, sizeof(name), "DISK%d", n);
 	msg_host_t host = _starpu_simgrid_get_host_by_name(name);
-	STARPU_ASSERT(host);
+	STARPU_ASSERT_MSG(host, "Could not find disk %s in platform file", name);
 	_starpu_simgrid_memory_node_set_host(memory_node, host);
 #endif