소스 검색

tests/datawizard/acquire_cb_insert.c: shutdown starpu at the end. Accessing the variable allocated by StarPU might fail otherwise

Nathalie Furmento 14 년 전
부모
커밋
3bb1a391f2
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      tests/datawizard/acquire_cb_insert.c

+ 1 - 1
tests/datawizard/acquire_cb_insert.c

@@ -90,7 +90,6 @@ int main(int argc, char **argv)
 	starpu_data_unpartition(f_handle, 0);
 	starpu_data_unregister(f_handle);
 	starpu_data_unregister(x_handle);
-	starpu_shutdown();
 
         FPRINTF(stderr, "VALUES: %d", x);
 
@@ -105,5 +104,6 @@ int main(int argc, char **argv)
 
 	FPRINTF(stderr, "\n");
 
+	starpu_shutdown();
 	return 0;
 }