Skip to content

Commit 68b5acd

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 <karasev.b@gmail.com>
1 parent 4c9f7af commit 68b5acd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: oshmem/mca/spml/yoda/spml_yoda.c

+2-2
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)