• 04/03/2020
  • Public Content
Contents

Customizing Behavior of the Advanced Tiling Kernels

In addition to the function callbacks passed into
vxAddAdvancedTilingKernelIntel
upon kernel registration, there are also a number of kernel attributes that can be set with
vxSetKernelAttribute
.
NOTE:All the attributes described in this section must be set before call to the
vxFinalizeKernel
.
For example, the family of the attributes, defined by
vx_node_attribute_tiling_intel_e
enumeration:
  • VX_KERNEL_SERIAL_TYPE_INTEL
    which is used to indicate that individual output tiles of this kernel must be produced “in order”.
    The specific order is defined by providing a parameter of type
    vx_serial_type_intel_e
    :
    vx_serial_type_intel_e v = <specific order, below>; vxSetKernelAttribute(k,VX_KERNEL_SERIAL_TYPE_INTEL,&v,sizeof(v));
    Possible flavors of execution order are following:
  • VX_SERIAL_LEFT_TO_RIGHT_TOP_TO_BOTTOM_INTEL
    For a given output tile to be produced, the tile to the “left” in the X direction must be completed first. If the given output tile’s x coordinate is 0, the “right” most tile on the previous row of tiles must be completed. The tile with x,y coordinates (0,0) is the only output tile without dependency.
  • VX_SERIAL_LEFTTOP_TO_RIGHTBOTTOM_INTEL
    For a given output tile to be produced, the tile to the “left” in the X direction must be completed, the tile “above” in the Y direction must be completed, and the “upper left” tile must be completed. If the given output tile’s x coordinate is 0, the tile is only dependent on the “above” tile. If the given output tile’s y coordinate is 0, the tile is only dependent on the “left” tile. The tile with x,y coordinates (0,0) is the only output tile without dependency.

Product and Performance Information

1

Performance varies by use, configuration and other factors. Learn more at www.Intel.com/PerformanceIndex.