Constantin Fürst
11 months ago
1 changed files with 57 additions and 0 deletions
@ -0,0 +1,57 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||
|
<root xmlns:nsd="https://structorizer.fisch.lu" version="3.32-15" preRepeat="until " postFor="to" preReturn="return" postForIn="in" preWhile="while " output="OUTPUT" input="INPUT" preFor="for" preExit="exit" preLeave="leave" ignoreCase="true" preThrow="throw" preForIn="foreach" stepFor="by" namespace="" author="user" created="2024-01-18" changedby="user" changed="2024-01-18" origin="Structorizer 3.32-15" text=""Benchmark(node, node_dst, node_src, size, mode)"" comment="""" color="ffffff" type="program" style="nice"> |
||||
|
<children> |
||||
|
<instruction text=""numa_run_on_node(node)"" comment="""" color="ffffff" rotated="0" disabled="0"></instruction> |
||||
|
<instruction text=""src <- numa_alloc_onnode(size, node_src)","dst <- numa_alloc_onnode(size, node_dst)"" comment="""" color="ffffff" rotated="0" disabled="0"></instruction> |
||||
|
<instruction text=""memset(src, 0x0, size)","memset(dst, 0x0, size)"" comment="""" color="ffffff" rotated="0" disabled="0"></instruction> |
||||
|
<instruction text=""begin time total"" comment="""" color="ffff80" rotated="0" disabled="0"></instruction> |
||||
|
<for text=""for amount of repetitions"" comment="""" counterVar="dummy_counter" startValue="amount of repetitions" stepConst="1" style="FREETEXT" color="ffffff" disabled="0"> |
||||
|
<qFor> |
||||
|
<instruction text=""synchronize with other threads"" comment="""" color="ffffff" rotated="0" disabled="0"></instruction> |
||||
|
<case text=""mode","single submit","multi submit","batch submit","%"" comment="""" color="ffffff" disabled="0"> |
||||
|
<qCase> |
||||
|
<instruction text=""begin time submit"" comment="""" color="ffff80" rotated="0" disabled="0"></instruction> |
||||
|
<instruction text=""handler <- dml::submit(dml::memcopy, src, dst, size)"" comment="""" color="ffffff" rotated="0" disabled="0"></instruction> |
||||
|
<instruction text=""end time submit, begin time complete"" comment="""" color="ffff80" rotated="0" disabled="0"></instruction> |
||||
|
<instruction text=""result <- handler.get()"" comment="""" color="ffffff" rotated="0" disabled="0"></instruction> |
||||
|
<instruction text=""end time complete"" comment="""" color="ffff80" rotated="0" disabled="0"></instruction> |
||||
|
<instruction text=""assert result.status == dml::ok"" comment="""" color="ffffff" rotated="0" disabled="0"></instruction> |
||||
|
</qCase> |
||||
|
<qCase> |
||||
|
<instruction text=""begin time submit"" comment="""" color="ffff80" rotated="0" disabled="0"></instruction> |
||||
|
<for text=""for batchsize"" comment="""" counterVar="dummy_counter" startValue="batchsize" stepConst="1" style="FREETEXT" color="ffffff" disabled="0"> |
||||
|
<qFor> |
||||
|
<instruction text=""handlers <- append dml::submit(dml::memcopy, src, dst, size)"" comment="""" color="ffffff" rotated="0" disabled="0"></instruction> |
||||
|
</qFor> |
||||
|
</for> |
||||
|
<instruction text=""end time submit, begin time complete"" comment="""" color="ffff80" rotated="0" disabled="0"></instruction> |
||||
|
<for text=""for handler in handlers"" comment="""" counterVar="§FOR§ handler" startValue="" stepConst="" style="FREETEXT" color="ffffff" disabled="0"> |
||||
|
<qFor> |
||||
|
<instruction text=""result <- handler.get()"" comment="""" color="ffffff" rotated="0" disabled="0"></instruction> |
||||
|
<instruction text=""assert result.status == dml::ok"" comment="""" color="ffffff" rotated="0" disabled="0"></instruction> |
||||
|
</qFor> |
||||
|
</for> |
||||
|
<instruction text=""end time complete"" comment="""" color="ffff80" rotated="0" disabled="0"></instruction> |
||||
|
</qCase> |
||||
|
<qCase> |
||||
|
<instruction text=""begin time submit"" comment="""" color="ffff80" rotated="0" disabled="0"></instruction> |
||||
|
<instruction text=""sequence <- dml::sequence(batchsize)"" comment="""" color="ffffff" rotated="0" disabled="0"></instruction> |
||||
|
<for text=""for batchsize"" comment="""" counterVar="dummy_counter" startValue="batchsize" stepConst="1" style="FREETEXT" color="ffffff" disabled="0"> |
||||
|
<qFor> |
||||
|
<instruction text=""sequence.add(dml::memcopy, src, dst, size)"" comment="""" color="ffffff" rotated="0" disabled="0"></instruction> |
||||
|
</qFor> |
||||
|
</for> |
||||
|
<instruction text=""handler <- dml::submit(dml::batch, sequence)"" comment="""" color="ffffff" rotated="0" disabled="0"></instruction> |
||||
|
<instruction text=""end time submit, begin time complete"" comment="""" color="ffff80" rotated="0" disabled="0"></instruction> |
||||
|
<instruction text=""result <- handler.get()"" comment="""" color="ffffff" rotated="0" disabled="0"></instruction> |
||||
|
<instruction text=""end time complete"" comment="""" color="ffff80" rotated="0" disabled="0"></instruction> |
||||
|
<instruction text=""assert result.status == dml::ok"" comment="""" color="ffffff" rotated="0" disabled="0"></instruction> |
||||
|
</qCase> |
||||
|
<qCase color="ffffff"> |
||||
|
</qCase> |
||||
|
</case> |
||||
|
</qFor> |
||||
|
</for> |
||||
|
<instruction text=""end time total"" comment="""" color="ffff80" rotated="0" disabled="0"></instruction> |
||||
|
</children> |
||||
|
</root> |
Write
Preview
Loading…
Cancel
Save
Reference in new issue