Skip to content
Snippets Groups Projects
Commit 807507d8 authored by Andreas Herten's avatar Andreas Herten
Browse files

Merge branch 'sa-02-hello-world'

parents f49299ac 467e2884
No related branches found
No related tags found
1 merge request!802 Hello World GPU: update rank number
......@@ -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) {
#ifdef SOLUTION
MPI_Recv(d_payload, 6, MPI_CHAR, 0, tag, MPI_COMM_WORLD, &stat);
......
......@@ -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);
}
......
......@@ -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();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment