1
1

when orte_timing is enabled, always record daemon launch start time before starting the real work.

This commit was SVN r24513.
Этот коммит содержится в:
Samuel Gutierrez 2011-03-11 00:09:23 +00:00
родитель 37d145f5a7
Коммит 2a2319d23a

Просмотреть файл

@ -10,7 +10,7 @@
* Copyright (c) 2004-2005 The Regents of the University of California.
* All rights reserved.
* Copyright (c) 2006-2007 Cisco Systems, Inc. All rights reserved.
* Copyright (c) 2007 Los Alamos National Security, LLC. All rights
* Copyright (c) 2007-2011 Los Alamos National Security, LLC. All rights
* reserved.
* $COPYRIGHT$
*
@ -164,6 +164,11 @@ static int plm_slurm_launch_job(orte_job_t *jdata)
bool failed_launch=true;
bool using_regexp=false;
/* if we are timing, record the start time */
if (orte_timing) {
gettimeofday(&orte_plm_globals.daemonlaunchstart, NULL);
}
if (NULL == jdata) {
/* just launching debugger daemons */
active_job = ORTE_JOBID_INVALID;
@ -186,11 +191,6 @@ static int plm_slurm_launch_job(orte_job_t *jdata)
return orte_plm_base_local_slave_launch(jdata);
}
/* if we are timing, record the start time */
if (orte_timing) {
gettimeofday(&orte_plm_globals.daemonlaunchstart, NULL);
}
/* flag the daemons as failing by default */
failed_job = ORTE_PROC_MY_NAME->jobid;