File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 1313 * Copyright (c) 2008 UT-Battelle, LLC. All rights reserved.
1414 * Copyright (c) 2011 Sandia National Laboratories. All rights reserved.
1515 * Copyright (c) 2012-2015 NVIDIA Corporation. All rights reserved.
16- * Copyright (c) 2011-2016 Los Alamos National Security, LLC. All rights
16+ * Copyright (c) 2011-2017 Los Alamos National Security, LLC. All rights
1717 * reserved.
1818 * Copyright (c) 2012 FUJITSU LIMITED. All rights reserved.
1919 * Copyright (c) 2014-2016 Research Organization for Information Science
@@ -753,13 +753,14 @@ void mca_pml_ob1_recv_request_progress_rget( mca_pml_ob1_recv_request_t* recvreq
753753 frag -> rdma_length = bytes_remaining ;
754754 }
755755
756+ prev_sent = frag -> rdma_length ;
757+
756758 /* NTH: TODO -- handle error conditions gracefully */
757759 rc = mca_pml_ob1_recv_request_get_frag (frag );
758760 if (OMPI_SUCCESS != rc ) {
759761 break ;
760762 }
761763
762- prev_sent = frag -> rdma_length ;
763764 bytes_remaining -= prev_sent ;
764765 offset += prev_sent ;
765766 }
Original file line number Diff line number Diff line change @@ -49,6 +49,10 @@ int mca_btl_vader_send (struct mca_btl_base_module_t *btl,
4949 return 1 ;
5050 }
5151
52+ /* in order to work around a long standing ob1 bug (see #3845) we have to always
53+ * make the callback. once this is fixed in ob1 we can restore the code below. */
54+ frag -> base .des_flags |= MCA_BTL_DES_SEND_ALWAYS_CALLBACK ;
55+
5256 /* header (+ optional inline data) */
5357 frag -> hdr -> len = total_size ;
5458 /* type of message, pt-2-pt, one-sided, etc */
@@ -69,6 +73,9 @@ int mca_btl_vader_send (struct mca_btl_base_module_t *btl,
6973 return OPAL_SUCCESS ;
7074 }
7175
76+ return OPAL_SUCCESS ;
77+
78+ #if 0
7279 if ((frag -> hdr -> flags & MCA_BTL_VADER_FLAG_SINGLE_COPY ) ||
7380 !(frag -> base .des_flags & MCA_BTL_DES_FLAGS_BTL_OWNERSHIP )) {
7481 frag -> base .des_flags |= MCA_BTL_DES_SEND_ALWAYS_CALLBACK ;
@@ -79,4 +86,5 @@ int mca_btl_vader_send (struct mca_btl_base_module_t *btl,
7986 /* data is gone (from the pml's perspective). frag callback/release will
8087 happen later */
8188 return 1 ;
89+ #endif
8290}
You can’t perform that action at this time.
0 commit comments