1
1
openmpi/ompi/mca/fs/ime/fs_ime_file_sync.c
Gaëtan Bossu ccc96efc2e DDN's Infinite Memory Engine support for OMPIO
Changes made:
 - Create a new fs component for IME
 - Create a new fbtl component for IME
 - Modify the close function of OMPIO to finalize IME if necessary

Signed-off-by: Gaëtan Bossu <gbossu@ddn.com>
Signed-off-by: Sylvain Didelot <sdidelot@ddn.com>
2018-08-16 11:45:47 +02:00

33 строки
525 B
C

/*
* Copyright (c) 2018 DataDirect Networks. All rights reserved.
* $COPYRIGHT$
*
* Additional copyrights may follow
*
* $HEADER$
*/
#include "ime_native.h"
#include "ompi_config.h"
#include "fs_ime.h"
#include "mpi.h"
#include "ompi/constants.h"
#include "ompi/mca/fs/fs.h"
int mca_fs_ime_file_sync (ompio_file_t *fh)
{
int ret;
/* reset errno */
errno = 0;
ret = ime_native_fsync(fh->fd);
if (ret != 0) {
return mca_fs_ime_get_mpi_err(errno);
}
return OMPI_SUCCESS;
}