It's much easier this way to use adjustment files, and name collisions in a given code are not common.
If it's still needed, previous behaviour can be restored using "smpi/trace-call-use-absolute-path" option
simgrid::config::declare_flag<bool>("smpi/trace-call-location",
"Should filename and linenumber of MPI calls be traced?", false);
-
+ simgrid::config::declare_flag<bool>("smpi/trace-call-use-absolute-path",
+ "Should filenames for trace-call tracing be absolute or not?", false);
simgrid::config::declare_flag<int>(
"smpi/send-is-detached-thresh",
"Threshold of message size where MPI_Send stops behaving like MPI_Isend and becomes MPI_Ssend", 65536);
#include "src/internal_config.h"
#include "src/mc/mc_replay.hpp"
#include "xbt/config.hpp"
+#include "xbt/file.hpp"
#include "src/smpi/include/smpi_actor.hpp"
#include <unordered_map>
loc->previous_filename = loc->filename;
loc->previous_linenumber = loc->linenumber;
- loc->filename = file;
- loc->linenumber = line;
+ if(not simgrid::config::get_value<bool>("smpi/trace-call-use-absolute-path"))
+ loc->filename = simgrid::xbt::Path(file).get_base_name();
+ else
+ loc->filename = file;
+ loc->linenumber = line;
}
/** Required for Fortran bindings */