![Page 1: Advanced Features in Legion Prof · Advanced Features in Legion Prof Created Date: 4/14/2017 3:52:07 AM](https://reader035.vdocument.in/reader035/viewer/2022071019/5fd2f5b199c8f234803fba5b/html5/thumbnails/1.jpg)
March 22, 2017 1http://legion.stanford.edu
WonchanLee
FeaturesinLegionProf
![Page 2: Advanced Features in Legion Prof · Advanced Features in Legion Prof Created Date: 4/14/2017 3:52:07 AM](https://reader035.vdocument.in/reader035/viewer/2022071019/5fd2f5b199c8f234803fba5b/html5/thumbnails/2.jpg)
March 22, 2017 2http://legion.stanford.edu
URLString
Rememberswhichtimeperiodtheviewerwasshowing
![Page 3: Advanced Features in Legion Prof · Advanced Features in Legion Prof Created Date: 4/14/2017 3:52:07 AM](https://reader035.vdocument.in/reader035/viewer/2022071019/5fd2f5b199c8f234803fba5b/html5/thumbnails/3.jpg)
March 22, 2017 3http://legion.stanford.edu
Usefultoshareselections ofinterestintimelines
URLString
![Page 4: Advanced Features in Legion Prof · Advanced Features in Legion Prof Created Date: 4/14/2017 3:52:07 AM](https://reader035.vdocument.in/reader035/viewer/2022071019/5fd2f5b199c8f234803fba5b/html5/thumbnails/4.jpg)
March 22, 2017 4http://legion.stanford.edu
Zoom
KeyboardshortcutsCtrl-Alt- or 1 – Zoomout(y-axis)Ctrl-Alt+or 2 – Zoomin(y-axis)Ctrl- or 3 – Zoomout(x-axis)Ctrl+or 4 – Zoomin(x-axis)Ctrl0or 0 – Resetzoom(x-axis)
Drag-selecttozoominforaparticularrangeWillshowonlythetimespanifCMDispressedCanbeundonewithU
![Page 5: Advanced Features in Legion Prof · Advanced Features in Legion Prof Created Date: 4/14/2017 3:52:07 AM](https://reader035.vdocument.in/reader035/viewer/2022071019/5fd2f5b199c8f234803fba5b/html5/thumbnails/5.jpg)
March 22, 2017 5http://legion.stanford.edu
Search
Findmatchesonthenamesoftaskswithregex
KeyboardshortcutsS – StartanewsearchT – TogglesearchN – SwitchtothenextsearchP – SwitchtotheprevioussearchH – ShowthesearchhistoryC – Clearthesearchhistory
SearchqueryisalsoencodedinURLstring
![Page 6: Advanced Features in Legion Prof · Advanced Features in Legion Prof Created Date: 4/14/2017 3:52:07 AM](https://reader035.vdocument.in/reader035/viewer/2022071019/5fd2f5b199c8f234803fba5b/html5/thumbnails/6.jpg)
March 22, 2017 6http://legion.stanford.edu
DependencyTracking
Showdependenciesofeachoperationinthetimeline
RequirebothLegionProfandLegionSpyoutputsLegionSpymightintroducesomeoverhead
Criticalpathanalysiswillbecomingupshortly!
![Page 7: Advanced Features in Legion Prof · Advanced Features in Legion Prof Created Date: 4/14/2017 3:52:07 AM](https://reader035.vdocument.in/reader035/viewer/2022071019/5fd2f5b199c8f234803fba5b/html5/thumbnails/7.jpg)
March 22, 2017 7http://legion.stanford.edu
WonchanLee
MapperDSL
![Page 8: Advanced Features in Legion Prof · Advanced Features in Legion Prof Created Date: 4/14/2017 3:52:07 AM](https://reader035.vdocument.in/reader035/viewer/2022071019/5fd2f5b199c8f234803fba5b/html5/thumbnails/8.jpg)
March 22, 2017 8http://legion.stanford.edu
WritingMappersisTedious
VerbosityintheC++API
DifferencesbetweenRegentandLegionRegionnamesvs.regionrequirementsFieldnamesvs.fieldIDsCompileroptimizationsthatgeneratenon-usertasks
![Page 9: Advanced Features in Legion Prof · Advanced Features in Legion Prof Created Date: 4/14/2017 3:52:07 AM](https://reader035.vdocument.in/reader035/viewer/2022071019/5fd2f5b199c8f234803fba5b/html5/thumbnails/9.jpg)
March 22, 2017 9http://legion.stanford.edu
WritingMappersisTedious
VerbosityintheC++API
DifferencesbetweenRegentandLegionRegionnamesvs.regionrequirementsFieldnamesvs.fieldIDsCompileroptimizationsthatgeneratenon-usertasks
MapperisnotpartoftheRegentlanguage
![Page 10: Advanced Features in Legion Prof · Advanced Features in Legion Prof Created Date: 4/14/2017 3:52:07 AM](https://reader035.vdocument.in/reader035/viewer/2022071019/5fd2f5b199c8f234803fba5b/html5/thumbnails/10.jpg)
March 22, 2017 10http://legion.stanford.edu
CSS-likesyntax
Bishop:AHigh-levelMapperDSL
<html><body><p id="block1">Bigger</p>
<p id="block2">Smaller</p></body>
</html>
p#block1 {font-size: 30pt;
}
p#block2 {font-size: 10pt;
}
HTML CSS
![Page 11: Advanced Features in Legion Prof · Advanced Features in Legion Prof Created Date: 4/14/2017 3:52:07 AM](https://reader035.vdocument.in/reader035/viewer/2022071019/5fd2f5b199c8f234803fba5b/html5/thumbnails/11.jpg)
March 22, 2017 11http://legion.stanford.edu
CSS-likesyntax
Bishop:AHigh-levelMapperDSL
task child(r : region(...))...
end
task parent(r : region(...))child(r)
end
Regent Bishop
task#parent {target-kind: x86;
}
task#child {target-kind: cuda;
}
task#child region#r {target-kind: fbmem;
}
![Page 12: Advanced Features in Legion Prof · Advanced Features in Legion Prof Created Date: 4/14/2017 3:52:07 AM](https://reader035.vdocument.in/reader035/viewer/2022071019/5fd2f5b199c8f234803fba5b/html5/thumbnails/12.jpg)
March 22, 2017 12http://legion.stanford.edu
CSS-likesyntax
Keeptheseparationbetweendescriptionandexecution
Bishop:AHigh-levelMapperDSL
task child(r : region(...))...
end
task parent(r : region(...))child(r)
end
task#parent {target-kind: x86;
}
task#child {target-kind: cuda;
}
task#child region#r {target-kind: fbmem;
}
Regent Bishop
![Page 13: Advanced Features in Legion Prof · Advanced Features in Legion Prof Created Date: 4/14/2017 3:52:07 AM](https://reader035.vdocument.in/reader035/viewer/2022071019/5fd2f5b199c8f234803fba5b/html5/thumbnails/13.jpg)
March 22, 2017 13http://legion.stanford.edu
CircuitExample
![Page 14: Advanced Features in Legion Prof · Advanced Features in Legion Prof Created Date: 4/14/2017 3:52:07 AM](https://reader035.vdocument.in/reader035/viewer/2022071019/5fd2f5b199c8f234803fba5b/html5/thumbnails/14.jpg)
March 22, 2017 14http://legion.stanford.edu
CircuitExample
Selectorsareimplementedasadistributedstatemachine
![Page 15: Advanced Features in Legion Prof · Advanced Features in Legion Prof Created Date: 4/14/2017 3:52:07 AM](https://reader035.vdocument.in/reader035/viewer/2022071019/5fd2f5b199c8f234803fba5b/html5/thumbnails/15.jpg)
March 22, 2017 15http://legion.stanford.edu
Plan
MakethelanguagefeaturecompleteCopyoperationsLayoutconstraintsforphysicalinstancesErrorhandling
StaticanalysistogeneratemappersforRegentprograms
OptimizeRegenttaskvariantsbasedonmappingpolicies