Unverified Commit 7c540e52 authored by Scott Cyphers's avatar Scott Cyphers Committed by GitHub

Cyphers/from25 (#3545)

* Fix crash when NGRAPH_ENABLE_{VISUALIZE,SERIALIZE}_TRACING=1

* Initialization for kw (#3413)

* Fix sum reference to handle corner cases with +-inf (#3412)

* Fix sum reference to handle corner cases with +-inf

* Review comments, and try to make Windows happy

* Update GPU unit_test.manifest

* More template grindery, to make macOS happy

* Update jenkins-trigger.groovy (#3428)

* Cyphers/exec can create tensors (#3445)

* Add method to check if an Executable can create tensors

* Add a Backend check to see if Executable can create tensors

* Update per review comment

* style

* Possible fix so that backend does not keep holding on to the dummy ng_exec

* Separate dynamic loading from static linking (#3456)

* Separate dynamic loading from static linking

* Missed find_my_pathname

* Update jenkins-trigger.groovy (#3518)

* add rank id to trace file name (#3525)
parent 49a0ae55
......@@ -18,6 +18,7 @@
#include <sstream>
#include <string>
#include "distributed.hpp"
#include "event_tracing.hpp"
#include "nlohmann/json.hpp"
......@@ -42,7 +43,15 @@ void ngraph::Event::write_trace(const ngraph::Event& event)
if (!so_initialized)
{
// Open the file
s_event_log.open("ngraph_event_trace.json", ios_base::trunc);
std::string file_name = "ngraph_event_trace.json";
if (get_distributed_interface()->get_size() > 1)
{
auto rank = std::to_string(get_distributed_interface()->get_rank());
int num_zero = 3;
std::string prefix = std::string(num_zero - rank.length(), '0') + rank + "_";
file_name.insert(0, prefix);
}
s_event_log.open(file_name, ios_base::trunc);
s_event_log << "[\n";
so_initialized = true;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment