Skip to content

Commit

Permalink
oshmem/spml/yoda: fixed the btl operations
Browse files Browse the repository at this point in the history
Fixed the shmem OOM error which is referenced on open-mpi#2028

Signed-off-by: Boris Karasev <karasev.b@gmail.com>
(cherry picked from commit 68b5acd)
  • Loading branch information
karasevb committed Nov 3, 2016
1 parent 6c4b36f commit 2ab3a5f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions oshmem/mca/spml/yoda/spml_yoda.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand All @@ -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);
}
Expand Down

0 comments on commit 2ab3a5f

Please sign in to comment.