Skip to content

Commit

Permalink
Realm: Adding support for Legion Spy
Browse files Browse the repository at this point in the history
Check README.md file for how to use Legion spy.
Legion spy helps to create events graph for debugging.
Add OCR_MEM in Legion spy script.

Change-Id: Iaf65a388f61c879f6fc77cdc40314c1ea7dc2df8
  • Loading branch information
srirajpaul committed Feb 23, 2017
1 parent f1b2256 commit 23470ea
Show file tree
Hide file tree
Showing 3 changed files with 3,587 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hll/legion-realm/patch/runtime/realm/ocr/ocr_event_impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,9 @@ namespace Realm {
/*static*/ Event OCREventImpl::create_ocrevent(void)
{
Event e = OCREventImpl::ocr_event_impl.convert<Event>();
e.gen = 0;
ocrEventCreate(&e.evt_guid, OCR_EVENT_STICKY_T, EVT_PROP_NONE);
e.id = GUIDA(e.evt_guid);
return e;
}

Expand Down
12 changes: 12 additions & 0 deletions hll/legion-realm/patch/runtime/realm/runtime_impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -523,6 +523,18 @@ namespace Realm {
LegionRuntime::Arrays::Mapping<3,1>::register_mapping<LegionRuntime::Arrays::FortranArrayLinearization<3> >();
LegionRuntime::Arrays::Mapping<1,1>::register_mapping<LegionRuntime::Arrays::Translation<1> >();

// new command-line parsers will work from a vector<string> representation of the
// command line
std::vector<std::string> cmdline;
if(*argc > 1) {
cmdline.resize(*argc - 1);
for(int i = 1; i < *argc; i++)
cmdline[i - 1] = (*argv)[i];
}

// very first thing - let the logger initialization happen
Logger::configure_from_cmdline(cmdline);

DetailedTimer::init_timers();

OCREventImpl::static_init();
Expand Down
Loading

0 comments on commit 23470ea

Please sign in to comment.