how to compile mpi example

how to compile mpi example, i know the host must install mpicxx compile to compile the cpp file, but how to install mpicxx for tk1 develop board

Do this first, before you build the sample:

sudo apt-get install mpi-default-dev mpi-default-bin

… and then execute the sample as:

mpirun ./simpleMPI

Running on 1 nodes
Average of square roots is: 0.667242
PASSED

oh, it works, the develop board which can directly compile the .cpp, .cu, thank you very very much