Hello,

I am having performance issues using Statconnector, working on Windows 7,
Intel(R) Core(TM) i7. CPU @ 2.69GHz. operating on a 64-bit. After reading
archives and docs about Parallel R, I have installed the following Rmpi and
Snow packages:

   * > sessionInfo()
    R version 2.13.1 Patched (2011-07-22 r56481)
    Platform: i386-pc-mingw32/i386 (32-bit)

    locale:
    [1] LC_COLLATE=English_United Kingdom.1252
    [2] LC_CTYPE=English_United Kingdom.1252
    [3] LC_MONETARY=English_United Kingdom.1252
    [4] LC_NUMERIC=C
    [5] LC_TIME=English_United Kingdom.1252

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

    other attached packages:
    [1] Rmpi_0.5-9     rcom_2.2-3.1   rscproxy_1.3-1

    loaded via a namespace (and not attached):
    [1] tools_2.13.1*

Spawning for workers, I have the following:

*    mpi.spawn.Rslaves(nslaves=2, needlog=TRUE)
    2 slaves are spawned successfully. 0 failed.
    master (rank 0, comm 1) of size 3 is running on: Y-PC
    slave1 (rank 1, comm 1) of size 3 is running on: Y-PC
    slave2 (rank 2, comm 1) of size 3 is running on: Y-PC*

Everything seems to be working fine from R. But trying to spawn the cores
through Statconnector seems to fail (freeze). I have removed all firewalls.
Testing the same program with type = "SOCK" (which does not involve Rmpi)
works perfectly:

*    sc.EvaluateNoReturn("c1 <- makeCluster( 10 , type = \"SOCK\")");
    sc.EvaluateNoReturn("res <- parLapply(c1, list,  fun)");*



The cluster options seem correctly identified through RDCOM:
*        "test <- getClusterOption(\"port\")"
    "10187"
*
*        "test1 <- getClusterOption(\"snowlib\")"**
    "C:/PROGRA~1/R/R-213~1.1/library"*
*
        "test2 <- getClusterOption(\"rscript\")"
    "C:/PROGRA~1/R/R-213~1.1/bin/Rscript.exe"*

But given the number of simulations I have to run (up to 1000 simulations *
1000  optimisation problems using quadprog::solve), using more processors
would be a relief.

I am using the 32-bit R which works well with Statconnector. installed
MPICH2 which is correctly configured given the successful MPI workers
detection from R.

Then trying the following is failing (the application is hanging):

*    sc.EvaluateNoReturn("mpi.spawn.Rslaves(nslaves=2, needlog=TRUE)");
*
    or

*    sc.EvaluateNoReturn("c <- makeCluster(mpi.universe.size() - 1, type =
"MPI")")*
Is it possible to use MPI on Windows 7 through an R session initiated via
R(D)COM?

Many Thanks,
Yves

	[[alternative HTML version deleted]]

