advanced features in legion prof · advanced features in legion prof created date: 4/14/2017...
TRANSCRIPT
March 22, 2017 1http://legion.stanford.edu
WonchanLee
FeaturesinLegionProf
March 22, 2017 2http://legion.stanford.edu
URLString
Rememberswhichtimeperiodtheviewerwasshowing
March 22, 2017 3http://legion.stanford.edu
Usefultoshareselections ofinterestintimelines
URLString
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
March 22, 2017 5http://legion.stanford.edu
Search
Findmatchesonthenamesoftaskswithregex
KeyboardshortcutsS – StartanewsearchT – TogglesearchN – SwitchtothenextsearchP – SwitchtotheprevioussearchH – ShowthesearchhistoryC – Clearthesearchhistory
SearchqueryisalsoencodedinURLstring
March 22, 2017 6http://legion.stanford.edu
DependencyTracking
Showdependenciesofeachoperationinthetimeline
RequirebothLegionProfandLegionSpyoutputsLegionSpymightintroducesomeoverhead
Criticalpathanalysiswillbecomingupshortly!
March 22, 2017 7http://legion.stanford.edu
WonchanLee
MapperDSL
March 22, 2017 8http://legion.stanford.edu
WritingMappersisTedious
VerbosityintheC++API
DifferencesbetweenRegentandLegionRegionnamesvs.regionrequirementsFieldnamesvs.fieldIDsCompileroptimizationsthatgeneratenon-usertasks
March 22, 2017 9http://legion.stanford.edu
WritingMappersisTedious
VerbosityintheC++API
DifferencesbetweenRegentandLegionRegionnamesvs.regionrequirementsFieldnamesvs.fieldIDsCompileroptimizationsthatgeneratenon-usertasks
MapperisnotpartoftheRegentlanguage
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
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;
}
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
March 22, 2017 13http://legion.stanford.edu
CircuitExample
March 22, 2017 14http://legion.stanford.edu
CircuitExample
Selectorsareimplementedasadistributedstatemachine
March 22, 2017 15http://legion.stanford.edu
Plan
MakethelanguagefeaturecompleteCopyoperationsLayoutconstraintsforphysicalinstancesErrorhandling
StaticanalysistogeneratemappersforRegentprograms
OptimizeRegenttaskvariantsbasedonmappingpolicies