Skip to content

Commit 1589278

Browse files
committed
io/ompio: implements a register_datarep stub function.
Thanks Eric Chamberland for the report. (bits backported from open-mpi/ompi@fe351f6)
1 parent 6d158a1 commit 1589278

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

ompi/mca/io/ompio/io_ompio_component.c

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
* Copyright (c) 2004-2005 The Regents of the University of California.
1111
* All rights reserved.
1212
* Copyright (c) 2008-2011 University of Houston. All rights reserved.
13+
* Copyright (c) 2016 Research Organization for Information Science
14+
* and Technology (RIST). All rights reserved.
1315
* $COPYRIGHT$
1416
*
1517
* Additional copyrights may follow
@@ -55,13 +57,13 @@ static int delete_select(char *filename, struct ompi_info_t *info,
5557
struct mca_io_base_delete_t *private_data);
5658
/*
5759
static int io_progress(void);
60+
*/
5861

5962
static int register_datarep(char *,
6063
MPI_Datarep_conversion_function*,
6164
MPI_Datarep_conversion_function*,
6265
MPI_Datarep_extent_function*,
6366
void*);
64-
*/
6567

6668
/*
6769
* Private variables
@@ -120,7 +122,7 @@ mca_io_base_component_2_0_0_t mca_io_ompio_component = {
120122
NULL, /* delete_unquery */
121123
delete_select, /* delete_select */
122124

123-
NULL /* io_register_datarep */
125+
register_datarep, /* register_datarep */
124126
};
125127

126128
static int register_component(void)
@@ -296,3 +298,12 @@ static int io_progress (void)
296298
return OMPI_SUCCESS;
297299
}
298300
*/
301+
302+
static int register_datarep(char * datarep,
303+
MPI_Datarep_conversion_function* read_fn,
304+
MPI_Datarep_conversion_function* write_fn,
305+
MPI_Datarep_extent_function* extent_fn,
306+
void* state)
307+
{
308+
return OMPI_ERROR;
309+
}

0 commit comments

Comments
 (0)