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
cff5fc10
Commit
cff5fc10
authored
Jan 16, 2023
by
iker_martin
Browse files
Minor fix for capped times in communications
parent
0982cac5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Codes/Main/process_stage.c
View file @
cff5fc10
...
...
@@ -74,9 +74,10 @@ double init_stage(configuration *config_file, int stage_i, group_data group, MPI
* realizara la operacion.
*/
double
process_stage
(
configuration
config_file
,
iter_stage_t
stage
,
group_data
group
,
MPI_Comm
comm
)
{
int
i
;
int
i
=
0
;
double
result
,
t_start
,
t_total
;
t_start
=
t_total
=
MPI_Wtime
();
t_start
=
MPI_Wtime
();
t_total
=
0
;
switch
(
stage
.
pt
)
{
//Computo
...
...
@@ -110,7 +111,7 @@ double process_stage(configuration config_file, iter_stage_t stage, group_data g
break
;
case
COMP_ALLGATHER
:
if
(
stage
.
t_capped
)
{
while
(
t_total
<
stage
.
t_stage
)
{
while
(
t_total
<
stage
.
t_stage
)
{
MPI_Allgatherv
(
stage
.
array
,
stage
.
my_bytes
,
MPI_CHAR
,
stage
.
full_array
,
stage
.
counts
.
counts
,
stage
.
counts
.
displs
,
MPI_CHAR
,
comm
);
t_total
=
MPI_Wtime
()
-
t_start
;
MPI_Bcast
(
&
t_total
,
1
,
MPI_DOUBLE
,
ROOT
,
comm
);
...
...
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