Arquivos
Pavan Balaji b2e6fbd0ae copyright: add copyright information to all files
script generated to consistently point to the top-level copyright.

Signed-off-by: Pavan Balaji <balaji@anl.gov>
2020-04-15 09:32:54 -05:00

21 linhas
404 B
C

/*
* Copyright (C) by Argonne National Laboratory
* See COPYRIGHT in top-level directory
*/
#include <stdio.h>
#include "mpi.h"
int main(int argc, char *argv[])
{
int rank;
int size;
MPI_Init(0, 0);
MPI_Comm_rank(MPI_COMM_WORLD, &rank);
MPI_Comm_size(MPI_COMM_WORLD, &size);
printf("Hello world from process %d of %d\n", rank, size);
MPI_Finalize();
return 0;
}