[R] Rmpi unkown input format error

From: Lyman, Mark <Mark.Lyman_at_atk.com>
Date: Thu, 10 Jul 2008 11:11:45 -0600

I have just installed Rmpi on a Suse 9.1 linux cluster with openmpi-1.0.1. I am trying the example included below from the tutorial website. However, I keep getting the following error:  

> # Load the R MPI package if it is not already loaded.

> if (!is.loaded("mpi_initialize")) {

+ library("Rmpi")

+ }


> # Spawn as many slaves as possible

> mpi.spawn.Rslaves(nslaves=4)

                4 slaves are spawned successfully. 0 failed.

Error in unserialize(obj) : unknown input format

Calls: mpi.spawn.Rslaves ... mpi.bcast.Robj -> .mpi.unserialize -> unserialize -

> .Call

Execution halted    

# Load the R MPI package if it is not already loaded.

if (!is.loaded("mpi_initialize")) {



# Spawn as many slaves as possible


# 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.")



        print("Please use mpi.quit() to quit R")




# Tell all slaves to return a message identifying themselves

mpi.remote.exec(paste("I am",mpi.comm.rank(),"of",mpi.comm.size()))  

# Tell all slaves to close down, and exit the program



Mark Lyman, Statistician

ATK Launch Systems

mark.lyman_at_atk.com <mailto:mark.lyman_at_atk.com>

(435) 863-2863

        [[alternative HTML version deleted]]

R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Thu 10 Jul 2008 - 17:30:50 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 10 Jul 2008 - 18:31:22 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive