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
2ae14d8e
Commit
2ae14d8e
authored
Apr 16, 2024
by
iker_martin
Browse files
Minor bug fixes for RMA redistributions
parent
b7e68dad
Changes
2
Hide whitespace changes
Inline
Side-by-side
Codes/malleability/CommDist.c
View file @
2ae14d8e
...
...
@@ -375,7 +375,8 @@ void async_communication_end(MPI_Request *requests, size_t request_qty, MPI_Win
//ha terminado, aunque solo se pueda llegar a este punto cuando ha terminado
if
(
MAM_Contains_strat
(
MAM_RED_STRATEGIES
,
MAM_STRAT_RED_WAIT_TARGETS
,
NULL
))
{
MPI_Waitall
(
request_qty
,
requests
,
MPI_STATUSES_IGNORE
);
}
if
(
mall_conf
->
red_method
==
MALL_RED_RMA_LOCKALL
||
mall_conf
->
red_method
==
MALL_RED_RMA_LOCK
)
{
MPI_Win_free
(
win
);
}
if
((
mall_conf
->
red_method
==
MALL_RED_RMA_LOCKALL
||
mall_conf
->
red_method
==
MALL_RED_RMA_LOCK
)
&&
*
win
!=
MPI_WIN_NULL
)
{
MPI_Win_free
(
win
);
}
}
/*
...
...
Codes/malleability/malleabilityTypes.c
View file @
2ae14d8e
...
...
@@ -145,6 +145,7 @@ void init_malleability_data_struct(malleability_data_t *data_struct, size_t size
for
(
i
=
0
;
i
<
size
;
i
++
)
{
//calloc and memset does not ensure a NULL value
data_struct
->
requests
[
i
]
=
NULL
;
data_struct
->
windows
[
i
]
=
MPI_WIN_NULL
;
data_struct
->
arrays
[
i
]
=
NULL
;
}
}
...
...
@@ -176,6 +177,7 @@ void realloc_malleability_data_struct(malleability_data_t *data_struct, size_t q
for
(
i
=
data_struct
->
max_entries
;
i
<
needed
;
i
++
)
{
//realloc does not ensure a NULL value
requests_aux
[
i
]
=
NULL
;
windows_aux
[
i
]
=
MPI_WIN_NULL
;
arrays_aux
[
i
]
=
NULL
;
}
...
...
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