From 65cb8797daf9accb3ee0cda7445b758ff346841c Mon Sep 17 00:00:00 2001
From: Sebastian Achilles <s.achilles@fz-juelich.de>
Date: Wed, 28 Jun 2023 09:02:05 +0200
Subject: [PATCH] 02 Hello World GPU: update rank number

---
 02-MSA-hello-world-gpu/solutions/hello-world.cu | 2 +-
 02-MSA-hello-world-gpu/tasks/hello-world.cu     | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/02-MSA-hello-world-gpu/solutions/hello-world.cu b/02-MSA-hello-world-gpu/solutions/hello-world.cu
index 7a2bf16..8443e82 100644
--- a/02-MSA-hello-world-gpu/solutions/hello-world.cu
+++ b/02-MSA-hello-world-gpu/solutions/hello-world.cu
@@ -51,7 +51,7 @@ int main(int argc, char** argv){
     CUDA_RT_CALL( cudaPeekAtLastError() );
     CUDA_RT_CALL( cudaDeviceSynchronize() );
     
-    // TODO: Implement the MPI_Recv() call to receive the "payload" from rank 1 using directly "d_payload" as the target buffer on the GPU
+    // TODO: Implement the MPI_Recv() call to receive the "payload" from rank 0 using directly "d_payload" as the target buffer on the GPU
     if (rank == 1) {
         MPI_Recv(d_payload, 6, MPI_CHAR, 0, tag, MPI_COMM_WORLD, &stat);
     }
diff --git a/02-MSA-hello-world-gpu/tasks/hello-world.cu b/02-MSA-hello-world-gpu/tasks/hello-world.cu
index 6f6e11b..5ce3fb0 100644
--- a/02-MSA-hello-world-gpu/tasks/hello-world.cu
+++ b/02-MSA-hello-world-gpu/tasks/hello-world.cu
@@ -51,7 +51,7 @@ int main(int argc, char** argv){
     CUDA_RT_CALL( cudaPeekAtLastError() );
     CUDA_RT_CALL( cudaDeviceSynchronize() );
     
-    // TODO: Implement the MPI_Recv() call to receive the "payload" from rank 1 using directly "d_payload" as the target buffer on the GPU
+    // TODO: Implement the MPI_Recv() call to receive the "payload" from rank 0 using directly "d_payload" as the target buffer on the GPU
     if (rank == 1) {
         MPI_Recv();
     }
-- 
GitLab