Skip to content
Snippets Groups Projects
Commit 07a5f8ec authored by Morris Jette's avatar Morris Jette
Browse files

job_submit/pbs - don't set PBS_ENVIRONMENT

Doing so causes confusion for Intel MPI
parent 4da7696f
No related branches found
No related tags found
No related merge requests found
......@@ -300,7 +300,9 @@ extern int job_submit(struct job_descriptor *job_desc, uint32_t submit_uid)
_add_env2(job_desc, "PBS_ACCOUNT", job_desc->account);
if (job_desc->script) {
_add_env(job_desc, "PBS_ENVIRONMENT=PBS_BATCH");
/* Setting PBS_ENVIRONMENT causes Intel MPI to believe that
* it is running on a PBS system, which isn't the case here. */
/* _add_env(job_desc, "PBS_ENVIRONMENT=PBS_BATCH"); */
} else {
/* Interactive jobs lack an environment in the job submit
* RPC, so it needs to be handled by a SPANK plugin */
......
......@@ -50,12 +50,16 @@ int slurm_spank_task_init(spank_t sp, int ac, char **av)
/* PBS_ACCOUNT is set in the job_submit/pbs plugin, but only for
* batch jobs that specify the job's account at job submit time. */
/* Setting PBS_ENVIRONMENT causes Intel MPI to believe that
* it is running on a PBS system, which isn't the case here. */
#if 0
/* PBS_ENVIRONMENT is set to PBS_BATCH in the job_submit/pbs plugin.
* Interactive jobs get PBS_ENVIRONMENT set here since it's environment
* never passes through the slurmctld daemon. */
if (spank_getenv(sp, "PBS_ENVIRONMENT", val, sizeof(val)) !=
ESPANK_SUCCESS)
spank_setenv(sp, "PBS_ENVIRONMENT", "PBS_INTERACTIVE", 1);
#endif
if (getcwd(val, sizeof(val)))
spank_setenv(sp, "PBS_JOBDIR", val, 1);
......
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