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
ba96978e
Commit
ba96978e
authored
17 years ago
by
Danny Auble
Browse files
Options
Downloads
Patches
Plain Diff
svn merge -r13414:13423
https://eris.llnl.gov/svn/slurm/branches/slurm-1.2
parent
6d4f7203
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
NEWS
+2
-0
2 additions, 0 deletions
NEWS
src/plugins/mpi/mvapich/mvapich.c
+11
-2
11 additions, 2 deletions
src/plugins/mpi/mvapich/mvapich.c
with
13 additions
and
2 deletions
NEWS
+
2
−
0
View file @
ba96978e
...
...
@@ -182,6 +182,8 @@ documents those changes that are of interest to users and admins.
-- Bug fix for setting exit code in accounting for batch script.
-- Add salloc option, --no-shell (for LSF).
-- Added new options for sacct output
-- mvapich: Ensure MPIRUN_ID is unique for all job steps within a job.
(Fixes crashes when running multiple job steps within a job on one node)
* Changes in SLURM 1.2.24
=========================
...
...
This diff is collapsed.
Click to expand it.
src/plugins/mpi/mvapich/mvapich.c
+
11
−
2
View file @
ba96978e
...
...
@@ -1366,6 +1366,15 @@ static void mvapich_state_destroy(mvapich_state_t *st)
xfree
(
st
);
}
/*
* Create a unique MPIRUN_ID for jobid/stepid pairs.
* Combine the least significant bits of the jobid and stepid
*/
int
mpirun_id_create
(
const
mpi_plugin_client_info_t
*
job
)
{
return
(
int
)
((
job
->
jobid
<<
16
)
|
(
job
->
stepid
&
0xffff
));
}
extern
mvapich_state_t
*
mvapich_thr_create
(
const
mpi_plugin_client_info_t
*
job
,
char
***
env
)
{
...
...
@@ -1405,12 +1414,12 @@ extern mvapich_state_t *mvapich_thr_create(const mpi_plugin_client_info_t *job,
*/
env_array_overwrite_fmt
(
env
,
"MPIRUN_PORT"
,
"%hu"
,
port
);
env_array_overwrite_fmt
(
env
,
"MPIRUN_NPROCS"
,
"%d"
,
st
->
nprocs
);
env_array_overwrite_fmt
(
env
,
"MPIRUN_ID"
,
"%d"
,
st
->
job
->
jobid
);
env_array_overwrite_fmt
(
env
,
"MPIRUN_ID"
,
"%d"
,
mpirun_id_create
(
job
)
);
if
(
st
->
connect_once
)
{
env_array_overwrite_fmt
(
env
,
"MPIRUN_CONNECT_ONCE"
,
"1"
);
}
verbose
(
"mvapich-0.9.[45] master listening on port %
d
"
,
port
);
verbose
(
"mvapich-0.9.[45] master listening on port %
hu
"
,
port
);
return
st
;
}
...
...
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