utils_detectCoresRAM: Detect cores with RAM constraints

Description Usage Arguments Value Examples

Description

Given a ceiling on RAM to use and predicted extra RAM needed in . each worker in addition to current usage, return safe number of cores

Usage

1
utils_detectCoresRAM(Gb_max = 250, additional_Gb = 1)

Arguments

Gb_max

ceiling on session memory usage in Gb, assuming that each worker duplicates the session memory

additional_Gb

max additional memory requirement for new (temporary) objects created within a parallel session

Value

max number of cores (integer)

Examples

1
n_cores_use = utils_detectCoresRAM(Gb_max=250,additional_Gb=1)

CBMR-Single-Cell-Omics-Platform/SCOPfunctions documentation built on May 29, 2021, 3:52 p.m.