osx - Does Rmpi require an active Internet connection? -


i installed rmpi using tutorial: http://www.stats.uwo.ca/faculty/yu/rmpi/mac_os_x.htm on mac os-x mountain lion. need rmpi making use of cores , not deployment on hardware cluster or similar.

actually, works fine experienced whenever don't have active internet connection (like sitting in train or turning wireless of) spawning slaves fail , wondering if supposed work this?

> require( rmpi ) > mpi.spawn.rslaves( nslaves=2 )  -------------------------------------------------------------------------- @ least 1 pair of mpi processes unable reach each other mpi communications.  means no open mpi device has indicated can used communicate between these processes.  error; open mpi requires mpi processes able reach each other.  error can result of forgetting specify "self" btl.    process 1 ([[56132,1],0]) on host: abc-mb02   process 2 ([[56132,2],0]) on host: abc-mb02   btls attempted: self sm  mpi job going abort; sorry. --------------------------------------------------------------------------     2 slaves spawned successfully. 0 failed. [abc-mb02:53970] 2 more processes have sent message help-mca-bml-r2.txt / unreachable proc [abc-mb02:53970] set mca parameter "orte_base_help_aggregate" 0 see / error messages 

then load of cpus jumps 100% , r session crash.

any ideas how can avoid behavior? sessioninfo

r version 2.15.2 (2012-10-26) platform: x86_64-apple-darwin9.8.0/x86_64 (64-bit)  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] graphics  grdevices datasets  stats     utils     methods   base       other attached packages: [1] rmpi_0.6-3     ggplot2_0.9.3  stringr_0.6.2  reshape2_1.2.2 plyr_1.8        loaded via namespace (and not attached):  [1] colorspace_1.2-1   dichromat_2.0-0    digest_0.6.3       grid_2.15.2        gtable_0.1.2       labeling_0.1        [7] mass_7.3-23        munsell_0.4        proto_0.3-10       rcolorbrewer_1.0-5 scales_0.2.3       tools_2.15.2 

it doesn't need internet connection, open mpi seems fail when spawn processes if have "self" , "sm" btl's available, , on mac laptop, "tcp" btl isn't available unless there @ least 1 network "connected" in "network preferences". it's interesting note able use rmpi when workers started mpirun, rather being spawned. also, didn't have problems spawning processes on linux machine when unplugged.

i able laptop spawn processes connecting computer using ethernet cable, little raspberry pi. though cable couldn't used anything, tricked mac thinking "ethernet" connected, "tcp" btl available in open mpi, spawning processes worked.

update:

i figured out solution problem works on macbook pro. setting btl_tcp_if_include mca parameter "lo0", can force open mpi use loopback interface tcp communication when laptop isn't connected external network. 1 way set environment variable in r script:

sys.setenv(ompi_mca_btl_tcp_if_include='lo0') library(rmpi) mpi.spawn.rslaves(nslaves=2) 

it appears work long set environment variable before loading rmpi, when mpi_init called.


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -