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
1e8fef1c
Commit
1e8fef1c
authored
19 years ago
by
Moe Jette
Browse files
Options
Downloads
Patches
Plain Diff
svn merge -r6851:6861
https://eris.llnl.gov/svn/slurm/branches/slurm-0-6-branch
parent
1a6286cf
No related branches found
Branches containing commit
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/switch/elan/qsw.c
+15
-12
15 additions, 12 deletions
src/plugins/switch/elan/qsw.c
with
17 additions
and
12 deletions
NEWS
+
2
−
0
View file @
1e8fef1c
...
@@ -103,6 +103,8 @@ documents those changes that are of interest to users and admins.
...
@@ -103,6 +103,8 @@ documents those changes that are of interest to users and admins.
-- Fix for srun's handling of null characters in stdout or stderr.
-- Fix for srun's handling of null characters in stdout or stderr.
-- Update job accounting for larger systems (Andy Riebs, uptodate.patch).
-- Update job accounting for larger systems (Andy Riebs, uptodate.patch).
-- Fixes for proctrack/linuxproc and mpich-gm support (Takao Hatazaki, HP).
-- Fixes for proctrack/linuxproc and mpich-gm support (Takao Hatazaki, HP).
-- Fix bug in switch/elan for large task count job having irregular task
distribution across nodes.
* Changes in SLURM 0.6.9
* Changes in SLURM 0.6.9
========================
========================
...
...
This diff is collapsed.
Click to expand it.
src/plugins/switch/elan/qsw.c
+
15
−
12
View file @
1e8fef1c
...
@@ -754,15 +754,9 @@ _free_hwcontext(uint32_t prog_num)
...
@@ -754,15 +754,9 @@ _free_hwcontext(uint32_t prog_num)
static
int
static
int
_init_elan_capability
(
ELAN_CAPABILITY
*
cap
,
uint32_t
prognum
,
int
ntasks
,
_init_elan_capability
(
ELAN_CAPABILITY
*
cap
,
uint32_t
prognum
,
int
ntasks
,
int
nnodes
,
bitstr_t
*
nodeset
,
int
*
tasks_per_node
,
int
nnodes
,
bitstr_t
*
nodeset
,
int
*
tasks_per_node
,
int
cyclic_alloc
)
int
cyclic_alloc
,
int
max_tasks_per_node
)
{
{
int
i
,
node_index
,
max_tasks_per_node
=
tasks_per_node
[
0
];
int
i
,
node_index
;
/* Determine maximum number of tasks on any one node */
for
(
i
=
1
;
i
<
nnodes
;
i
++
)
{
if
(
tasks_per_node
[
i
]
>
max_tasks_per_node
)
max_tasks_per_node
=
tasks_per_node
[
i
];
}
_srand_if_needed
();
_srand_if_needed
();
...
@@ -861,21 +855,30 @@ int
...
@@ -861,21 +855,30 @@ int
qsw_setup_jobinfo
(
qsw_jobinfo_t
j
,
int
ntasks
,
bitstr_t
*
nodeset
,
qsw_setup_jobinfo
(
qsw_jobinfo_t
j
,
int
ntasks
,
bitstr_t
*
nodeset
,
int
*
tasks_per_node
,
int
cyclic_alloc
)
int
*
tasks_per_node
,
int
cyclic_alloc
)
{
{
int
i
,
max_tasks_per_node
=
0
;
int
nnodes
=
bit_set_count
(
nodeset
);
int
nnodes
=
bit_set_count
(
nodeset
);
assert
(
j
!=
NULL
);
assert
(
j
!=
NULL
);
assert
(
j
->
j_magic
==
QSW_JOBINFO_MAGIC
);
assert
(
j
->
j_magic
==
QSW_JOBINFO_MAGIC
);
assert
(
nodeset
);
assert
(
tasks_per_node
);
/* sanity check on args */
/* sanity check on args */
/* Note: ELAN_MAX_VPS is 512 on "old" Elan driver, 16384 on new. */
if
((
ntasks
<=
0
)
||
(
nnodes
<=
0
))
if
((
ntasks
<=
0
)
||
(
ntasks
>
ELAN_MAX_VPS
)
||
(
nnodes
<=
0
))
{
slurm_seterrno_ret
(
EINVAL
);
slurm_seterrno_ret
(
EINVAL
);
for
(
i
=
0
;
i
<
nnodes
;
i
++
)
{
if
(
tasks_per_node
[
i
]
>
max_tasks_per_node
)
max_tasks_per_node
=
tasks_per_node
[
i
];
}
}
/* Note: ELAN_MAX_VPS is 512 on "old" Elan driver, 16384 on new. */
if
((
max_tasks_per_node
*
nnodes
)
>
ELAN_MAX_VPS
)
slurm_seterrno_ret
(
EINVAL
);
/* initialize jobinfo */
/* initialize jobinfo */
j
->
j_prognum
=
_generate_prognum
();
j
->
j_prognum
=
_generate_prognum
();
if
(
_init_elan_capability
(
&
j
->
j_cap
,
j
->
j_prognum
,
ntasks
,
nnodes
,
if
(
_init_elan_capability
(
&
j
->
j_cap
,
j
->
j_prognum
,
ntasks
,
nnodes
,
nodeset
,
tasks_per_node
,
cyclic_alloc
)
==
-
1
)
{
nodeset
,
tasks_per_node
,
cyclic_alloc
,
max_tasks_per_node
)
==
-
1
)
{
slurm_seterrno_ret
(
EAGAIN
);
/* failed to allocate hw ctx */
slurm_seterrno_ret
(
EAGAIN
);
/* failed to allocate hw ctx */
}
}
...
...
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