Closed vlimant closed 5 years ago
No. It probably worked before due to the different MPI implementation of the communicator handle.
Can you try if the following code in coordinator.py
would work:
def save(self, fn = None):
if fn is None:
fn = '{}-coordinator.state'.format(self.label)
self.history.setdefault('save', fn)
with open(fn, 'wb') as state:
self_dict = self.__dict__
self_dict.pop('comm') # Skip MPI objects (they are invalid)
self_dict.pop('req_dict')
pickle.dump( self_dict, state )
and in load()
remove the two self_dict.pop()
lines.
fae5dc3057b25ea3256e141e93f48c51fd8edb2f
@vloncar is self.comm supposed to be pickled ?