in CmdStan, you need to run the make command to compile everything with threading on - if you’re using the CmdStan 2.23 release, the easiest way to do this is:
make clean-all
make STAN_THREADS=TRUE build
make STAN_THREADS=TRUE my_model
to time things, use the linux time
command -
time my_model sample file=my.data.json yada yada yada
there’s no control for cores - since CmdStan runs a single chain, with threading on, it’ll use all available cores - @wds15 or @rok_cesnovar - is this correct?