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
e167a529
Commit
e167a529
authored
22 years ago
by
Moe Jette
Browse files
Options
Downloads
Patches
Plain Diff
Added flag to job submit RPC: Kill on node failure, also new node state.
parent
b626ec08
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/common/slurm_protocol_defs.c
+2
-0
2 additions, 0 deletions
src/common/slurm_protocol_defs.c
src/common/slurm_protocol_defs.h
+3
-0
3 additions, 0 deletions
src/common/slurm_protocol_defs.h
src/common/slurm_protocol_pack.c
+2
-0
2 additions, 0 deletions
src/common/slurm_protocol_pack.c
with
7 additions
and
0 deletions
src/common/slurm_protocol_defs.c
+
2
−
0
View file @
e167a529
...
...
@@ -483,6 +483,8 @@ void slurm_init_job_desc_msg(job_desc_msg_t * job_desc_msg)
{
job_desc_msg
->
contiguous
=
(
uint16_t
)
SLURM_JOB_DESC_DEFAULT_CONTIGUOUS
;
job_desc_msg
->
kill_on_node_fail
=
(
uint16_t
)
SLURM_JOB_DESC_DEFAULT_KILL_NODE_FAIL
;
job_desc_msg
->
environment
=
SLURM_JOB_DESC_DEFAULT_ENVIRONMENT
;
job_desc_msg
->
env_size
=
SLURM_JOB_DESC_DEFAULT_ENV_SIZE
;
job_desc_msg
->
features
=
SLURM_JOB_DESC_DEFAULT_FEATURES
;
...
...
This diff is collapsed.
Click to expand it.
src/common/slurm_protocol_defs.h
+
3
−
0
View file @
e167a529
...
...
@@ -246,6 +246,8 @@ typedef struct job_step_specs {
typedef
struct
job_descriptor
{
/* Job descriptor for submit, allocate, and update requests */
uint16_t
contiguous
;
/* 1 if job requires contiguous nodes, 0 otherwise,
* default=0 */
uint16_t
kill_on_node_fail
;
/* 1 if node failure to kill job, 0 otherwise,
* default=1 */
char
**
environment
;
/* environment variables to set for job,
* name=value pairs, one per line */
uint16_t
env_size
;
/* element count in environment */
...
...
@@ -609,6 +611,7 @@ extern char *node_state_string(enum node_states inx);
extern
char
*
node_state_string_compact
(
enum
node_states
inx
);
#define SLURM_JOB_DESC_DEFAULT_CONTIGUOUS NO_VAL
#define SLURM_JOB_DESC_DEFAULT_KILL_NODE_FAIL NO_VAL
#define SLURM_JOB_DESC_DEFAULT_ENVIRONMENT ((char **) NULL)
#define SLURM_JOB_DESC_DEFAULT_ENV_SIZE 0
#define SLURM_JOB_DESC_DEFAULT_FEATURES NULL
...
...
This diff is collapsed.
Click to expand it.
src/common/slurm_protocol_pack.c
+
2
−
0
View file @
e167a529
...
...
@@ -1141,6 +1141,7 @@ void pack_job_desc ( job_desc_msg_t * job_desc_ptr, void ** buf_ptr , int * buff
/* unpack timestamp of snapshot */
pack16
(
job_desc_ptr
->
contiguous
,
buf_ptr
,
buffer_size
);
pack16
(
job_desc_ptr
->
kill_on_node_fail
,
buf_ptr
,
buffer_size
);
packstr
(
job_desc_ptr
->
features
,
buf_ptr
,
buffer_size
);
pack32
(
job_desc_ptr
->
job_id
,
buf_ptr
,
buffer_size
);
packstr
(
job_desc_ptr
->
name
,
buf_ptr
,
buffer_size
);
...
...
@@ -1193,6 +1194,7 @@ int unpack_job_desc ( job_desc_msg_t **job_desc_buffer_ptr, void ** buf_ptr , in
/* unpack timestamp of snapshot */
unpack16
(
&
job_desc_ptr
->
contiguous
,
buf_ptr
,
buffer_size
);
unpack16
(
&
job_desc_ptr
->
kill_on_node_fail
,
buf_ptr
,
buffer_size
);
unpackstr_xmalloc
(
&
job_desc_ptr
->
features
,
&
uint16_tmp
,
buf_ptr
,
buffer_size
);
unpack32
(
&
job_desc_ptr
->
job_id
,
buf_ptr
,
buffer_size
);
unpackstr_xmalloc
(
&
job_desc_ptr
->
name
,
&
uint16_tmp
,
buf_ptr
,
buffer_size
);
...
...
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