this is the code what i ised in the hello word
#include<stdio.h>
#include <mpi.h>
int main(int argc, char *argv[])
{
int nprocs, myproc;
MPI_Init( &argc, &argv );
MPI_Comm_size( MPI_COMM_WORLD, &nprocs );
MPI_Comm_rank( MPI_COMM_WORLD, &myproc );
printf("Hola soy %d de %d \n\n",myproc,nprocs);
MPI_Finalize();
return 0;
}
No hay comentarios:
Publicar un comentario