Skip to content
Snippets Groups Projects
Commit 05e4b293 authored by Mehdi Dogguy's avatar Mehdi Dogguy
Browse files

Imported Upstream version 14.03.3.2

parent cc167514
No related branches found
No related tags found
No related merge requests found
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
Minor: 03 Minor: 03
Micro: 3 Micro: 3
Version: 14.03.3 Version: 14.03.3
Release: 1 Release: 2
## ##
# When changing API_CURRENT update src/common/slurm_protocol_common.h # When changing API_CURRENT update src/common/slurm_protocol_common.h
......
This file describes changes in recent versions of Slurm. It primarily This file describes changes in recent versions of Slurm. It primarily
documents those changes that are of interest to users and admins. documents those changes that are of interest to users and admins.
* Changes in Slurm 14.03.3-2
==========================
-- BGQ - Fix issue with uninitialized variable.
* Changes in Slurm 14.03.3 * Changes in Slurm 14.03.3
========================== ==========================
-- Correction to default batch output file name. In version 14.03.2 was using -- Correction to default batch output file name. In version 14.03.2 was using
...@@ -437,6 +441,7 @@ documents those changes that are of interest to users and admins. ...@@ -437,6 +441,7 @@ documents those changes that are of interest to users and admins.
-- BGQ - Move code to only start job on a block after limits are checked. -- BGQ - Move code to only start job on a block after limits are checked.
-- Handle node ranges better when dealing with accounting max node limits. -- Handle node ranges better when dealing with accounting max node limits.
-- Fix perlapi to compile correctly with perl 5.18 -- Fix perlapi to compile correctly with perl 5.18
-- BGQ - Fix issue with uninitialized variable.
* Changes in Slurm 2.6.9 * Changes in Slurm 2.6.9
======================== ========================
......
...@@ -3726,16 +3726,36 @@ to all of the programs. ...@@ -3726,16 +3726,36 @@ to all of the programs.
.TP .TP
\fBBASIL_RESERVATION_ID\fR \fBBASIL_RESERVATION_ID\fR
Basil reservation ID. Basil reservation ID.
Available on Cray XT/XE systems only. Available on Cray systems with ALPS only.
.TP .TP
\fBMPIRUN_PARTITION\fR \fBMPIRUN_PARTITION\fR
BlueGene partition name. BlueGene partition name.
Available on BlueGene systems only. Available on BlueGene systems only.
.TP .TP
\fBSLURM_ARRAY_JOB_ID\fR
If this job is part of a job array, this will be set to the job ID.
Otherwise it will not be set.
To reference this specific task of a job array, combine
SLURM_ARRAY_JOB_ID with SLURM_ARRAY_TASK_ID
(e.g. "scontrol update ${SLURM_ARRAY_JOB_ID}_{$SLURM_ARRAY_TASK_ID} ...");
Available in \fBPrologSlurmctld\fR and \fBEpilogSlurmctld\fR only.
.TP
\fBSLURM_ARRAY_TASK_ID\fR
If this job is part of a job array, this will be set to the task ID.
Otherwise it will not be set.
To reference this specific task of a job array, combine
SLURM_ARRAY_JOB_ID with SLURM_ARRAY_TASK_ID
(e.g. "scontrol update ${SLURM_ARRAY_JOB_ID}_{$SLURM_ARRAY_TASK_ID} ...");
Available in \fBPrologSlurmctld\fR and \fBEpilogSlurmctld\fR only.
.TP
\fBSLURM_JOB_ACCOUNT\fR \fBSLURM_JOB_ACCOUNT\fR
Account name used for the job. Account name used for the job.
Available in \fBPrologSlurmctld\fR and \fBEpilogSlurmctld\fR only. Available in \fBPrologSlurmctld\fR and \fBEpilogSlurmctld\fR only.
.TP .TP
\fBSLURM_JOB_CLUSTER_NAME\fR
Name of the cluster executing for the job.
Available in \fBPrologSlurmctld\fR and \fBEpilogSlurmctld\fR only.
.TP
\fBSLURM_JOB_CONSTRAINTS\fR \fBSLURM_JOB_CONSTRAINTS\fR
Features required to run the job. Features required to run the job.
Available in \fBPrologSlurmctld\fR and \fBEpilogSlurmctld\fR only. Available in \fBPrologSlurmctld\fR and \fBEpilogSlurmctld\fR only.
...@@ -3756,7 +3776,6 @@ exit() function. The second number of the signal that caused the process to ...@@ -3756,7 +3776,6 @@ exit() function. The second number of the signal that caused the process to
terminante if it was terminated by a signal. terminante if it was terminated by a signal.
Available in \fBEpilogSlurmctld\fR only. Available in \fBEpilogSlurmctld\fR only.
.TP .TP
\fBSLURM_JOB_GID\fR \fBSLURM_JOB_GID\fR
Group ID of the job's owner. Group ID of the job's owner.
Available in \fBPrologSlurmctld\fR and \fBEpilogSlurmctld\fR only. Available in \fBPrologSlurmctld\fR and \fBEpilogSlurmctld\fR only.
...@@ -3767,6 +3786,9 @@ Available in \fBPrologSlurmctld\fR and \fBEpilogSlurmctld\fR only. ...@@ -3767,6 +3786,9 @@ Available in \fBPrologSlurmctld\fR and \fBEpilogSlurmctld\fR only.
.TP .TP
\fBSLURM_JOB_ID\fR \fBSLURM_JOB_ID\fR
Job ID. Job ID.
CAUTION: If this job is the first task of a job array, then Slurm commands using
this job ID will refer to the entire job array rather than this specific task
of the job array.
.TP .TP
\fBSLURM_JOB_NAME\fR \fBSLURM_JOB_NAME\fR
Name of the job. Name of the job.
......
...@@ -656,7 +656,7 @@ int term_jobs_on_block(char *bg_block_id) ...@@ -656,7 +656,7 @@ int term_jobs_on_block(char *bg_block_id)
*/ */
extern int start_job(struct job_record *job_ptr) extern int start_job(struct job_record *job_ptr)
{ {
int rc = SLURM_SUCCESS, dim; int rc = SLURM_SUCCESS;
bg_record_t *bg_record = NULL; bg_record_t *bg_record = NULL;
bg_action_t *bg_action_ptr = NULL; bg_action_t *bg_action_ptr = NULL;
select_jobinfo_t *jobinfo = job_ptr->select_jobinfo->data; select_jobinfo_t *jobinfo = job_ptr->select_jobinfo->data;
...@@ -668,19 +668,19 @@ extern int start_job(struct job_record *job_ptr) ...@@ -668,19 +668,19 @@ extern int start_job(struct job_record *job_ptr)
slurm_mutex_unlock(&block_state_mutex); slurm_mutex_unlock(&block_state_mutex);
error("bg_record %s doesn't exist, requested for job (%d)", error("bg_record %s doesn't exist, requested for job (%d)",
jobinfo->bg_block_id, job_ptr->job_id); jobinfo->bg_block_id, job_ptr->job_id);
_destroy_bg_action(bg_action_ptr);
return SLURM_ERROR; return SLURM_ERROR;
} }
if ((jobinfo->conn_type[0] != SELECT_NAV) if ((jobinfo->conn_type[0] != SELECT_NAV)
&& (jobinfo->conn_type[0] < SELECT_SMALL)) { && (jobinfo->conn_type[0] < SELECT_SMALL)) {
int dim;
for (dim=0; dim<SYSTEM_DIMENSIONS; dim++) for (dim=0; dim<SYSTEM_DIMENSIONS; dim++)
jobinfo->conn_type[dim] = bg_record->conn_type[dim]; jobinfo->conn_type[dim] = bg_record->conn_type[dim];
} }
/* If it isn't 0 then it was setup previous (sub-block) /* If it isn't 0 then it was setup previous (sub-block)
*/ */
if (jobinfo->geometry[dim] == 0) if (jobinfo->geometry[SYSTEM_DIMENSIONS] == 0)
memcpy(jobinfo->geometry, bg_record->geo, memcpy(jobinfo->geometry, bg_record->geo,
sizeof(bg_record->geo)); sizeof(bg_record->geo));
......
...@@ -2510,11 +2510,9 @@ static char **_build_env(struct job_record *job_ptr) ...@@ -2510,11 +2510,9 @@ static char **_build_env(struct job_record *job_ptr)
sprintf(buf, "%d:%d", exit_code, signal); sprintf(buf, "%d:%d", exit_code, signal);
setenvf(&my_env, "SLURM_JOB_EXIT_CODE2", "%s", buf); setenvf(&my_env, "SLURM_JOB_EXIT_CODE2", "%s", buf);
if (job_ptr->array_job_id != 0) { if (job_ptr->array_task_id != NO_VAL) {
setenvf(&my_env, "SLURM_ARRAY_JOB_ID", "%u", setenvf(&my_env, "SLURM_ARRAY_JOB_ID", "%u",
job_ptr->array_job_id); job_ptr->array_job_id);
}
if (job_ptr->array_task_id != NO_VAL) {
setenvf(&my_env, "SLURM_ARRAY_TASK_ID", "%u", setenvf(&my_env, "SLURM_ARRAY_TASK_ID", "%u",
job_ptr->array_task_id); job_ptr->array_task_id);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment