Skip to content

Commit f2b0858

Browse files
committed
pml/cm: Fix datatype offset in isend
Previously due to the MTL avoiding entering the convertor for optimization, data offsetting was not properly calculated. In order to fix this, the datatype offset was moved from mca_pml_cm_send into ompi_mtl_datatype_pack. This change was not incorporated into the MCA_PML_CM_SEND_REQUEST_INIT_COMMON macro and thus offset would be added twice during isend. Signed-off-by: William Zhang <wilzhang@amazon.com>
1 parent a1dc2f5 commit f2b0858

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ompi/mca/pml/cm/pml_cm_sendreq.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ do { \
246246
/* Sets CONVERTOR_ACCELERATOR flag if device buffer */ \
247247
opal_convertor_prepare_for_send( \
248248
&req_send->req_base.req_convertor, \
249-
&datatype->super, count, (unsigned char*)buf + datatype->super.true_lb); \
249+
&datatype->super, count, (unsigned char*)buf); \
250250
} else { \
251251
MCA_PML_CM_SWITCH_ACCELERATOR_CONVERTOR_OFF(flags, datatype, count); \
252252
opal_convertor_copy_and_prepare_for_send( \

0 commit comments

Comments
 (0)