Parcourir la source

avoid shutting down CUDA before using and freeing buffers

Samuel Thibault il y a 15 ans
Parent
commit
cccba287c7
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      examples/starpufft/testx.c

+ 2 - 2
examples/starpufft/testx.c

@@ -140,8 +140,6 @@ int main(int argc, char *argv[]) {
 	STARPUFFT(showstats)(stdout);
 	STARPUFFT(destroy_plan)(plan);
 
-	starpu_shutdown();
-
 	printf("\n");
 #if 0
 	for (i = 0; i < 16; i++)
@@ -224,5 +222,7 @@ int main(int argc, char *argv[]) {
 	free(out_cuda);
 #endif
 
+	starpu_shutdown();
+
 	return EXIT_SUCCESS;
 }