Developer Guide

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

ID 785441
Date 10/24/2024
Public
Document Table of Contents

Extracting the FPGA Device Image (.aocx) File from a Multiarchitecture Binary File

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.

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