From 2ab3a5f555657f2d909db2bced2e4567020b582a Mon Sep 17 00:00:00 2001 From: Boris Karasev Date: Wed, 2 Nov 2016 13:38:35 +0200 Subject: [PATCH] oshmem/spml/yoda: fixed the btl operations Fixed the shmem OOM error which is referenced on #2028 Signed-off-by: Boris Karasev (cherry picked from commit 68b5acd9f427480b53e1bc249286cd7aea097404) --- oshmem/mca/spml/yoda/spml_yoda.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); }