OpenCL* on Intel® Programmable Acceleration Card with Intel® Arria® 10 GX FPGA快速入门用户指南

ID 683831
日期 12/04/2018
Public

3.1. 安装发行版(Installing the Release)

按照Quick Start Guide中的第2章到第6章中的指南对 Intel® PAC with Intel® Arria® 10 GX FPGA进行设置。

您可以在一个非虚拟化的环境中或者在一个Single Root I/O Virtualization (SR-IOV)禁用的虚拟化环境中运行OPAE软件。

如果要在一个包含SR-IOV的虚拟化环境中运行 OpenCL* 参考设计,那么需要完成以下额外的步骤:
  1. 通过输入以下命令,从主机对所需的 OpenCL* 配置进行编程:
    $ aocl program <device name><filename>
    注: 1.2 Release不支持虚拟化环境中的部分重配置。
  2. 根据Quick Start GuideUpdating Settings Required for VFsConfiguring the VF Port on the Host部分中的说明来使能虚拟化。
  3. 设置虚拟机中的CL_CONTEXT_COMPILER_MODE_INTELFPGA环境变量来禁止 OpenCL* 主机运行时期间对FPGA配置或者重配置:
    $ export CL_CONTEXT_COMPILER_MODE_INTELFPGA=3
  4. 从虚拟机运行所需的应用程序。
  5. 根据Quick Start GuideDisconnecting the VF from the VM and Reconnecting to the PF部分中的说明来禁止虚拟化。