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
703f39e0
Commit
703f39e0
authored
11 years ago
by
Danny Auble
Browse files
Options
Downloads
Patches
Plain Diff
change "struct srun_info" -> "srun_info_t" and remove conflicting
"struct task_info" declaration
parent
e2592918
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/slurmd/slurmstepd/slurmstepd_job.c
+4
-4
4 additions, 4 deletions
src/slurmd/slurmstepd/slurmstepd_job.c
src/slurmd/slurmstepd/slurmstepd_job.h
+8
-7
8 additions, 7 deletions
src/slurmd/slurmstepd/slurmstepd_job.h
with
12 additions
and
11 deletions
src/slurmd/slurmstepd/slurmstepd_job.c
+
4
−
4
View file @
703f39e0
...
...
@@ -291,7 +291,7 @@ _array_free(char ***array)
static
void
_srun_info_destructor
(
void
*
arg
)
{
struct
srun_info
*
srun
=
(
struct
srun_info
*
)
arg
;
srun_info
_t
*
srun
=
(
srun_info
_t
*
)
arg
;
srun_info_destroy
(
srun
);
}
...
...
@@ -642,12 +642,12 @@ stepd_step_rec_destroy(stepd_step_rec_t *job)
xfree
(
job
);
}
extern
struct
srun_info
*
extern
srun_info
_t
*
srun_info_create
(
slurm_cred_t
*
cred
,
slurm_addr_t
*
resp_addr
,
slurm_addr_t
*
ioaddr
)
{
char
*
data
=
NULL
;
uint32_t
len
=
0
;
struct
srun_info
*
srun
=
xmalloc
(
sizeof
(
struct
srun_info
));
srun_info
_t
*
srun
=
xmalloc
(
sizeof
(
srun_info
_t
));
srun_key_t
*
key
=
xmalloc
(
sizeof
(
srun_key_t
));
srun
->
key
=
key
;
...
...
@@ -679,7 +679,7 @@ srun_info_create(slurm_cred_t *cred, slurm_addr_t *resp_addr, slurm_addr_t *ioad
}
extern
void
srun_info_destroy
(
struct
srun_info
*
srun
)
srun_info_destroy
(
srun_info
_t
*
srun
)
{
xfree
(
srun
->
key
);
xfree
(
srun
);
...
...
This diff is collapsed.
Click to expand it.
src/slurmd/slurmstepd/slurmstepd_job.h
+
8
−
7
View file @
703f39e0
...
...
@@ -61,11 +61,11 @@
#define MAXHOSTNAMELEN 64
#endif
typedef
struct
srun_key
{
typedef
struct
{
unsigned
char
data
[
SLURM_IO_KEY_SIZE
];
}
srun_key_t
;
typedef
struct
srun_info
{
typedef
struct
{
srun_key_t
*
key
;
/* srun key for IO verification */
slurm_addr_t
resp_addr
;
/* response addr for task exit msg */
slurm_addr_t
ioaddr
;
/* Address to connect on for normal I/O.
...
...
@@ -73,14 +73,14 @@ typedef struct srun_info {
resp_addr. */
}
srun_info_t
;
typedef
enum
task_state
{
typedef
enum
{
STEPD_STEP_TASK_INIT
,
STEPD_STEP_TASK_STARTING
,
STEPD_STEP_TASK_RUNNING
,
STEPD_STEP_TASK_COMPLETE
}
stepd_step_task_state_t
;
typedef
struct
task_info
{
typedef
struct
{
pthread_mutex_t
mutex
;
/* mutex to protect task state */
stepd_step_task_state_t
state
;
/* task state */
...
...
@@ -217,13 +217,14 @@ stepd_step_rec_t * batch_stepd_step_rec_create(batch_job_launch_msg_t *msg);
void
stepd_step_rec_destroy
(
stepd_step_rec_t
*
job
);
struct
srun_info
*
srun_info_create
(
slurm_cred_t
*
cred
,
slurm_addr_t
*
respaddr
,
srun_info
_t
*
srun_info_create
(
slurm_cred_t
*
cred
,
slurm_addr_t
*
respaddr
,
slurm_addr_t
*
ioaddr
);
void
srun_info_destroy
(
struct
srun_info
*
srun
);
void
srun_info_destroy
(
srun_info
_t
*
srun
);
stepd_step_task_info_t
*
task_info_create
(
int
taskid
,
int
gtaskid
,
char
*
ifname
,
char
*
ofname
,
char
*
efname
);
char
*
ifname
,
char
*
ofname
,
char
*
efname
);
/*
* Return a task info structure corresponding to pid.
...
...
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