Skip to content

coll/hcoll: fixes dtypes mapping #8876

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 17, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions ompi/mca/coll/hcoll/coll_hcoll_dtypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ extern mca_coll_hcoll_dtype_t zero_dte_mapping;
total 15 types
*/

static dte_data_representation_t* ompi_datatype_2_dte_data_rep[OMPI_DATATYPE_MAX_PREDEFINED] = {
static dte_data_representation_t* ompi_datatype_2_dte_data_rep[OPAL_DATATYPE_MAX_PREDEFINED] = {
&DTE_ZERO, /*OPAL_DATATYPE_LOOP 0 */
&DTE_ZERO, /*OPAL_DATATYPE_END_LOOP 1 */
#if defined(DTE_LB)
Expand Down Expand Up @@ -92,7 +92,17 @@ static dte_data_representation_t* ompi_datatype_2_dte_data_rep[OMPI_DATATYPE_MAX
#else
&DTE_ZERO,
#endif
&DTE_ZERO /*OPAL_DATATYPE_UNAVAILABLE 25 */
#if SIZEOF_LONG == 4
&DTE_UINT32,
#else
&DTE_UINT64, /*OPAL_DATATYPE_LONG 25 */
#endif
#if SIZEOF_UNSIGNED_LONG == 4
&DTE_UINT32,
#else
&DTE_UINT64, /*OPAL_DATATYPE_UNSIGNED_LONG 26 */
#endif
&DTE_ZERO /*OPAL_DATATYPE_UNAVAILABLE 27 */
};

enum {
Expand Down