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
Rob Latham
MPICH-BlueGene
Commits
61d01c53
Commit
61d01c53
authored
Jul 18, 2013
by
Xin Zhao
Committed by
Pavan Balaji
Jul 18, 2013
Browse files
fix bug:check info value of "alloc_shared_noncontig".
Signed-off-by:
Pavan Balaji
<
balaji@mcs.anl.gov
>
parent
f18b91f0
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/mpid/ch3/channels/nemesis/src/ch3_win_fns.c
View file @
61d01c53
...
...
@@ -60,8 +60,13 @@ static int MPIDI_CH3I_Win_allocate_shared(MPI_Aint size, int disp_unit, MPID_Inf
/* Check if we are allowed to allocate space non-contiguously */
if
(
info
!=
NULL
)
{
MPIR_Info_get_impl
(
info
,
"alloc_shared_noncontig"
,
0
,
NULL
,
&
(
*
win_ptr
)
->
info_args
.
alloc_shared_noncontig
);
int
alloc_shared_nctg_flag
=
0
;
char
alloc_shared_nctg_value
[
MPI_MAX_INFO_VAL
+
1
];
MPIR_Info_get_impl
(
info
,
"alloc_shared_noncontig"
,
MPI_MAX_INFO_VAL
,
alloc_shared_nctg_value
,
&
alloc_shared_nctg_flag
);
if
((
alloc_shared_nctg_flag
==
1
)
&&
(
!
strncmp
(
alloc_shared_nctg_value
,
"true"
,
strlen
(
"true"
))))
(
*
win_ptr
)
->
info_args
.
alloc_shared_noncontig
=
1
;
}
/* see if we can allocate all windows contiguously */
...
...
Write
Preview
Markdown
is supported
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