OHDSI / Strategus

[Under development] An R packages for coordinating and executing analytics using HADES modules
https://ohdsi.github.io/Strategus/
7 stars 11 forks source link

Specify threading options via `executionSettings` #151

Closed anthonysena closed 1 month ago

anthonysena commented 2 months ago

Currently, threading settings are being specified by the modules using the full set of cores on the machine as shown in these examples:

In these instances, both the CM and SCCS packages support the specification of a maxCores parameter which we should consider exposing in the Strategus executionSettings so that a user has control over how their system resources are utilized when running these modules. We could make the default maxCores = parallel::detectCores() to maintain the current desired behavior and potentially add some checks so a user cannot specify maxCores > parallel::detectCores()