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
I do not know what the exact reason is. Is there a chance the MPI implementation plays a role?
I did not know that asarray did not maintain the subclass. Also, I was looking at the code, and I'm wondering if the same needs to happen here, here, and here for example?
Unless for some reason you do not want to keep the subclass in those cases.
Description
I'm doing some mapmaking test runs using the multipass_fix branch of sotodlib. While running under a single MPI process, I got the following error:
@tskisner suggested that
a
,res
incomm.Allreduce
might not be numpy arrays. After some debugging I found out thata
was anumpy.float64
.Fix suggestion
Add a check in
utils.allreduce
for generic scalar numpy type and change them to arrays, and make sure that the returned value is also a scalar.The text was updated successfully, but these errors were encountered: