Skip to content

Commit 2ab3a5f

Browse files
committed
oshmem/spml/yoda: fixed the btl operations
Fixed the shmem OOM error which is referenced on #2028 Signed-off-by: Boris Karasev <[email protected]> (cherry picked from commit 68b5acd)
1 parent 6c4b36f commit 2ab3a5f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

oshmem/mca/spml/yoda/spml_yoda.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ static inline void calc_nfrags_put (mca_bml_base_btl_t* bml_btl,
118118
*frag_size = bml_btl->btl->btl_max_send_size - SPML_YODA_SEND_CONTEXT_SIZE;
119119
}
120120
else {
121-
*frag_size = bml_btl->btl->btl_put_limit;
121+
*frag_size = bml_btl->btl->btl_max_send_size;
122122
}
123123
*nfrags = 1 + (size - 1) / (*frag_size);
124124
}
@@ -133,7 +133,7 @@ static inline void calc_nfrags_get (mca_bml_base_btl_t* bml_btl,
133133
*frag_size = bml_btl->btl->btl_max_send_size - SPML_YODA_SEND_CONTEXT_SIZE;
134134
}
135135
else {
136-
*frag_size = bml_btl->btl->btl_get_limit;
136+
*frag_size = bml_btl->btl->btl_max_send_size;
137137
}
138138
*nfrags = 1 + (size - 1) / (*frag_size);
139139
}

0 commit comments

Comments
 (0)