extern int fini() { /* cleanup after ourself */ pmi2_stop_agent(); pmi2_cleanup_stepd(); return 0; }
int p_mpi_hook_client_fini(mpi_plugin_client_state_t *state) { pmi2_stop_agent(); /* the job may be allocated by this srun. * or exit of this srun may cause the job script to exit. * wait for the spawned steps. */ spawn_job_wait(); return SLURM_SUCCESS; }