Developer Guide

Intel oneAPI FPGA Handbook

ID 785441
Date 2/07/2024
Public

A newer version of this document is available. Customers should click here to go to the newest version.

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 from your kernel as part of a BSP, 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.