2016-11-22 15:03:20 -08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
|
|
|
|
* University Research and Technology
|
|
|
|
* Corporation. All rights reserved.
|
|
|
|
* Copyright (c) 2004-2005 The University of Tennessee and The University
|
|
|
|
* of Tennessee Research Foundation. All rights
|
|
|
|
* reserved.
|
|
|
|
* Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
|
|
|
|
* University of Stuttgart. All rights reserved.
|
|
|
|
* Copyright (c) 2004-2005 The Regents of the University of California.
|
|
|
|
* All rights reserved.
|
|
|
|
* Copyright (c) 2013 University of Houston. All rights reserved.
|
2018-06-13 14:51:29 +09:00
|
|
|
* Copyright (c) 2018 Research Organization for Information Science
|
|
|
|
* and Technology (RIST). All rights reserved.
|
2016-11-22 15:03:20 -08:00
|
|
|
* $COPYRIGHT$
|
|
|
|
*
|
|
|
|
* Additional copyrights may follow
|
|
|
|
*
|
|
|
|
* $HEADER$
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
#include "ompi_config.h"
|
|
|
|
#include "sharedfp_individual.h"
|
|
|
|
|
|
|
|
#include "mpi.h"
|
|
|
|
#include "ompi/constants.h"
|
|
|
|
#include "ompi/mca/sharedfp/sharedfp.h"
|
|
|
|
|
2018-06-18 14:34:05 -05:00
|
|
|
static int seek_counter=0;
|
|
|
|
|
2018-06-13 14:51:29 +09:00
|
|
|
int mca_sharedfp_individual_seek (ompio_file_t *fh,
|
2016-11-22 15:03:20 -08:00
|
|
|
OMPI_MPI_OFFSET_TYPE offset, int whence)
|
|
|
|
{
|
2018-06-18 14:34:05 -05:00
|
|
|
if ( 0 == seek_counter &&
|
|
|
|
0 == offset &&
|
|
|
|
MPI_SEEK_SET == whence ) {
|
|
|
|
/* This is occuring when setting the default file view. THat is ok.
|
|
|
|
** The component doesn't support however further seek operations.
|
|
|
|
*/
|
|
|
|
|
|
|
|
seek_counter++;
|
|
|
|
return OMPI_SUCCESS;
|
|
|
|
}
|
|
|
|
|
2016-11-22 15:03:20 -08:00
|
|
|
opal_output(0,"mca_sharedfp_individual_seek: NOT IMPLEMENTED\n");
|
|
|
|
return OMPI_ERROR;
|
|
|
|
}
|