pbdMPI (version 0.3-9)

MPI array pointers: Set or Get MPI Array Pointers in R

Description

The function set/get a point address in R where the point point to a structure containing MPI arrays.

Usage

arrange.mpi.apts()

Arguments

Value

`.__MPI_APTS__' is set in the .GlobalEnv of R.

Details

Since Rmpi/pbdMPI use pre-allocate memory to store comm, status, datatype, info, request, this function provides a variable in R to let different APIs share the same memory address.

If the package loads first, then this sets `.__MPI_APTS__' in the .GlobalEnv of R. If the package does not load before other MPI APIs, then this points an structure point to the external memory according to `.__MPI_APTS__', i.e. pre-set by other MPI APIs.

pbdMPI/R/arrange.mpi.apts provides the R code, and pbdMPI/src/pkg_*.* provides the details of this call.

References

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

Examples

Run this code
# NOT RUN {
### See source code for the details.
# }

Run the code above in your browser using DataCamp Workspace