Raspberry Pi 2 Model BでMPI4Py

今日はRaspberry Pi 2 Model BでMPI4Pyの勉強をした。

https://www.youtube.com/watch?v=PA-TVHARu4w のコードをRaspberry PI 2 Model B x 2で動かした。

pi@raspberrypi1 /home/mpi $ mpiexec -n 2 --host raspberrypi1,raspberrypi2 python send.py
From rank 0 we sent 5
on node 1 we received: 5

そうそう、

An Introduction to Parallel Programming (English Edition)

An Introduction to Parallel Programming (English Edition)

と言う本もAmazon.co.jpから来た。