Hi,
This isn't exactly Raspberry Pi specific but I was hoping people here might know what to do since running MPI on Raspberry Pis is starting to get popular.
I am trying to learn MPI and I have a pair of Raspberry Pis that I thought I would use for this. I also have a Mac that I would like to use as node 0. There's no major reason why the Mac has to be node 0. It just might as well be. Anyway, I've mostly been following the steps listed on OpenMPI's site. I just struggled with getting my devices to all log into one another via SSH without asking for a password. I followed these instructions (with lots of other googling):
https://www.open-mpi.org/faq/?category=rsh#rsh-not-ssh
So I can successfully SSH from any device to any device, now, without it demanding a password.
However, the moment I try to
mpirun -nolocal -H <my devices> <sample program>
it demands passwords. Why? What have I still got left to do? Is it defaulting to trying to use rsh or something? I thought it was supposed to use ssh by default. And note that if I try giving it passwords, no known password works - it just keeps telling me I'm wrong and then asks for a password again.
(before anyone asks, I'm using -nolocal to force it to actually run on my nodes so I don't get fooled)
I get this password stuff no matter which device I run it from.