7.5.4. Compilation Options (dla_compiler Command Options)
--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.
- HETERO:FPGA
- 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
-
The default value depends on the device family:
- Arria® 10 - 265
- Agilex™ 3 - 350
- Agilex™ 5 - 350
- Agilex™ 7 - 500
- Cyclone® 10 GX - 265
- Stratix® 10 - 265
- Parsed As
- (int)
--ffolding-option Option
- Syntax
- --ffolding-option=<folding_option>
- Description
-
This parameter controls channel-folding optimization during inference. Folding changes the shape of the input feature tensor to increase computational efficiency on the FPGA.
For more details on folding, refer to Folding Input.
Channel folding can be applied by the following system components:- Host runtime software
- FPGA AI Suite IP:
- Dedicated layout transform module
- Convolution engine (in a limited capacity)
The <folding_option> parameter can take one of the following values: 0, 1, 2, or 3.- 0
Folding is applied neither externally nor by any FPGA AI Suite IP module.
- 1
Folding is performed by the runtime software on the host or by the FPGA AI Suite IP dedicated layout transform module if it is available.
This is the default option.
- 2
Folding performed by the following components:
- Runtime software on the host or by the FPGA AI Suite IP dedicated layout transform module if it is available.
- FPGA AI Suite convolution engine
- 3
Folding is preformed by the FPGA AI Suite IP convolution engine only. The FPGA AI Suite IP dedicated layout transform module is not used.
Choosing A Value for the <folding_option> Parameter
Consider the following criteria to choose a value for the <folding_option> parameter:- If your overlay architecture includes the full input layout transform module, use option 1 or 2 to maximize folding efficiency.
- If the full input layout transform module is not available, use option 0 or 3 to reduce preprocessing time in software.
- If you are using the lightweight input transform, you must use option 0 or 3.
- If you are unsure, use option 1. This option is recommended for most applications.
- Default Value
- 1
- 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)