Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Slurm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tud-zih-energy
Slurm
Commits
07a5f8ec
Commit
07a5f8ec
authored
11 years ago
by
Morris Jette
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/plugins/job_submit/pbs/job_submit_pbs.c
+3
-1
3 additions, 1 deletion
src/plugins/job_submit/pbs/job_submit_pbs.c
src/plugins/job_submit/pbs/spank_pbs.c
+4
-0
4 additions, 0 deletions
src/plugins/job_submit/pbs/spank_pbs.c
with
7 additions
and
1 deletion
src/plugins/job_submit/pbs/job_submit_pbs.c
+
3
−
1
View file @
07a5f8ec
...
...
@@ -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 */
...
...
This diff is collapsed.
Click to expand it.
src/plugins/job_submit/pbs/spank_pbs.c
+
4
−
0
View file @
07a5f8ec
...
...
@@ -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
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment