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
9a332596
Commit
9a332596
authored
3 years ago
by
Nate Rini
Committed by
Tim Wickberg
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Add OCI container config to slurmd_conf_t
Bug 11380
parent
37b27927
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/slurmd/common/slurmstepd_init.c
+5
-0
5 additions, 0 deletions
src/slurmd/common/slurmstepd_init.c
src/slurmd/slurmd/slurmd.c
+4
-0
4 additions, 0 deletions
src/slurmd/slurmd/slurmd.c
src/slurmd/slurmd/slurmd.h
+2
-0
2 additions, 0 deletions
src/slurmd/slurmd/slurmd.h
with
11 additions
and
0 deletions
src/slurmd/common/slurmstepd_init.c
+
5
−
0
View file @
9a332596
...
@@ -68,6 +68,8 @@ extern void pack_slurmd_conf_lite(slurmd_conf_t *conf, buf_t *buffer)
...
@@ -68,6 +68,8 @@ extern void pack_slurmd_conf_lite(slurmd_conf_t *conf, buf_t *buffer)
pack32
(
conf
->
daemonize
,
buffer
);
pack32
(
conf
->
daemonize
,
buffer
);
packstr
(
conf
->
node_topo_addr
,
buffer
);
packstr
(
conf
->
node_topo_addr
,
buffer
);
packstr
(
conf
->
node_topo_pattern
,
buffer
);
packstr
(
conf
->
node_topo_pattern
,
buffer
);
packstr
(
conf
->
oci_container_id_pattern
,
buffer
);
packstr
(
conf
->
oci_runtime
,
buffer
);
pack16
(
conf
->
port
,
buffer
);
pack16
(
conf
->
port
,
buffer
);
packstr
(
conf
->
gres
,
buffer
);
packstr
(
conf
->
gres
,
buffer
);
}
}
...
@@ -106,6 +108,9 @@ extern int unpack_slurmd_conf_lite_no_alloc(slurmd_conf_t *conf, buf_t *buffer)
...
@@ -106,6 +108,9 @@ extern int unpack_slurmd_conf_lite_no_alloc(slurmd_conf_t *conf, buf_t *buffer)
conf
->
daemonize
=
uint32_tmp
;
conf
->
daemonize
=
uint32_tmp
;
safe_unpackstr_xmalloc
(
&
conf
->
node_topo_addr
,
&
uint32_tmp
,
buffer
);
safe_unpackstr_xmalloc
(
&
conf
->
node_topo_addr
,
&
uint32_tmp
,
buffer
);
safe_unpackstr_xmalloc
(
&
conf
->
node_topo_pattern
,
&
uint32_tmp
,
buffer
);
safe_unpackstr_xmalloc
(
&
conf
->
node_topo_pattern
,
&
uint32_tmp
,
buffer
);
safe_unpackstr_xmalloc
(
&
conf
->
oci_container_id_pattern
,
&
uint32_tmp
,
buffer
);
safe_unpackstr_xmalloc
(
&
conf
->
oci_runtime
,
&
uint32_tmp
,
buffer
);
safe_unpack16
(
&
conf
->
port
,
buffer
);
safe_unpack16
(
&
conf
->
port
,
buffer
);
safe_unpackstr_xmalloc
(
&
conf
->
gres
,
&
uint32_tmp
,
buffer
);
safe_unpackstr_xmalloc
(
&
conf
->
gres
,
&
uint32_tmp
,
buffer
);
}
}
...
...
This diff is collapsed.
Click to expand it.
src/slurmd/slurmd/slurmd.c
+
4
−
0
View file @
9a332596
...
@@ -1059,6 +1059,10 @@ _read_config(void)
...
@@ -1059,6 +1059,10 @@ _read_config(void)
if
(
cf
->
control_addr
==
NULL
)
if
(
cf
->
control_addr
==
NULL
)
fatal
(
"Unable to establish controller machine"
);
fatal
(
"Unable to establish controller machine"
);
conf
->
oci_container_id_pattern
=
xstrdup
(
cf
->
oci_container_id_pattern
);
conf
->
oci_runtime
=
xstrdup
(
cf
->
oci_runtime
);
if
(
cf
->
slurmctld_port
==
0
)
if
(
cf
->
slurmctld_port
==
0
)
fatal
(
"Unable to establish controller port"
);
fatal
(
"Unable to establish controller port"
);
...
...
This diff is collapsed.
Click to expand it.
src/slurmd/slurmd/slurmd.h
+
2
−
0
View file @
9a332596
...
@@ -113,6 +113,8 @@ typedef struct slurmd_config {
...
@@ -113,6 +113,8 @@ typedef struct slurmd_config {
char
*
node_name
;
/* node name */
char
*
node_name
;
/* node name */
char
*
node_topo_addr
;
/* node's topology address */
char
*
node_topo_addr
;
/* node's topology address */
char
*
node_topo_pattern
;
/* node's topology address pattern */
char
*
node_topo_pattern
;
/* node's topology address pattern */
char
*
oci_container_id_pattern
;
/* OCI Container id pattern */
char
*
oci_runtime
;
/* OCI Container runtime command */
char
*
conffile
;
/* config filename */
char
*
conffile
;
/* config filename */
char
*
logfile
;
/* slurmd logfile, if any */
char
*
logfile
;
/* slurmd logfile, if any */
uint32_t
syslog_debug
;
/* send output to both logfile and
uint32_t
syslog_debug
;
/* send output to both logfile and
...
...
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