Closed StaffanBetner closed 11 months ago
I've reworked the handling of multiple/parallel chains to avoid the use of a mutex/locking when accessing the R session, can you try with the current main
branch?
Also just to flag that I've changed the num_threads
argument to parallel_chains
The problem still persists, unfortunately. But now I can kill the function without killing the R process.
Should be resolved in main
now
Splendid! Can confirm!
I am using R 4.3.2, and the latest version of the package.
This is how it looks when I run e.g.
stan_sample
for the first time in a session:As the log indicates, it is not the sampling that takes 7 minutes, but something else. The main waiting time is before the first "Gradient evaluation took xxx". If I run any of the functions again, it doesn't have any waiting time like this, regardless of data and loglikelihood function.