Skip to content

Commit c301bab

Browse files
committed
ddt: fix support of MPI_COMBINER_RESIZED in __ompi_datatype_create_from_args
Thanks James Ramsey for the report (cherry picked from commit open-mpi/ompi@69ba2a9)
1 parent babeac7 commit c301bab

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ompi/datatype/ompi_datatype_args.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* Copyright (c) 2009 Oak Ridge National Labs. All rights reserved.
1414
* Copyright (c) 2013 Los Alamos National Security, LLC. All rights
1515
* reserved.
16-
* Copyright (c) 2015 Research Organization for Information Science
16+
* Copyright (c) 2015-2016 Research Organization for Information Science
1717
* and Technology (RIST). All rights reserved.
1818
* $COPYRIGHT$
1919
*
@@ -749,7 +749,8 @@ static ompi_datatype_t* __ompi_datatype_create_from_args( int32_t* i, MPI_Aint*
749749
break;
750750
/******************************************************************/
751751
case MPI_COMBINER_RESIZED:
752-
/*ompi_datatype_set_args( datatype, 0, NULL, 2, a, 1, d, MPI_COMBINER_RESIZED );*/
752+
ompi_datatype_create_resized(d[0], a[0], a[1], &datatype);
753+
ompi_datatype_set_args( datatype, 0, NULL, 2, a, 1, d, MPI_COMBINER_RESIZED );
753754
break;
754755
/******************************************************************/
755756
case MPI_COMBINER_HINDEXED_BLOCK:

0 commit comments

Comments
 (0)