| setup_mcmc_env | R Documentation |
Ensures each MCMC chain runs strictly on a single OS thread by setting environment variables that control Stan-internal threading and BLAS-level parallelism. The validated core count is returned inside the result list.
setup_mcmc_env(cores)
cores |
Desired number of parallel chains (one chain per core). |
A named list with old environment values and the validated
cores value. Pass this to restore_mcmc_env() to restore
the previous thread-control state.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.