Community
Participate
Working Groups
When launching an Open MPI job using a resource manager configured with RSE, the job fails with the message: Failed after executing command to launch parallel application. Failed to parse output of Open MPI command. Check output for errors. Premature end of file.
This appears to be because the InputStream being read by the XML parse is closed prematurely, before the parser has had a chance to read it. The proposed solution is to wait for the host shell process to terminate before closing the input end of the pipe that is used for stdout/stderr. There is some risk with this, as it could presumably wait forever. However the code should only be called when the process output thread is about to terminate.
Committed to 4.0 and HEAD.