Skip to content

Instantly share code, notes, and snippets.

@antoniojxk
Created May 12, 2017 17:07
Show Gist options
  • Save antoniojxk/be3639a55a63292619f2c371c7d19e9b to your computer and use it in GitHub Desktop.
Save antoniojxk/be3639a55a63292619f2c371c7d19e9b to your computer and use it in GitHub Desktop.
Hola Mundo en C para HPC / MPI
#include <stdio.h>
#include "mpi.h"
int main(int argc, char *argv[ ])
{
int rank, size;
MPI_Init(&argc, &argv);
MPI_Comm_rank(MPI_COMM_WORLD, &rank);
MPI_Comm_size(MPI_COMM_WORLD, &size);
printf(“Somos borg! Soy el %d de %d\n”, rank, size);
MPI_Finalize();
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment