Skip to content

Commit c745854

Browse files
committed
Avoid opal_convertor_pack for contigous data types in MXM mtl
Signed-off-by: Jithin Jose <[email protected]>
1 parent 0704389 commit c745854

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

ompi/mca/mtl/mxm/mtl_mxm_send.c

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,17 @@ static inline __opal_attribute_always_inline__ int
5757

5858
size_t *buffer_len = &mxm_send_req->base.data.buffer.length;
5959

60+
#if !(OPAL_ENABLE_HETEROGENEOUS_SUPPORT)
61+
if (convertor->pDesc &&
62+
opal_datatype_is_contiguous_memory_layout(convertor->pDesc,
63+
convertor->count)) {
64+
mxm_send_req->base.data.buffer.ptr = convertor->pBaseBuf;
65+
mxm_send_req->base.data.buffer.length = convertor->local_size;
66+
mxm_send_req->base.data_type = MXM_REQ_DATA_BUFFER;
67+
return OMPI_SUCCESS;
68+
}
69+
#endif
70+
6071
opal_convertor_get_packed_size(convertor, buffer_len);
6172
if (0 == *buffer_len) {
6273
mxm_send_req->base.data.buffer.ptr = NULL;

0 commit comments

Comments
 (0)