advanced features in legion prof · advanced features in legion prof created date: 4/14/2017...

15
March 22, 2017 1 http://legion.stanford.edu Wonchan Lee Features in Legion Prof

Upload: others

Post on 23-Aug-2020

0 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Advanced Features in Legion Prof · Advanced Features in Legion Prof Created Date: 4/14/2017 3:52:07 AM

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

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

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

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

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

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

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

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

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

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

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

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

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

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

March 22, 2017 15http://legion.stanford.edu

Plan

MakethelanguagefeaturecompleteCopyoperationsLayoutconstraintsforphysicalinstancesErrorhandling

StaticanalysistogeneratemappersforRegentprograms

OptimizeRegenttaskvariantsbasedonmappingpolicies