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
eb896323
Commit
eb896323
authored
19 years ago
by
Moe Jette
Browse files
Options
Downloads
Patches
Plain Diff
Fix variable used for logging in DEBUG mode.
parent
c3b1ac8d
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/api/spawn.c
+5
-4
5 additions, 4 deletions
src/api/spawn.c
with
5 additions
and
4 deletions
src/api/spawn.c
+
5
−
4
View file @
eb896323
...
@@ -409,7 +409,7 @@ extern int slurm_spawn (slurm_step_ctx ctx, int *fd_array)
...
@@ -409,7 +409,7 @@ extern int slurm_spawn (slurm_step_ctx ctx, int *fd_array)
r
->
switch_job
=
ctx
->
step_resp
->
switch_job
;
r
->
switch_job
=
ctx
->
step_resp
->
switch_job
;
r
->
slurmd_debug
=
slurmd_debug
;
r
->
slurmd_debug
=
slurmd_debug
;
/*Task specific message contents */
/*
Task specific message contents */
r
->
global_task_id
=
ctx
->
tids
[
i
][
0
];
r
->
global_task_id
=
ctx
->
tids
[
i
][
0
];
r
->
cpus_allocated
=
ctx
->
cpus
[
i
];
r
->
cpus_allocated
=
ctx
->
cpus
[
i
];
r
->
srun_node_id
=
(
uint32_t
)
i
;
r
->
srun_node_id
=
(
uint32_t
)
i
;
...
@@ -420,7 +420,7 @@ extern int slurm_spawn (slurm_step_ctx ctx, int *fd_array)
...
@@ -420,7 +420,7 @@ extern int slurm_spawn (slurm_step_ctx ctx, int *fd_array)
sizeof
(
slurm_addr
));
sizeof
(
slurm_addr
));
#if _DEBUG
#if _DEBUG
printf
(
"tid=%d, fd=%d, port=%u, node_id=%u
\n
"
,
printf
(
"tid=%d, fd=%d, port=%u, node_id=%u
\n
"
,
tid
,
fd_array
[
i
],
r
->
io_port
,
i
);
ctx
->
tids
[
i
][
0
]
,
fd_array
[
i
],
r
->
io_port
,
i
);
#endif
#endif
}
}
...
@@ -721,7 +721,8 @@ static void _xcopy_char_array(char ***argv_p, char **argv, int cnt)
...
@@ -721,7 +721,8 @@ static void _xcopy_char_array(char ***argv_p, char **argv, int cnt)
}
}
/* parallel (multi-threaded) task launch, transmits all RPCs in parallel with timeout */
/* parallel (multi-threaded) task launch,
* transmits all RPCs in parallel with timeout */
static
int
_p_launch
(
slurm_msg_t
*
req
,
slurm_step_ctx
ctx
)
static
int
_p_launch
(
slurm_msg_t
*
req
,
slurm_step_ctx
ctx
)
{
{
int
rc
=
SLURM_SUCCESS
,
i
;
int
rc
=
SLURM_SUCCESS
,
i
;
...
@@ -765,7 +766,7 @@ static int _p_launch(slurm_msg_t *req, slurm_step_ctx ctx)
...
@@ -765,7 +766,7 @@ static int _p_launch(slurm_msg_t *req, slurm_step_ctx ctx)
slurm_mutex_unlock
(
&
thread_mutex
);
slurm_mutex_unlock
(
&
thread_mutex
);
}
}
/* wait for all tasks to terminate*/
/* wait for all tasks to terminate
*/
slurm_mutex_lock
(
&
thread_mutex
);
slurm_mutex_lock
(
&
thread_mutex
);
for
(
i
=
0
;
i
<
ctx
->
nhosts
;
i
++
)
{
for
(
i
=
0
;
i
<
ctx
->
nhosts
;
i
++
)
{
while
(
thd
[
i
].
state
<
DSH_DONE
)
{
while
(
thd
[
i
].
state
<
DSH_DONE
)
{
...
...
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