search for: mpi_initialize

Displaying 6 results from an estimated 6 matches for "mpi_initialize".

2008 Jul 10
0
Rmpi unkown input format error
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 -&g...
2008 Jun 11
3
Rmpi segfault after install on Ubuntu Hardy Heron
...ired package: stats Loading required package: graph [1] "packages do not need updated" > options(STERM='iESS', editor='emacsclient') > library("Rmpi") *** caught segfault *** address 0x2104008, cause 'memory not mapped' Traceback: 1: .Call("mpi_initialize", PACKAGE = "Rmpi") 2: f(libname, pkgname) 3: firstlib(which.lib.loc, package) 4: doTryCatch(return(expr), name, parentenv, handler) 5: tryCatchOne(expr, names, parentenv, handlers[[1]]) 6: tryCatchList(expr, classes, parentenv, handlers) 7: tryCatch(expr, error = function(e) {...
2011 Feb 01
1
Rmpi; sample code not running, the slaves won't execute commands
Hi All, I'm trying to parallelize some code using Rmpi and I've started with a sample 'hello world' program that's available at http://math.acadiau.ca/ACMMaC/Rmpi/sample.html. The code is as follows; # 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=3) # 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....
2008 Nov 07
1
Rmpi task-pull
...d: # Initialize MPI library("Rmpi") # Notice we just say "give us all the slaves you've got." mpi.spawn.Rslaves() if (mpi.comm.size() < 2) { print("More slave processes are required.") mpi.quit() } .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") } } # Function the slaves w...
2007 Jul 05
0
Question on Rmpi looping
...t;) # We are spawning four slaves mpi.spawn.Rslaves(nslaves=4) if (mpi.comm.size() != 5) { print("Please initialize an MPI cluster of at least 5 processors.") print("Then, try again") mpi.quit() } .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"...
2012 Jul 05
1
trouble installing Rmpi on a debian machine
...#39; token Rmpi.c:27: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token Rmpi.c:28: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token Rmpi.c: In function 'mpi_initialize': Rmpi.c:57: warning: implicit declaration of function 'MPI_Initialized' Rmpi.c:76: warning: implicit declaration of function 'MPI_Init' Rmpi.c:81: warning: implicit declaration of function 'MPI_Errhandler_set' Rmpi.c:81: error: 'MPI_COMM_WORLD' undeclared (first...