[R] Setting up workers with Rmpi

Erin Hodgess erinm.hodgess at gmail.com
Sat Mar 18 22:08:52 CET 2017


Hello!


I'm trying to run a very simple test with Rmpi via the mpirun function
outside of R.  Here is the script file:


Es-MacBook-Pro:~ emhodgess$ cat bb.in

library(Rmpi)

x <- 5

mpi.remote.exec(rnorm(x))

mpi.finalize()



And here is the output:

Es-MacBook-Pro:~ emhodgess$ mpirun -np 4 Rscript bb.in

Error in mpi.remote.exec(rnorm(x)) : It seems no slaves running.

Execution halted

Error in mpi.remote.exec(rnorm(x)) : It seems no slaves running.

Execution halted

Error in mpi.remote.exec(rnorm(x)) : It seems no slaves running.

Execution halted

-------------------------------------------------------

Primary job  terminated normally, but 1 process returned

a non-zero exit code.. Per user-direction, the job has been aborted.

-------------------------------------------------------

--------------------------------------------------------------------------

mpirun detected that one or more processes exited with non-zero status,
thus causing

the job to be terminated. The first process to do so was:


  Process name: [[39079,1],2]

  Exit code:    1

--------------------------------------------------------------------------

I had always thought that the numbers of workers was obtained from the np
value and passed through to R.  Apparently not.

Here is the session info:
> sessionInfo()
R version 3.3.3 (2017-03-06)
Platform: x86_64-apple-darwin13.4.0 (64-bit)
Running under: macOS Sierra 10.12.3

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base

loaded via a namespace (and not attached):
 [1] Rcpp_0.12.6           lattice_0.20-34       codetools_0.2-15
 [4] mvtnorm_1.0-5         zoo_1.7-13            MASS_7.3-45
 [7] grid_3.3.3            plyr_1.8.4            fBasics_3011.87
[10] xtable_1.8-2          nlme_3.1-131          fGarch_3010.82.1
[13] coda_0.18-1           estimability_1.2      lsmeans_2.25
[16] multcomp_1.4-6        timeDate_3012.100     rpart_4.1-10
[19] Matrix_1.2-8          sandwich_2.3-4        splines_3.3.3
[22] TH.data_1.0-7         tools_3.3.3           rsm_2.8
[25] survival_2.40-1       timeSeries_3022.101.2
>

I also did the same thing on my Ubuntu laptop; same results.

Any suggestions much appreciated.

Sincerely,
Erin


-- 
Erin Hodgess
Associate Professor
Department of Mathematical and Statistics
University of Houston - Downtown
mailto: erinm.hodgess at gmail.com

	[[alternative HTML version deleted]]



More information about the R-help mailing list