Ver código fonte

avoid shutting down CUDA before using and freeing buffers

Samuel Thibault 15 anos atrás
pai
commit
cccba287c7
1 arquivos alterados com 2 adições e 2 exclusões
  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;
 }