After some search in the archive, I found that Rmpi/snow actually works on
my test cluster when ran in batch mode:


mpi_test.r
------------------------------
---------------------------------------------------------------------------------------------
   library("Rmpi")
   library(snow)

# In case R exits unexpectedly, have it automatically clean up
# resources taken up by Rmpi (slaves, memory, etc...)

.Last <- function(){
if (is.loaded("mpi_initialize")){
      if (mpi.comm.size(1) > 0){
          print("Please use mpi.close.Rslaves() to close slaves.")
          mpi.close.Rslaves()
      }
      print("Please use mpi.quit() to quit R")
      .Call("mpi_finalize")
  }
}

cl <- makeMPIcluster(4)
res <- clusterCall(
        cl,
        function() {
                Sys.info()["nodename"]
        }
        )
print(do.call(rbind,res))

stopCluster(cl)
mpi.quit()
-------------------------------------------------------------------------------------------------------------------------------------
When I run the following line:

mpirun -n 1 --hostfile hostfile R --no-save  -f mpi_test.r
I get:
    nodename
[1,] "ip-10-194-211-95"
[2,] "ip-10-212-102-143"
[3,] "ip-10-212-102-143"
[4,] "ip-10-194-211-95"
So it's actually running on 2 different machines.

My question now is, can I run it in interactive mode?
I read about an info object where I should set the path to my hostfile, so I
tried some of the following with no success:
mpi.info.set(hostfile,"path_to_file/hostfile")
mpi.info.set("hostfile","path_to_file/hostfile")
mpi.info.set(host,"path_to_file/hostfile")


-- 
Fabrizio

	[[alternative HTML version deleted]]

