pbdRscript: pbdRscript

Description Usage Arguments Details

Description

This function is a simple wrapper around the system() command. As such, data is not shared between the calling R process and the batch processes which execute the 'body' source.

Usage

1
2
pbdRscript(body, mpicmd = "mpirun", nranks = 1, auto = TRUE,
  auto.dmat = FALSE, pid = TRUE, wait = TRUE, temp = tempfile())

Arguments

body

character; the pbdR script to be evaluated.

mpicmd

The command to launch mpi as a string (e.g., "mpirun", "mpiexec", "aprun", ...).

nranks

The number of MPI ranks to launch.

auto

logical; determines if the script should automatically load the pbdMPI package, and call init() (at the beginning) and finalize() (at the end).

auto.dmat

logical; determines if the script should automatically load the pbdDMAT package and call init.grid(). Automatically sets auto=TRUE.

pid

Logical; determines if the process id (pid) should be printed to the terminal or not. This is useful if you need to kill a hung job.

wait

Logical values passed to R's system().

temp

A temporary file path that is accessible to all nodes, including the client. See details for a full explanation.

Details

Simple tool for executing pbdR batch jobs from inside R.

This is a simple wrapper around a system call to mpirun on the input script.

Temp needs to be a file that the client and all servers can read from.


RBigData/pbdCS documentation built on May 8, 2019, 4:55 a.m.