Open paganol opened 8 months ago
Are you thinking about an approach like this (pseudocode!)?
def generate_and_broadcast(generator, comm):
result = generator() if comm.rank == 0 else None
return comm.bcast(result)
generator
can be a lambda or a function that either loads maps from disk or computes them on the fly.
Hi @mreineck, as first implementation, yes I was thinking to something like that. Than, probably, we should write something more refined for broadcasting properly maps, alms or other quantities based on the detector distribution across the mpi tasks.
I think this is addressed by #334, right?
I think this is addressed by #334, right?
It would be nice to have a function that reads maps (or generates maps with MBS) and spreads it over all the MPI processes.