Learn R Programming

Certara.RsNLME (version 3.1.0.1)

parse_NLMEHosts: Create NlmeParallelHost object from json file with host definition

Description

Create NlmeParallelHost object from json file with host definition

Usage

parse_NLMEHosts(nlme_hostPath)

Value

the NlmeParallelHost class object is returned.

Arguments

nlme_hostPath

json file with host definition for model execution. See NlmeParallelHost class definition. If missing, MPI local host with 4 threads is used for simple estimation mode, multicore host is used for the others.

Examples

Run this code
if (FALSE) {
# path nlme_hostPath should be specified
 nlme_hostPath <- tempfile()
 host1 <- paste0('{"profile_name":"Multicore",',
  '"hostname":"127.0.0.1",',
  '"cores_number":4,',
  '"parallel_mode":"MULTICORE"}')
 host2 <- paste0('{"profile_name":"MPI",',
 '"hostname":"127.0.0.1",',
 '"cores_number":8,',
 '"parallel_mode":"LOCAL_MPI"}')

writeLines(paste0("[", host1, ",", host2, "]"), nlme_hostPath)
hosts <- parse_NLMEHosts(nlme_hostPath)
}

Run the code above in your browser using DataLab