Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Iker Martín Álvarez
Proteo
Commits
06573694
Commit
06573694
authored
Jun 25, 2024
by
iker_martin
Browse files
Added debug prints when spawning processes
parent
c9940d73
Changes
1
Hide whitespace changes
Inline
Side-by-side
Codes/malleability/spawn_methods/Baseline.c
View file @
06573694
...
@@ -62,9 +62,15 @@ void baseline_parents(Spawn_data spawn_data, MPI_Comm *child) {
...
@@ -62,9 +62,15 @@ void baseline_parents(Spawn_data spawn_data, MPI_Comm *child) {
spawn_data
.
sets
=
(
Spawn_set
*
)
malloc
(
spawn_data
.
total_spawns
*
sizeof
(
Spawn_set
));
spawn_data
.
sets
=
(
Spawn_set
*
)
malloc
(
spawn_data
.
total_spawns
*
sizeof
(
Spawn_set
));
}
}
#if MAM_DEBUG >= 3
DEBUG_FUNC
(
"Starting spawning of processes"
,
mall
->
myId
,
mall
->
numP
);
fflush
(
stdout
);
#endif
for
(
i
=
0
;
i
<
spawn_data
.
total_spawns
;
i
++
)
{
for
(
i
=
0
;
i
<
spawn_data
.
total_spawns
;
i
++
)
{
baseline_spawn
(
spawn_data
.
sets
[
i
],
comm
,
&
intercomms
[
i
]);
baseline_spawn
(
spawn_data
.
sets
[
i
],
comm
,
&
intercomms
[
i
]);
}
}
#if MAM_DEBUG >= 3
DEBUG_FUNC
(
"Sources have created the new processes. Performing additional actions if required."
,
mall
->
myId
,
mall
->
numP
);
fflush
(
stdout
);
#endif
// TODO Improvement - Deactivate Multiple spawn before spawning if total_spawns == 1
// TODO Improvement - Deactivate Multiple spawn before spawning if total_spawns == 1
if
(
spawn_data
.
spawn_is_multiple
)
{
multiple_strat_parents
(
spawn_data
,
comm
,
intercomms
,
child
);
}
if
(
spawn_data
.
spawn_is_multiple
)
{
multiple_strat_parents
(
spawn_data
,
comm
,
intercomms
,
child
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment