Created
October 4, 2025 02:53
-
-
Save codedeep79/88915143a3de0735f29c6d587d5f4821 to your computer and use it in GitHub Desktop.
Chương trình Fortran song song với MPI
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| program hello_mpi | |
| use mpi | |
| implicit none | |
| integer :: rank, size, ierr | |
| call MPI_Init(ierr) | |
| call MPI_Comm_rank(MPI_COMM_WORLD, rank, ierr) | |
| call MPI_Comm_size(MPI_COMM_WORLD, size, ierr) | |
| print *, "Hello from rank", rank, "of", size, "processes!" | |
| call MPI_Finalize(ierr) | |
| end program hello_mpi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment