예제 #1
0
파일: mpi_pmi2.c 프로젝트: A1ve5/slurm
extern int fini()
{
	/* cleanup after ourself */
	pmi2_stop_agent();
	pmi2_cleanup_stepd();
	return 0;
}
예제 #2
0
파일: mpi_pmi2.c 프로젝트: Xarthisius/slurm
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;
}