Advertisement
--sas

feb18-hello.c

Feb 24th, 2022
901
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.33 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <mpi.h>
  3.  
  4. int main(int argc, char** argv) {
  5.     int rc;
  6.     if ((rc = MPI_Init(&argc, &argv)) != MPI_SUCCESS) {
  7.         printf("Error starting MPI porgram. Terminating.\n");
  8.         MPI_Abort(MPI_COMM_WORLD, rc);
  9.     }
  10.    
  11.     printf("Hello, world!\n");
  12.    
  13.     MPI_Finalize();
  14.    
  15.     return 0;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement