Skip to content

Commit 13c8d22

Browse files
author
Valentin Petrov
committed
coll/hcoll: fixes dtypes mapping
Signed-off-by: Valentin Petrov <[email protected]>
1 parent 02b2010 commit 13c8d22

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

ompi/mca/coll/hcoll/coll_hcoll_dtypes.h

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ extern mca_coll_hcoll_dtype_t zero_dte_mapping;
3434
total 15 types
3535
*/
3636

37-
static dte_data_representation_t* ompi_datatype_2_dte_data_rep[OMPI_DATATYPE_MAX_PREDEFINED] = {
37+
static dte_data_representation_t* ompi_datatype_2_dte_data_rep[OPAL_DATATYPE_MAX_PREDEFINED] = {
3838
&DTE_ZERO, /*OPAL_DATATYPE_LOOP 0 */
3939
&DTE_ZERO, /*OPAL_DATATYPE_END_LOOP 1 */
4040
#if defined(DTE_LB)
@@ -92,7 +92,17 @@ static dte_data_representation_t* ompi_datatype_2_dte_data_rep[OMPI_DATATYPE_MAX
9292
#else
9393
&DTE_ZERO,
9494
#endif
95-
&DTE_ZERO /*OPAL_DATATYPE_UNAVAILABLE 25 */
95+
#if SIZEOF_LONG == 4
96+
&DTE_UINT32,
97+
#else
98+
&DTE_UINT64, /*OPAL_DATATYPE_LONG 25 */
99+
#endif
100+
#if SIZEOF_UNSIGNED_LONG == 4
101+
&DTE_UINT32,
102+
#else
103+
&DTE_UINT64, /*OPAL_DATATYPE_UNSIGNED_LONG 26 */
104+
#endif
105+
&DTE_ZERO /*OPAL_DATATYPE_UNAVAILABLE 27 */
96106
};
97107

98108
enum {

0 commit comments

Comments
 (0)