Developer Guide

Intel oneAPI DPC++/C++ Compiler Handbook for Intel FPGAs

ID 785441
Date 5/08/2024
Public
Document Table of Contents

Extracting the FPGA Hardware Configuration (.aocx) File from a Multiarchitecture Binary File

If you want to distribute your FPGA hardware configuration as part of a BSP to enable board initialization with the board variant supported by your kernel, extract the configuration from your multiarchitecture binary file (SYCL* executable).

RESTRICTION:
You can extract .aocx files only from multiarchitecture binary files compiled for a single FPGA target device.

To extract the configuration file, use the clang-offload-extract command:

  1. Determine the path to the clang-offload-extract command with the following command:
    icpx --print-prog-name=clang-offload-extract

    This command returns the full path to the clang-offload-extract command.

  2. Extract the FPGA hardware configuration file from the multiarchitecture binary with the following command:
    <full_command_path>/clang-offload-extract --output <output_file_name>.aocx <sycl_executable>

    Where:

    • <full_command_path> is the full path to the clang-offload-extract command that you determined earlier.
    • <output_file_name> is the file name that you want to give to the FPGA hardware configuration file.
    • <sycl_executable> is the file name of the multiarchitecture binary file that contains the FPGA hardware configuration file that you want to extract.