Skip to content

Commit 02c288c

Browse files
authored
Merge pull request #3567 from markalle/pr/yalla_datatypes
yalla with irregular contig datatype -- Fixes 3566
2 parents facd6d6 + 36f51bc commit 02c288c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ompi/mca/pml/yalla/pml_yalla_datatype.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
* Copyright (C) Mellanox Technologies Ltd. 2001-2011. ALL RIGHTS RESERVED.
44
* Copyright (c) 2015 Los Alamos National Security, LLC. All rights
55
* reserved.
6+
* Copyright (c) 2017 IBM Corporation. All rights reserved.
67
* $COPYRIGHT$
78
*
89
* Additional copyrights may follow
@@ -29,8 +30,7 @@ OBJ_CLASS_DECLARATION(mca_pml_yalla_convertor_t);
2930
ptrdiff_t lb; \
3031
\
3132
if (opal_datatype_is_contiguous_memory_layout(&(_dtype)->super, _count)) { \
32-
ompi_datatype_type_size(_dtype, &size); \
33-
ompi_datatype_type_lb(_dtype, &lb); \
33+
ompi_datatype_get_true_extent(_dtype, &lb, &size); \
3434
(_req_base)->data_type = MXM_REQ_DATA_BUFFER; \
3535
(_req_base)->data.buffer.ptr = (char *)_buf + lb; \
3636
(_req_base)->data.buffer.length = size * (_count); \

0 commit comments

Comments
 (0)