simgrid merge requestshttps://framagit.org/simgrid/simgrid/-/merge_requests2022-12-09T08:36:47Zhttps://framagit.org/simgrid/simgrid/-/merge_requests/122Draft: Make traces relative2022-12-09T08:36:47ZFabien ChaixDraft: Make traces relativeWhen using multi-file traces, it is not easy to copy those traces across computers (or folders) because generally absolute path are used.
More precisely, during the trace production, an index file is created, which lists all the files a...When using multi-file traces, it is not easy to copy those traces across computers (or folders) because generally absolute path are used.
More precisely, during the trace production, an index file is created, which lists all the files actually containing trace entries (one per rank). The path used in this list currently appends the path to the index file (provided as parameter to smpirun) with stuff. Hence, the path to the index file is copied into the list of trace files, which is not great IMHO.
This pull request trims the path of the index file during the writing of the trace files index (and insert a @ character instead to allow detection later on). When reading the trace, if the @ character is detected, the current path to the index file is prepended to the filenames in the list.