We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents facd6d6 + 36f51bc commit 02c288cCopy full SHA for 02c288c
ompi/mca/pml/yalla/pml_yalla_datatype.h
@@ -3,6 +3,7 @@
3
* Copyright (C) Mellanox Technologies Ltd. 2001-2011. ALL RIGHTS RESERVED.
4
* Copyright (c) 2015 Los Alamos National Security, LLC. All rights
5
* reserved.
6
+ * Copyright (c) 2017 IBM Corporation. All rights reserved.
7
* $COPYRIGHT$
8
*
9
* Additional copyrights may follow
@@ -29,8 +30,7 @@ OBJ_CLASS_DECLARATION(mca_pml_yalla_convertor_t);
29
30
ptrdiff_t lb; \
31
\
32
if (opal_datatype_is_contiguous_memory_layout(&(_dtype)->super, _count)) { \
- ompi_datatype_type_size(_dtype, &size); \
33
- ompi_datatype_type_lb(_dtype, &lb); \
+ ompi_datatype_get_true_extent(_dtype, &lb, &size); \
34
(_req_base)->data_type = MXM_REQ_DATA_BUFFER; \
35
(_req_base)->data.buffer.ptr = (char *)_buf + lb; \
36
(_req_base)->data.buffer.length = size * (_count); \
0 commit comments