Skip to content

Commit 5215b60

Browse files
authored
Merge pull request #2353 from karasevb/v2.x_fix_spml_yoda
oshmem/spml/yoda: fixed the btl operations
2 parents 6c16e96 + 44d0c62 commit 5215b60

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
@@ -119,7 +119,7 @@ static inline void calc_nfrags_put (mca_bml_base_btl_t* bml_btl,
119119
*frag_size = bml_btl->btl->btl_max_send_size - SPML_YODA_SEND_CONTEXT_SIZE;
120120
}
121121
else {
122-
*frag_size = bml_btl->btl->btl_put_limit;
122+
*frag_size = bml_btl->btl->btl_max_send_size;
123123
}
124124
*nfrags = 1 + (size - 1) / (*frag_size);
125125
}
@@ -134,7 +134,7 @@ static inline void calc_nfrags_get (mca_bml_base_btl_t* bml_btl,
134134
*frag_size = bml_btl->btl->btl_max_send_size - SPML_YODA_SEND_CONTEXT_SIZE;
135135
}
136136
else {
137-
*frag_size = bml_btl->btl->btl_get_limit;
137+
*frag_size = bml_btl->btl->btl_max_send_size;
138138
}
139139
*nfrags = 1 + (size - 1) / (*frag_size);
140140
}

0 commit comments

Comments
 (0)