VisionCpp
0.0.1
|
eval_global_neighbour function: More...
#include <evaluator.hpp>
eval_global_neighbour function:
is used to convert the static expression tree to the runtime the expression tree when it is not a root of an expression tree.
global operation evaluation
IsRoot | check whether or not this node should use the global memory as an output memory or a local memory. This is used to avoid the last local memory between assign and the immediate RHS expression in Assign. |
Offset | determines the starting location of the local output memory in the input tuple. |
Index | represent the distance of the local memory in the tuple for this node from the Offset. |
LC | determines the local memory column size. |
LR | determines the local memory row size. |
It is used to calculate the runtime evaluation of the specified operators for each node. The runtime Executor expression tree can be specialised per device through template parameters. Each primary node in an expression tree will have an equivalent node in the evaluation expression tree. An expression tree can be evaluated in three ways, depending on the type of operation it represents. A point operation node is evaluated through eval_point function; a neighbour operation node is evaluated by eval_neighbour; and a global operation node is evaluated by eval_global_neighbour. The specialisation of EvalExpr located on eval_expression folder. Template parameters
Expr | the expression node required to be executed. |
Loc | Coordinate of accessing a particular location |
params | the input/output memories eval_point function: point operation evaluation. |
cOffset | coordinate of accessing a particular location. |
t | tuple of the input/output memories |
IsRoot | check whether or not this node should use the global memory as an output memory or a local memory. This is used to avoid the last local memory between assign and the immediate RHS expression in Assign. |
Halo_Top | pass the top side value of halo for row of the local memory |
Halo_Left | pass the left side value of halo for column of the local memory |
Halo_Butt | pass the bottom side value of halo for row of the local memory |
Halo_Right | pass the right side value of halo for column of the local memory |
Offset | determines the starting location of the local output memory in the input tuple. |
Index | represent the distance of the local memory in the tuple for this node from the Offset. |
LC | determines the local memory column size. |
LR | determines the local memory row size. |
Definition at line 197 of file evaluator.hpp.