An error occurred while loading the file. Please try again.
-
Muddsair Sharif authored
Update img/hpc/bwhpc.jpg, img/hpc/concept.png, img/hpc/nontemp.jpg, img/hpc/nontemp.png, img/hpc/tempapproach.png, img/hpc/gm4lab.jpg, img/hpc/ucicity2021.png, info_hpc.html, help/hpc.html files
6548e813
#include <stdio.h>
#include <mpi.h>
int main(int argc, char *argv[])
{
int rank, size;
MPI_Init(&argc, &argv); /* starts MPI */
MPI_Comm_rank(MPI_COMM_WORLD, &rank); /* get current process id */
MPI_Comm_size (MPI_COMM_WORLD, &size); /* get processor count*/
if (rank == 0)
printf( "Hello world from process %d of %d\n", rank, size );
else
printf( "Hello world from process %d of %d\n", rank, size );
sleep(1);
MPI_Finalize();
return 0;
}