check_cores | R Documentation |
This function checks for the number of available CPUs (cores) available
on the user's machine. This is formatted for parallel processing on a
SLURM-directed HPC system, but any *nix-like machine can multithread here
as well. If a Windows OS is detected, this function automatically returns 1
to run on a single core.
check_cores()
It is recommended to save this value to be called from multithreaded bngal
functions such as bngal::color_nodes
n.cores <- bngal::check_cores()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.