error in init.grid pbdDMAT v 0.3-3

21 views
Skip to first unread message

Cristina Montañola

unread,
Sep 1, 2015, 11:57:12 AM9/1/15
to rbigdatap...@googlegroups.com
Dear All,

I'm trying to execute the exemple code 1_gen.r using pbdDMAT:

library(pbdDMAT, quiet=TRUE)
init.grid()

# Common global on all processors --> distributed
x <- matrix(1:100, nrow=10, ncol=10)
x.dmat <- as.ddmatrix(x)

x.dmat

# Global on processor 0 --> distributed
if (comm.rank()==0){
  y <- matrix(1:100, nrow=10, ncol=10)
} else {
  y <- NULL
}
y.dmat <- as.ddmatrix(y)

y.dmat

finalize()


I updated pbdDMAT last June to version 0.3-3 (downloaded from your github). This is the current environment I have:

> sessionInfo()
R version 3.0.2 (2013-09-25)
Platform: x86_64-unknown-linux-gnu (64-bit)

locale:
 [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C              
 [3] LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8    
 [5] LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8   
 [7] LC_PAPER=en_US.UTF-8       LC_NAME=C                 
 [9] LC_ADDRESS=C               LC_TELEPHONE=C            
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C       

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

other attached packages:
[1] pbdDMAT_0.3-3  pbdMPI_0.2-6   rlecuyer_0.3-3

loaded via a namespace (and not attached):
[1] pbdBASE_0.4-2 pbdSLAP_0.2-0

With this version upload, I encounter the following error:

> mpirun -np 1 Rscript 1_gen.r
Loading required package: methods
Loading required package: rlecuyer

Attaching package: pbdDMAT

The following objects are masked from package:stats:

    lm.fit, na.exclude, prcomp, sd

The following objects are masked from package:base:

    apply, as.matrix, as.vector, chol, diag, eigen, isSymmetric,
    La.svd, ncol, NCOL, nrow, NROW, print, qr, qr.Q, qr.qty, qr.qy,
    qr.R, scale, summary, svd, sweep, t

Error: could not find function "init.grid"
Execution halted

However, I tried with version 0.3-2 and it works fine. Are you aware of this bug? Do you have any plans to fix it soon? 
I don't know if pbdDMAT changed a lot from 0.3-2 to 0.3-3 release. Do you recommend me to go back to 0.3-2 version?

Thanks in advance,

Cristina

Wei-Chen Chen

unread,
Sep 2, 2015, 10:56:47 PM9/2/15
to RBigDataProgramming
Dear Cristina,

Please update the MPI_0.3-0, BASE_0.4-3, DMAT_0.3-3 again. They are fine with me now.

ps. your R is two years old.

Sincerely,
Wei-Chen Chen

Cristina Montañola

unread,
Sep 3, 2015, 3:13:22 AM9/3/15
to rbigdatap...@googlegroups.com
Dear Wei-Chen,

Thanks for your answer. Where can I find DMAT_0.3-3? In https://github.com/wrathematics/pbdBASE I can only see 0.3-2 version.

Best regards,

Cristina

--
Programming with Big Data in R
Simplifying Scalability
http://r-pbd.org/
---
You received this message because you are subscribed to the Google Groups "RBigDataProgramming" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rbigdataprogram...@googlegroups.com.
To post to this group, send email to rbigdatap...@googlegroups.com.
Visit this group at http://groups.google.com/group/rbigdataprogramming.
To view this discussion on the web visit https://groups.google.com/d/msgid/rbigdataprogramming/410fafba-3f20-458c-bb38-926459939c53%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Drew Schmidt

unread,
Sep 3, 2015, 7:36:31 AM9/3/15
to rbigdatap...@googlegroups.com
Hi Cristina,

The bug was a namespace/import issue which should be resolved in the
latest development versions, pbdBASE 0.4-3 and pbdDMAT 0.3-3. If you
have the devtools package, you can install them via:

devtools::install_github("wrathematics/pbdBASE")
devtools::install_github("wrathematics/pbdDMAT")

-Drew

On 09/03/2015 03:13 AM, Cristina Montañola wrote:
> Dear Wei-Chen,
>
> Thanks for your answer. Where can I find DMAT_0.3-3? In
> https://github.com/wrathematics/pbdBASE I can only see 0.3-2 version.
>
> Best regards,
>
> Cristina
>
> 2015-09-03 4:56 GMT+02:00 Wei-Chen Chen <wcc...@gmail.com
> <mailto:wcc...@gmail.com>>:
> *Error: could not find function "init.grid"*
> Execution halted
>
>
> However, I tried with version 0.3-2 and it works fine. Are you
> aware of this bug? Do you have any plans to fix it soon?
> I don't know if pbdDMAT changed a lot from 0.3-2 to 0.3-3
> release. Do you recommend me to go back to 0.3-2 version?
>
> Thanks in advance,
>
> Cristina
>
> --
> Programming with Big Data in R
> Simplifying Scalability
> http://r-pbd.org/
> ---
> You received this message because you are subscribed to the Google
> Groups "RBigDataProgramming" group.
> To unsubscribe from this group and stop receiving emails from it,
> send an email to rbigdataprogram...@googlegroups.com
> <mailto:rbigdataprogram...@googlegroups.com>.
> To post to this group, send email to
> rbigdatap...@googlegroups.com
> <mailto:rbigdatap...@googlegroups.com>.
> <https://groups.google.com/d/msgid/rbigdataprogramming/410fafba-3f20-458c-bb38-926459939c53%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout.
>
>
> --
> Programming with Big Data in R
> Simplifying Scalability
> http://r-pbd.org/
> ---
> You received this message because you are subscribed to the Google
> Groups "RBigDataProgramming" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to rbigdataprogram...@googlegroups.com
> <mailto:rbigdataprogram...@googlegroups.com>.
> To post to this group, send email to
> rbigdatap...@googlegroups.com
> <mailto:rbigdatap...@googlegroups.com>.
> Visit this group at http://groups.google.com/group/rbigdataprogramming.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/rbigdataprogramming/CAP%3D55iakJotD_6wyX%3Dr1u0rB7rmq5KMSR-rW2UAGEAkZ60YH4Q%40mail.gmail.com
> <https://groups.google.com/d/msgid/rbigdataprogramming/CAP%3D55iakJotD_6wyX%3Dr1u0rB7rmq5KMSR-rW2UAGEAkZ60YH4Q%40mail.gmail.com?utm_medium=email&utm_source=footer>.
Reply all
Reply to author
Forward
0 new messages