Open ltalirz opened 1 year ago
or implement a solution for it
Maybe this can be done with mpi4py
? Something like:
Not sure if this would work, but might be worth doing a PoC for.
Thanks for the suggestion @greschd, yes I guess that could work!
In my view, it does look a bit convoluted though, and perhaps it is better to go the monkeypatching route https://github.com/aiidateam/aiida-testing/pull/49.
Besides making the handling of MPI codes straightforward, it also has the key benefit of improving debugging info when the call to the mock executable does not go as expected (which, in my experience, is the main pain point in using mock_code
at the moment, and hinders its wider adoption).
Will merge https://github.com/aiidateam/aiida-testing/pull/47 since it is needed by aiida-lsmo, but one should add
withmpi=True