From 3c56e0a3e0450daf648322aea28f79ea422fb554 Mon Sep 17 00:00:00 2001 From: Andreas Herten <a.herten@fz-juelich.de> Date: Fri, 23 Jun 2023 16:01:01 +0200 Subject: [PATCH] Add forgotten MPI_Finalize() --- 02-MSA-hello-world-gpu/.master/hello-world.c | 2 ++ 02-MSA-hello-world-gpu/.master/hello-world.cu | 1 + 02-MSA-hello-world-gpu/solutions/hello-world.c | 2 ++ 02-MSA-hello-world-gpu/solutions/hello-world.cu | 1 + 02-MSA-hello-world-gpu/tasks/hello-world.c | 2 ++ 02-MSA-hello-world-gpu/tasks/hello-world.cu | 1 + 6 files changed, 9 insertions(+) diff --git a/02-MSA-hello-world-gpu/.master/hello-world.c b/02-MSA-hello-world-gpu/.master/hello-world.c index 89fcd00..cc3700c 100644 --- a/02-MSA-hello-world-gpu/.master/hello-world.c +++ b/02-MSA-hello-world-gpu/.master/hello-world.c @@ -35,5 +35,7 @@ int main(int argc, char** argv){ printf("\n"); + MPI_Finalize(); + return 0; } diff --git a/02-MSA-hello-world-gpu/.master/hello-world.cu b/02-MSA-hello-world-gpu/.master/hello-world.cu index 8c71020..ad3ee87 100644 --- a/02-MSA-hello-world-gpu/.master/hello-world.cu +++ b/02-MSA-hello-world-gpu/.master/hello-world.cu @@ -67,5 +67,6 @@ int main(int argc, char** argv){ printf("\n"); + MPI_Finalize(); return 0; } diff --git a/02-MSA-hello-world-gpu/solutions/hello-world.c b/02-MSA-hello-world-gpu/solutions/hello-world.c index 562b47b..cf7f5a1 100644 --- a/02-MSA-hello-world-gpu/solutions/hello-world.c +++ b/02-MSA-hello-world-gpu/solutions/hello-world.c @@ -31,5 +31,7 @@ int main(int argc, char** argv){ printf("\n"); + MPI_Finalize(); + return 0; } diff --git a/02-MSA-hello-world-gpu/solutions/hello-world.cu b/02-MSA-hello-world-gpu/solutions/hello-world.cu index 7a2bf16..77ebbc6 100644 --- a/02-MSA-hello-world-gpu/solutions/hello-world.cu +++ b/02-MSA-hello-world-gpu/solutions/hello-world.cu @@ -63,5 +63,6 @@ int main(int argc, char** argv){ printf("\n"); + MPI_Finalize(); return 0; } diff --git a/02-MSA-hello-world-gpu/tasks/hello-world.c b/02-MSA-hello-world-gpu/tasks/hello-world.c index 4c6384d..4d4de5f 100644 --- a/02-MSA-hello-world-gpu/tasks/hello-world.c +++ b/02-MSA-hello-world-gpu/tasks/hello-world.c @@ -31,5 +31,7 @@ int main(int argc, char** argv){ printf("\n"); + MPI_Finalize(); + return 0; } diff --git a/02-MSA-hello-world-gpu/tasks/hello-world.cu b/02-MSA-hello-world-gpu/tasks/hello-world.cu index 6f6e11b..17103d4 100644 --- a/02-MSA-hello-world-gpu/tasks/hello-world.cu +++ b/02-MSA-hello-world-gpu/tasks/hello-world.cu @@ -63,5 +63,6 @@ int main(int argc, char** argv){ printf("\n"); + MPI_Finalize(); return 0; } -- GitLab