Created
July 12, 2023 17:51
-
-
Save brenhinkeller/e8dc7695444ccc39e9e7dcc24788d473 to your computer and use it in GitHub Desktop.
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
# run with e.g. mpiexec -np 8 julia ./mpihello.jl | |
using MPI | |
MPI.Init() | |
comm = MPI.COMM_WORLD | |
size = MPI.Comm_size(comm) | |
rank = MPI.Comm_rank(comm) | |
print("Hello from $rank of $size processors!\n") | |
MPI.Finalize() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment