daily pastebin goal
61%
SHARE
TWEET

Mpi Error

a guest Mar 25th, 2010 145 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. cliff@ubuntu:~/Documents$ vi test.c
  2. cliff@ubuntu:~/Documents$ rm test.exe test.o
  3. cliff@ubuntu:~/Documents$ mpicc -c test.c
  4. cliff@ubuntu:~/Documents$ mpicc -o test.exe test.o
  5. cliff@ubuntu:~/Documents$ ls
  6. erg2    erg3.exe  erg4.c                    MPI_NOTES.pdf  test.exe
  7. erg3.c  erg3.o    mpi-1.1-report-marked.ps  test.c         test.o
  8. cliff@ubuntu:~/Documents$ mpirun -np 5 test.exe
  9. Alarm clock
  10. cliff@ubuntu:~/Documents$
  11.  
  12.  
  13.  
  14. ---------------------------------------------------
  15.  
  16. cliff@ubuntu:~/Documents$ cat test.c
  17. #include <mpi.h>
  18. #include <stdio.h>
  19. #include <unistd.h>
  20. int main (int argc, char * argv[0]) {
  21.  
  22. char message [16] = "Hello World !!";
  23. MPI_Init (&argc, &argv);
  24. printf ("%s\n", message);
  25. MPI_Finalize();
  26.  
  27. return (0); }
  28. cliff@ubuntu:~/Documents$
RAW Paste Data
Top