Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Kill an external dependency that was for stateful MC
[simgrid.git] / src / smpi / include / smpi_file.hpp
index f13d76f7fb699dc49159474ae488f58762bc2b78..41c20d9c3d765c6e3bbe5ee1d25b2053608ea3ff 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2010-2022. The SimGrid Team.
+/* Copyright (c) 2010-2023. The SimGrid Team.
  * All rights reserved.                                                     */
 
 /* This program is free software; you can redistribute it and/or modify it
@@ -44,7 +44,7 @@ class File : public F2C{
   int flags() const;
   MPI_Datatype etype() 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");}
+  std::string name() const override { return file_ ? "MPI_File: " + std::string(file_->get_path()) : "MPI_File"; }
 
   int sync();
   int seek(MPI_Offset offset, int whence);
@@ -67,7 +67,7 @@ class File : public F2C{
   MPI_Errhandler errhandler();
   void set_errhandler( MPI_Errhandler errhandler);
   void set_atomicity(bool a);
-  bool get_atomicity();
+  bool get_atomicity() const;
   static File* f2c(int id);
 };
 
@@ -114,7 +114,7 @@ int File::op_all(void* buf, int count, const Datatype* datatype, MPI_Status* sta
       status->count = 0;
     return MPI_SUCCESS;
   }
-  XBT_CDEBUG(smpi_io, "min:max : %lld:%lld, tot %lld contig %d", min, max, tot, (datatype->flags() & DT_FLAG_CONTIGUOUS));
+  XBT_CDEBUG(smpi_io, "min:max : %lld:%lld, tot %lld contig %u", min, max, tot, (datatype->flags() & DT_FLAG_CONTIGUOUS));
   if ( size==1 || (max - min == tot && (datatype->flags() & DT_FLAG_CONTIGUOUS))) {
     // contiguous. Just have each proc perform its read
     if (status != MPI_STATUS_IGNORE)