Merge pull request #16091 from dkurt:png_to_dot

This commit is contained in:
Alexander Alekhin 2019-12-11 14:01:39 +00:00
commit b8ef2036b0
3 changed files with 19 additions and 18 deletions

View File

@ -18,7 +18,25 @@ compilation).
Kernel-implementation hierarchy may look like:
![Kernel API/implementation hierarchy example](pics/kernel_hierarchy.png)
@dot Kernel API/implementation hierarchy example
digraph {
rankdir=BT;
node [shape=record];
ki_a [label="{<f0> interface\nA}"];
ki_b [label="{<f0> interface\nB}"];
{rank=same; ki_a ki_b};
"CPU::A" -> ki_a [dir="forward"];
"OpenCL::A" -> ki_a [dir="forward"];
"Halide::A" -> ki_a [dir="forward"];
"CPU::B" -> ki_b [dir="forward"];
"OpenCL::B" -> ki_b [dir="forward"];
"Halide::B" -> ki_b [dir="forward"];
}
@enddot
A pipeline itself then can be expressed only in terms of `A`, `B`, and
so on, and choosing which implementation to use in execution becomes

View File

@ -1,17 +0,0 @@
digraph {
rankdir=BT;
node [shape=record];
ki_a [label="{<f0> interface\nA}"];
ki_b [label="{<f0> interface\nB}"];
{rank=same; ki_a ki_b};
"CPU::A" -> ki_a [dir="forward"];
"OpenCL::A" -> ki_a [dir="forward"];
"Halide::A" -> ki_a [dir="forward"];
"CPU::B" -> ki_b [dir="forward"];
"OpenCL::B" -> ki_b [dir="forward"];
"Halide::B" -> ki_b [dir="forward"];
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.6 KiB