Nothing
### SHELL> mpiexec -np 2 Rscript --vanilla [...].r
suppressMessages(library(pbdMPI, quietly = TRUE))
.comm.size <- comm.size()
.comm.rank <- comm.rank()
N <- 1024
x <- (1:N) + N * .comm.rank
y <- allreduce(matrix(as.integer(x), nrow = 1), op = "sum")
comm.print(y[N - (1:5)])
y <- allreduce(matrix(as.double(x), nrow = 1), op = "sum")
comm.print(y[N - (1:5)])
y <- allreduce(as.integer(x), op = "sum")
comm.print(y[N - (1:5)])
y <- allreduce(as.double(x), op = "sum")
comm.print(y[N - (1:5)])
y <- allreduce(as.integer(x), op = "prod")
comm.print(y[N - (1:5)])
y <- allreduce(as.double(x), op = "prod")
comm.print(y[N - (1:5)])
y <- allreduce(as.integer(x), op = "max")
comm.print(y[N - (1:5)])
y <- allreduce(as.double(x), op = "max")
comm.print(y[N - (1:5)])
y <- allreduce(as.integer(x), op = "min")
comm.print(y[N - (1:5)])
y <- allreduce(as.double(x), op = "min")
comm.print(y[N - (1:5)])
finalize()
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.