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
75873f7c
Commit
75873f7c
authored
18 years ago
by
Moe Jette
Browse files
Options
Downloads
Patches
Plain Diff
In select/cons_res, fix for function argument type mis-match in getting
CPU count for a job.
parent
0041ce6b
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/slurmctld/node_scheduler.c
+2
-3
2 additions, 3 deletions
src/slurmctld/node_scheduler.c
with
4 additions
and
3 deletions
NEWS
+
2
−
0
View file @
75873f7c
...
@@ -8,6 +8,8 @@ documents those changes that are of interest to users and admins.
...
@@ -8,6 +8,8 @@ documents those changes that are of interest to users and admins.
-- srun --get-user-env now sends su's stderr to /dev/null
-- srun --get-user-env now sends su's stderr to /dev/null
-- Fix in node_scheduling logic with multiple node_sets, from
-- Fix in node_scheduling logic with multiple node_sets, from
Ernest Artiaga, BSC.
Ernest Artiaga, BSC.
-- In select/cons_res, fix for function argument type mis-match in getting
CPU count for a job.
* Changes in SLURM 1.2.1
* Changes in SLURM 1.2.1
========================
========================
...
...
This diff is collapsed.
Click to expand it.
src/slurmctld/node_scheduler.c
+
2
−
3
View file @
75873f7c
...
@@ -1386,7 +1386,7 @@ extern void build_node_details(struct job_record *job_ptr)
...
@@ -1386,7 +1386,7 @@ extern void build_node_details(struct job_record *job_ptr)
xfree
(
job_ptr
->
alloc_lps
);
xfree
(
job_ptr
->
alloc_lps
);
if
(
job_ptr
->
cr_enabled
)
{
if
(
job_ptr
->
cr_enabled
)
{
cr_enabled
=
job_ptr
->
cr_enabled
;
cr_enabled
=
job_ptr
->
cr_enabled
;
job_ptr
->
alloc_lps
=
xmalloc
(
job_ptr
->
node_cnt
*
sizeof
(
int
));
job_ptr
->
alloc_lps
=
xmalloc
(
job_ptr
->
node_cnt
*
sizeof
(
u
int
32_t
));
job_ptr
->
alloc_lps_cnt
=
job_ptr
->
node_cnt
;
job_ptr
->
alloc_lps_cnt
=
job_ptr
->
node_cnt
;
}
}
...
@@ -1394,7 +1394,7 @@ extern void build_node_details(struct job_record *job_ptr)
...
@@ -1394,7 +1394,7 @@ extern void build_node_details(struct job_record *job_ptr)
node_ptr
=
find_node_record
(
this_node_name
);
node_ptr
=
find_node_record
(
this_node_name
);
if
(
node_ptr
)
{
if
(
node_ptr
)
{
int
usable_lps
=
0
;
u
int
16_t
usable_lps
=
0
;
#ifdef HAVE_BG
#ifdef HAVE_BG
if
(
job_ptr
->
node_cnt
==
1
)
{
if
(
job_ptr
->
node_cnt
==
1
)
{
memcpy
(
&
job_ptr
->
node_addr
[
node_inx
++
],
memcpy
(
&
job_ptr
->
node_addr
[
node_inx
++
],
...
@@ -1419,7 +1419,6 @@ extern void build_node_details(struct job_record *job_ptr)
...
@@ -1419,7 +1419,6 @@ extern void build_node_details(struct job_record *job_ptr)
}
else
{
}
else
{
if
(
cr_enabled
)
{
if
(
cr_enabled
)
{
xfree
(
job_ptr
->
alloc_lps
);
xfree
(
job_ptr
->
alloc_lps
);
job_ptr
->
alloc_lps
=
NULL
;
job_ptr
->
alloc_lps_cnt
=
0
;
job_ptr
->
alloc_lps_cnt
=
0
;
}
}
error
(
"Unable to get extra jobinfo "
error
(
"Unable to get extra jobinfo "
...
...
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