diff --git a/oshmem/mca/spml/yoda/spml_yoda.c b/oshmem/mca/spml/yoda/spml_yoda.c index 1ddb1e21a8d..1223ba87ec5 100644 --- a/oshmem/mca/spml/yoda/spml_yoda.c +++ b/oshmem/mca/spml/yoda/spml_yoda.c @@ -118,7 +118,7 @@ static inline void calc_nfrags_put (mca_bml_base_btl_t* bml_btl, *frag_size = bml_btl->btl->btl_max_send_size - SPML_YODA_SEND_CONTEXT_SIZE; } else { - *frag_size = bml_btl->btl->btl_put_limit; + *frag_size = bml_btl->btl->btl_max_send_size; } *nfrags = 1 + (size - 1) / (*frag_size); } @@ -133,7 +133,7 @@ static inline void calc_nfrags_get (mca_bml_base_btl_t* bml_btl, *frag_size = bml_btl->btl->btl_max_send_size - SPML_YODA_SEND_CONTEXT_SIZE; } else { - *frag_size = bml_btl->btl->btl_get_limit; + *frag_size = bml_btl->btl->btl_max_send_size; } *nfrags = 1 + (size - 1) / (*frag_size); }