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
569616c9
Commit
569616c9
authored
11 years ago
by
Danny Auble
Browse files
Options
Downloads
Patches
Plain Diff
CRAY - Add logic to be able to store which blades are being used.
parent
2604b22b
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/cray/select_cray.c
+6
-1
6 additions, 1 deletion
src/plugins/select/cray/select_cray.c
with
6 additions
and
1 deletion
src/plugins/select/cray/select_cray.c
+
6
−
1
View file @
569616c9
...
@@ -78,7 +78,8 @@ struct select_jobinfo {
...
@@ -78,7 +78,8 @@ struct select_jobinfo {
uint16_t
cleaning
;
uint16_t
cleaning
;
uint16_t
magic
;
uint16_t
magic
;
uint8_t
npc
;
uint8_t
npc
;
select_jobinfo_t
*
other_jobinfo
;
select_jobinfo_t
*
other_jobinfo
;
bitstr_t
*
used_blades
;
};
};
#define JOBINFO_MAGIC 0x86ad
#define JOBINFO_MAGIC 0x86ad
...
@@ -980,10 +981,12 @@ static void _select_jobinfo_pack(select_jobinfo_t *jobinfo, Buf buffer,
...
@@ -980,10 +981,12 @@ static void _select_jobinfo_pack(select_jobinfo_t *jobinfo, Buf buffer,
pack_bit_str
(
NULL
,
buffer
);
pack_bit_str
(
NULL
,
buffer
);
pack16
(
0
,
buffer
);
pack16
(
0
,
buffer
);
pack8
(
0
,
buffer
);
pack8
(
0
,
buffer
);
pack_bit_str
(
NULL
,
buffer
);
}
else
{
}
else
{
pack_bit_str
(
jobinfo
->
blade_map
,
buffer
);
pack_bit_str
(
jobinfo
->
blade_map
,
buffer
);
pack16
(
jobinfo
->
cleaning
,
buffer
);
pack16
(
jobinfo
->
cleaning
,
buffer
);
pack8
(
jobinfo
->
npc
,
buffer
);
pack8
(
jobinfo
->
npc
,
buffer
);
pack_bit_str
(
jobinfo
->
used_blades
,
buffer
);
}
}
}
}
...
@@ -999,6 +1002,7 @@ static int _select_jobinfo_unpack(select_jobinfo_t **jobinfo_pptr,
...
@@ -999,6 +1002,7 @@ static int _select_jobinfo_unpack(select_jobinfo_t **jobinfo_pptr,
unpack_bit_str
(
&
jobinfo
->
blade_map
,
buffer
);
unpack_bit_str
(
&
jobinfo
->
blade_map
,
buffer
);
safe_unpack16
(
&
jobinfo
->
cleaning
,
buffer
);
safe_unpack16
(
&
jobinfo
->
cleaning
,
buffer
);
safe_unpack8
(
&
jobinfo
->
npc
,
buffer
);
safe_unpack8
(
&
jobinfo
->
npc
,
buffer
);
unpack_bit_str
(
&
jobinfo
->
used_blades
,
buffer
);
return
SLURM_SUCCESS
;
return
SLURM_SUCCESS
;
...
@@ -1999,6 +2003,7 @@ extern int select_p_select_jobinfo_free(select_jobinfo_t *jobinfo)
...
@@ -1999,6 +2003,7 @@ extern int select_p_select_jobinfo_free(select_jobinfo_t *jobinfo)
jobinfo
->
magic
=
0
;
jobinfo
->
magic
=
0
;
FREE_NULL_BITMAP
(
jobinfo
->
blade_map
);
FREE_NULL_BITMAP
(
jobinfo
->
blade_map
);
FREE_NULL_BITMAP
(
jobinfo
->
used_blades
);
other_select_jobinfo_free
(
jobinfo
->
other_jobinfo
);
other_select_jobinfo_free
(
jobinfo
->
other_jobinfo
);
xfree
(
jobinfo
);
xfree
(
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