Closed bob-carpenter closed 3 months ago
One can do this now, but it is a bit manual:
{'STAN_THREADS':1}
as a cpp_optionos.environ['STAN_NUM_THREADS'] = number_of_desired_threads
Then, running pathfinder as normal should work as intended.
What would the desired API be here? A num_threads
argument to pathfinder()
? Would we want it to error if the model wasn't compiled with threading?
I think we just need to add that to the Pathfinder doc. If it were there, I would've found it.
Summary:
It wold be nice to be able to run multi-path Pathfinder in parallel using multiple threads.
Current Version:
CmdStanPy 1.2.1