Page MenuHomec4science

hello.c
No OneTemporary

File Metadata

Created
Thu, Nov 28, 19:22
#include <mpi.h>
#include <stdio.h>
int main(int argc, char *argv[]){
int size, rank;
MPI_Init(&argc, &argv);
MPI_Comm_size(MPI_COMM_WORLD, &size);
MPI_Comm_rank(MPI_COMM_WORLD, &rank);
printf("I’m process %d out of %d\n", rank, size);
MPI_Finalize();
}

Event Timeline