Advertisement
Guest User

Mpi Error

a guest
Mar 25th, 2010
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  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$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement