소스 검색

modify test to register and close disk

Corentin Salingue 12 년 전
부모
커밋
0369a78e94
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      examples/basic_examples/vector_scal.c

+ 4 - 0
examples/basic_examples/vector_scal.c

@@ -110,6 +110,10 @@ int main(int argc, char **argv)
 
 	/* Initialize StarPU with default configuration */
 	int ret = starpu_init(NULL);
+
+	unsigned dd = starpu_disk_register(&write_on_file, (void *) "/home/corentin/");
+	starpu_disk_free(dd);
+
 	if (ret == -ENODEV) goto enodev;
 
 	FPRINTF(stderr, "[BEFORE] 1-th element    : %3.2f\n", vector[1]);