Skip to content

Instantly share code, notes, and snippets.

View radupopescu's full-sized avatar

Radu Popescu radupopescu

View GitHub Profile
### Keybase proof
I hereby claim:
* I am radupopescu on github.
* I am radupopescu (https://keybase.io/radupopescu) on keybase.
* I have a public key ASCRaRw6hTKM_gFZLSDumscNe6skFXBFA9I86ledy81-AAo
To claim this, I am signing this object:
@radupopescu
radupopescu / mpi_basic_usage.cc
Created November 25, 2015 23:35
MPI Basic Usage
#include <iostream>
#include <array>
#include <mpi.h>
using message_t = std::array<int, 3>;
void printMessage(const int rank, const message_t& message)
{
std::cout << "Process " << rank << ": ";