Create an NLME Parallel Host Configuration
hostParams.RdThis helper function simplifies the creation and configuration of an
NlmeParallelHost object, which defines the environment for running NLME
jobs.
Usage
hostParams(
sharedDirectory,
installationDirectory = Sys.getenv("INSTALLDIR"),
hostName = Sys.info()[["nodename"]],
machineName = "127.0.0.1",
hostType = Sys.info()[["sysname"]],
numCores = 4,
parallelMethod = "LOCAL_MPI",
userName = "",
privateKeyFile = NULL,
userPassword = "",
scriptPath = "",
rLocation = "",
isLocal = TRUE
)Arguments
character. The directory where temporary run folders are created. Defaults to the current working directory.- installationDirectory
character. The directory containing NLME libraries/scripts. Defaults to theINSTALLDIRenvironment variable.- hostName
character. A display name for the host. Defaults to the system's network name (fromSys.info()[["nodename"]]).- machineName
character. The IP address or network name of the host. Defaults to"127.0.0.1".- hostType
character. The host operating system. Defaults to the current OS (Sys.info()[["sysname"]]). While"windows"or"linux"are valid, for remote Linux hosts the following are officially supported:"RHEL"(for RHEL 8 and 9) and"UBUNTU"(for Ubuntu 22.04 and 24.04). Specifying one of these values correctly sets thePML_BIN_DIRvariable.- numCores
numeric. The number of CPU cores to utilize. Defaults to4.- parallelMethod
character. The parallel execution method. Options include:"None","Multicore","LOCAL_MPI","SGE","SGE_MPI","TORQUE","TORQUE_MPI","LSF","LSF_MPI","SLURM","SLURM_MPI". Defaults to"LOCAL_MPI".- userName
character. The username for remote host authentication.- privateKeyFile
character. The path to an SSH private key file for remote authentication. Seessh::ssh_connect()for more details.- userPassword
characterorfunction. The password or a callback function for remote authentication. Seessh::ssh_connect()for details.- scriptPath
character. The path to a script to run on a remote host before the main job starts. Ignored for local runs.- rLocation
character. The path to theRscriptexecutable on a remote host. Ignored for local runs.- isLocal
logical. Set toTRUEfor a local host orFALSEfor a remote host. Defaults toTRUE.
Examples
host <- hostParams(sharedDirectory = tempdir(),
parallelMethod = "LOCAL_MPI",
hostName = "Local",
numCores = 4)