A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
implement MPI_File_get_type_extent, MPI_File_s/get_atomicity, MPI_File_get_byte_offset
[simgrid.git]
/
src
/
smpi
/
mpi
/
smpi_file.cpp
diff --git
a/src/smpi/mpi/smpi_file.cpp
b/src/smpi/mpi/smpi_file.cpp
index
b832510
..
9eac544
100644
(file)
--- a/
src/smpi/mpi/smpi_file.cpp
+++ b/
src/smpi/mpi/smpi_file.cpp
@@
-49,9
+49,12
@@
File::File(MPI_Comm comm, const char* filename, int amode, MPI_Info info) : comm
fullname.insert(0, mount);
}
}
fullname.insert(0, mount);
}
}
-
+ XBT_DEBUG("Opening %s", fullname.c_str());
file_ = simgrid::s4u::File::open(fullname, nullptr);
list_ = nullptr;
file_ = simgrid::s4u::File::open(fullname, nullptr);
list_ = nullptr;
+ disp_ = 0;
+ etype_ = MPI_BYTE;
+ atomicity_ = true;
if (comm_->rank() == 0) {
int size = comm_->size() + FP_SIZE;
list_ = new char[size];
if (comm_->rank() == 0) {
int size = comm_->size() + FP_SIZE;
list_ = new char[size];
@@
-299,6
+302,11
@@
int File::flags() const
return flags_;
}
return flags_;
}
+MPI_Datatype File::etype() const
+{
+ return etype_;
+}
+
int File::sync()
{
// no idea
int File::sync()
{
// no idea
@@
-344,4
+352,13
@@
File* File::f2c(int id)
{
return static_cast<File*>(F2C::f2c(id));
}
{
return static_cast<File*>(F2C::f2c(id));
}
+
+void File::set_atomicity(bool a){
+ atomicity_ = a;
+}
+
+bool File::get_atomicity(){
+ return atomicity_;
+}
+
} // namespace simgrid::smpi
} // namespace simgrid::smpi