-/* Copyright (c) 2010-2020. The SimGrid Team.
+/* Copyright (c) 2010-2021. The SimGrid Team.
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
int get_position_shared(MPI_Offset* offset) const;
int flags() const;
MPI_Comm comm() const;
+ std::string name() const override {return file_ ? std::string("MPI_File: ")+ std::string(file_->get_path()): std::string("MPI_File");}
+
int sync();
int seek(MPI_Offset offset, int whence);
int seek_shared(MPI_Offset offset, int whence);
int get_view(MPI_Offset* disp, MPI_Datatype* etype, MPI_Datatype* filetype, char* datarep) const;
MPI_Info info();
void set_info( MPI_Info info);
+ void set_size(int size);
static int read(MPI_File fh, void* buf, int count, const Datatype* datatype, MPI_Status* status);
static int read_shared(MPI_File fh, void* buf, int count, const Datatype* datatype, MPI_Status* status);
static int read_ordered(MPI_File fh, void* buf, int count, const Datatype* datatype, MPI_Status* status);
XBT_CDEBUG(smpi_pmpi, "my offsets to read : %lld:%lld, global min and max %lld:%lld", min_offset, max_offset, min,
max);
if (empty == 1) {
- status->count = 0;
+ if (status != MPI_STATUS_IGNORE)
+ status->count = 0;
return MPI_SUCCESS;
}
MPI_Offset total = max - min;