Intel® FPGA RTE for OpenCL™ Pro Edition: 入门指南

ID 683173
日期 3/28/2022
Public
文档目录

2.5. 安装FPGA板级

在对FPGA加速器板级或者SoC器件创建OpenCL™应用程序之前,您必须首先下载并安装Intel Reference Platform或者从您的板级供应商处下载并安装Custom Platform。大多数Custom Platform安装程序要求管理员权限。

若要将板级安装到Windows主机系统,需要调用 aocl install <path_to_customplatform> 实用程序命令。

以下步骤概述了板级的安装过程。某些Custom Platform需要额外的安装任务。有关板级安装的详细信息,请查阅板级供应商提供的相关文档。

  1. 按照板级供应商的说明将FPGA板级连接到系统。
  2. 从板级供应商的网站上下载您的FPGA板级的Custom Platform。
    注: 从20.3版本开始,Windows OpenCL BSP的支持不再继续。请使用FPGA Software Download Center上的20.2或更早版本的OpenCL BSP作为参考。如果您想移植OpenCL BSP到更新的版本,那么请按照Intel FPGA SDK for OpenCL documentation下的Reference Platform Porting Guides中提供的建议步骤进行操作。
  3. 在您自己的文件夹(即,不是系统文件夹)中安装Custom Platform。

    您可以使用aocl install实用程序在同一系统上同时安装多个Custom Platform。Custom Platform子目录包含board_env.xml文件。

    在一个具有多个Custom Platform的系统中,要确保主机程序使用FPGA Client Driver (FCD)来发现板级,而不是直接链接到Custom Platform的存储器映射器件(MMD)库。如果FCD对于Custom Platform进行了正确地设置,那么FCD在运行时会找到所有已安装的板级。

  4. 将Custom Platform库的路径(例如,板级支持包的MMD库的路径类似于<path_to_customplatform>/windows64/bin)添加到PATH环境变量设置中。

    关于设置环境变量和运行init_opencl脚本的信息,请参考设置 Intel® FPGA RTE for OpenCL™ Pro Edition用户环境变量 部分。

  5. 在命令提示符处调用命令 aocl install <path_to_customplatform>
    调用 aocl install <path_to_customplatform> 将安装FCD和板级驱动程序,板级驱动程序支持主机应用程序与硬件内核程序之间的通信。
    切记:
  6. 通过调用 aocl diagnose 命令查询安装在机器中的FPGA器件列表。
    软件生成一个包含<device_name>的输出,这是一个范围从acl0到acl127的acl编号。
    注意: 关于实现aocl diagnose工具后可能出现的错误,请参考 Intel® Arria® 10 GX FPGA Development Kit Reference Platform Porting Guide中的Possible Errors After Running the diagnose Utility部分。关于查询加速器板级的<device_name>的详细信息,请参考查询 FPGA板级的器件名称部分。
  7. 通过调用命令 aocl diagnose <device_name> 来运行板级供应商建议的诊断测试以验证FPGA板级的成功安装。