2.3. Initializing the Intel® Acceleration Stack for OpenCL* in a Virtualized Environment
Follow the installation instructions from the Quick Start Guide to set up the Intel® FPGA PAC D5005.
Once the stack setup is complete, follow the steps below to setup OpenCL on Intel® FPGA PAC D5005.
You can run the OPAE software in a non-virtualized environment with the Single Root I/O Virtualization (SR-IOV) disabled or in a virtualized environment with the SR-IOV enabled.
To run the OpenCL* reference design in a virtualized environment that includes SR-IOV, follow steps 1 to 3 from section Initializing the Environment for OpenCL with Intel Acceleration Stack and then complete the following additional steps:
- Program the required OpenCL* configuration from the host machine by typing the following command: Sample Output: You can see the device name in the output for aocl diagnose and you can use one of the pre-compiled bitstream for programming. For example,
Note: The 2.0.1 Release does not support partial reconfiguration in virtualized environment.
- Enable virtualization using the instructions from section Updating Settings Required for VFs and section Configuring the VF Port on the Host of the Quick Start Guide.
- Set the CL_CONTEXT_COMPILER_MODE_INTELFPGA environment variable in the virtual machine to disable FPGA configuration or reconfiguration during OpenCL* host runtime:
- Run the required application from the virtual machine.
- Disable virtualization using the instruction from section Disconnecting the VF from the VM and Reconnecting to the PF of the Quick Start Guide.