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
f5b8c0ec
Commit
f5b8c0ec
authored
17 years ago
by
Moe Jette
Browse files
Options
Downloads
Patches
Plain Diff
modify cr logic to only allocate one core per node for a job in overcommit mode
parent
91163b79
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/plugins/select/cons_res/dist_tasks.c
+11
-6
11 additions, 6 deletions
src/plugins/select/cons_res/dist_tasks.c
with
11 additions
and
6 deletions
src/plugins/select/cons_res/dist_tasks.c
+
11
−
6
View file @
f5b8c0ec
...
@@ -208,12 +208,17 @@ static int _job_assign_tasks(struct select_cr_job *job,
...
@@ -208,12 +208,17 @@ static int _job_assign_tasks(struct select_cr_job *job,
/* determine the number of required cores. When multiple threads
/* determine the number of required cores. When multiple threads
* are available, the maxtasks value may not reflect the requested
* are available, the maxtasks value may not reflect the requested
* core count, which is what we are seeking here. */
* core count, which is what we are seeking here. */
maxcores
=
maxtasks
/
usable_threads
;
if
(
job
->
job_ptr
->
details
->
overcommit
)
{
while
((
maxcores
*
usable_threads
)
<
maxtasks
)
maxcores
=
1
;
maxcores
++
;
reqcores
=
1
;
reqcores
=
mc_ptr
->
min_cores
*
mc_ptr
->
min_sockets
;
}
else
{
if
(
maxcores
<
reqcores
)
maxcores
=
maxtasks
/
usable_threads
;
maxcores
=
reqcores
;
while
((
maxcores
*
usable_threads
)
<
maxtasks
)
maxcores
++
;
reqcores
=
mc_ptr
->
min_cores
*
mc_ptr
->
min_sockets
;
if
(
maxcores
<
reqcores
)
maxcores
=
reqcores
;
}
offset
=
_find_offset
(
job
,
job_index
,
cores
,
sockets
,
maxcores
,
cr_type
,
offset
=
_find_offset
(
job
,
job_index
,
cores
,
sockets
,
maxcores
,
cr_type
,
this_cr_node
);
this_cr_node
);
...
...
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