You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
BTW, I have checked the MPI code and there this problem does not exist as far as I can tell. So I tested this example and had no problem and I also checked the code which I think is fine.
Summary:
When running a Stan program with
map_rect
with threading and number of threads is 2, the result is incorrect.Description:
For
STAN_NUM_THREADS = 2
,map_rect()
returns a vector with the wrong number of elements: it's one short of what it should be.As far as I can tell, if the number of threads is any other number, it's fine.
Reproducible Steps:
Set up Stan with threading. Run this program:
Current Output:
With
STAN_NUM_THREADS = 2
, this fails.Expected Output:
It should run as usual.
Additional Information:
This will need to be fixed in the Math repo, but should not be closed until that happens.
Current Version:
v2.18.0
The text was updated successfully, but these errors were encountered: