From 842f6c934bb93e3e01b78bcd1b97b14fab5fe655 Mon Sep 17 00:00:00 2001 From: Moe Jette <jette1@llnl.gov> Date: Wed, 10 Nov 2010 21:22:50 +0000 Subject: [PATCH] some minor cosmetic changes found in studying front-end mode mods planned --- src/slurmctld/step_mgr.c | 11 ++++------- src/slurmd/slurmstepd/mgr.c | 5 +++-- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/src/slurmctld/step_mgr.c b/src/slurmctld/step_mgr.c index 94fb4d29462..c980cae9ca2 100644 --- a/src/slurmctld/step_mgr.c +++ b/src/slurmctld/step_mgr.c @@ -1834,12 +1834,9 @@ static void _pack_ctld_job_step_info(struct step_record *step_ptr, Buf buffer) time_t begin_time, run_time; bitstr_t *pack_bitstr; #ifdef HAVE_FRONT_END - /* On front end systems the steps are only - * given the first node to run off of - * so we need to make them appear like - * they are running on the entire - * space (which they really are). - */ + /* On front-end systems, the steps only execute on one node. + * We need to make them appear like they are running on the job's + * entire allocation (which they really are). */ task_cnt = step_ptr->job_ptr->cpu_cnt; node_list = step_ptr->job_ptr->nodes; pack_bitstr = step_ptr->job_ptr->node_bitmap; @@ -1849,7 +1846,7 @@ static void _pack_ctld_job_step_info(struct step_record *step_ptr, Buf buffer) task_cnt = step_ptr->step_layout->task_cnt; node_list = step_ptr->step_layout->node_list; } else { - if(step_ptr->job_ptr->details) + if (step_ptr->job_ptr->details) task_cnt = step_ptr->job_ptr->details->min_cpus; else task_cnt = step_ptr->job_ptr->cpu_cnt; diff --git a/src/slurmd/slurmstepd/mgr.c b/src/slurmd/slurmstepd/mgr.c index 8d56769682a..74ec35e8f87 100644 --- a/src/slurmd/slurmstepd/mgr.c +++ b/src/slurmd/slurmstepd/mgr.c @@ -1630,14 +1630,15 @@ _send_launch_failure (launch_tasks_request_msg_t *msg, slurm_addr_t *cli, int rc { slurm_msg_t resp_msg; launch_tasks_response_msg_t resp; - int nodeid = 0; + int nodeid; char *name = NULL; + #ifndef HAVE_FRONT_END nodeid = nodelist_find(msg->complete_nodelist, conf->node_name); name = xstrdup(conf->node_name); #else + nodeid = 0; name = xstrdup(msg->complete_nodelist); - #endif debug ("sending launch failure message: %s", slurm_strerror (rc)); -- GitLab