FPGA AI Suite: Compiler Reference Manual

ID 768972
Date 3/29/2024
Public

4.4. Compilation Options (dla_compiler Command Options)

--foutput-format Option

Syntax
--foutput-format=<exported_graph_format>
Description
This option specifies the format of the exported compiled graph file.
The <exported_graph_format> parameter can take one of the following values:
  • open_vino_hetero
    The export function is called from the OpenVINO™ hetero plugin. This option serializes and dumps the following outputs to a binary file:
    • OpenVINO™ input information
    • OpenVINO™ output information
    • FPGA AI Suite compiled results
  • dla_compiled_result

    Only the FPGA AI Suite compiled results are dumped to the binary file.

Default Value
open_vino_hetero
Parsed As
(string)

--fplugin Option

Syntax

--fplugin=<OpenVINO_plugin>

Description
This option specifies the plugin for the OpenVINO™ inference engine.
The <OpenVINO_plugin> parameter can take one of the following values:
  • HETERO:FPGA

    The OpenVINO™ HETERO plugin is used, and it tries to use the FPGA for all inference operations.

    If any layers are not supported by the FPGA device, then it issues an error.

    Use this plugin to ensure that the CPU support is not used for any layers.

  • HETERO:CPU

    The OpenVINO™ HETERO plugin is used, and all inference operations are allocated to the CPU.

    Use this plugin to test the data flow through dla_benchmark application when an FPGA device is not available.

  • HETERO:FPGA,CPU

    The OpenVINO™ HETERO plugin is used, and inference operations are allocated to the FPGA device where possible. The CPU is used for layers that are not supported on the FPGA device.

    The graph is partitioned into parts that run on the FPGA device and parts that must run on the CPU.

Default Value
HETERO
Parsed As
(string)

--fassumed-fmax-core Option

Syntax
--fassumed-fmax-core=<assumed f MAX >
Description
This option sets the fMAX used for calculating performance. Specify the <assumed f MAX > value in MHz.
Default Value
256
Parsed As
(int)

--ffolding-option Option

Syntax
--ffolding-option=<folding_option>
Description
This option sets the folding mode that the compiler applies to the first convolution of the network to be executed on the FPGA device.
The <folding_option> parameter can take one of the following values:
  • 0

    No folding performed externally or by the FPGA AI Suite IP.

  • 1

    Folding performed by the runtime software on the host or by the FPGA AI Suite IP dedicated layout transform module.

  • 2

    Folding performed by the runtime software on the host, with additional folding performed by the FPGA AI Suite IP convolution engine (that is, not by the FPGA AI Suite IP dedicated layout transform module).

  • 3

    All folding performed by the FPGA AI Suite IP convolution engine (that is, not by the FPGA AI Suite IP dedicated layout transform module).

For more information about folding in the FPGA AI Suite, refer to the "Input Folding" section in the "Input Feature Tensor In-Memory" topic of FPGA AI Suite IP Reference Manual .

Default Value
3
Parsed As
(int)

--fmin-subgraph-layers Option

Syntax
--fmin-subgraph-layers=<min_subgraph_layer>
Description
This option sets the minimum number of layers that are allowed in a subgraph that runs on FPGA. A subgraph with fewer layers than this value runs on CPU in the OpenVINO™ HETERO plugin.
Default Value
2
Parsed As
(int)