Skip to content

Commit 56f37d2

Browse files
authored
Merge pull request #9305 from awlauria/fix_hcoll_segv_v4.1.x
v4.1.x: coll/hcoll: fixes dtypes mapping
2 parents 2da22cb + 44f8819 commit 56f37d2

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
@@ -33,7 +33,7 @@ extern mca_coll_hcoll_dtype_t zero_dte_mapping;
3333
total 15 types
3434
*/
3535

36-
static dte_data_representation_t* ompi_datatype_2_dte_data_rep[OMPI_DATATYPE_MAX_PREDEFINED] = {
36+
static dte_data_representation_t* ompi_datatype_2_dte_data_rep[OPAL_DATATYPE_MAX_PREDEFINED] = {
3737
&DTE_ZERO, /*OPAL_DATATYPE_LOOP 0 */
3838
&DTE_ZERO, /*OPAL_DATATYPE_END_LOOP 1 */
3939
#if defined(DTE_LB)
@@ -86,7 +86,17 @@ static dte_data_representation_t* ompi_datatype_2_dte_data_rep[OMPI_DATATYPE_MAX
8686
#else
8787
&DTE_ZERO,
8888
#endif
89-
&DTE_ZERO /*OPAL_DATATYPE_UNAVAILABLE 24 */
89+
#if SIZEOF_LONG == 4
90+
&DTE_UINT32,
91+
#else
92+
&DTE_UINT64, /*OPAL_DATATYPE_LONG 24 */
93+
#endif
94+
#if SIZEOF_UNSIGNED_LONG == 4
95+
&DTE_UINT32,
96+
#else
97+
&DTE_UINT64, /*OPAL_DATATYPE_UNSIGNED_LONG 25 */
98+
#endif
99+
&DTE_ZERO /*OPAL_DATATYPE_UNAVAILABLE 26 */
90100
};
91101

92102
enum {

0 commit comments

Comments
 (0)