Commit 487acaac authored by j.knedlik's avatar j.knedlik
Browse files

added broadcast

parent 7db40957
mpic++ -o bcast.exe -x c++ - << EOF
#include <mpi.h>
int main(int argc, char **argv)
{
MPI_Init(NULL,NULL);
int rank;
MPI_Comm_rank(MPI_COMM_WORLD, &rank);
MPI_Bcast(&rank,1, MPI_INT, 0, MPI_COMM_WORLD);
MPI_Finalize();
return rank;
}
EOF
srun -n 2 -- $PWD/bcast.exe
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment