Learn R Programming

pbdMPI (version 0.2-3)

info: Info Functions

Description

The functions call MPI info functions.

Usage

info.create(info = .SPMD.CT$info)
  info.set(info = .SPMD.CT$info, key, value)
  info.free(info = .SPMD.CT$info)
  info.c2f(info = .SPMD.CT$info)

Arguments

info
a info number.
key
a character string to be set.
value
a character string to be set associate with key.

Value

  • An invisible state of MPI call is returned.

Details

These functions are for internal functions. Potentially, they set info for initialization of master and workers.

References

Programming with Big Data in R Website: http://r-pbd.org/

Examples

Run this code
### Save code in a file "demo.r" and run with 2 processors by
### SHELL> mpiexec -np 2 Rscript demo.r

### Initial.
library(pbdMPI, quietly = TRUE)
init()
.comm.size <- comm.size()
.comm.rank <- comm.rank()

### Examples.
info.create(0L)
info.create(0L, "file", "appschema")

### Finish.
finalize()

Run the code above in your browser using DataLab