Skip to content

Latest commit

 

History

History
27 lines (22 loc) · 807 Bytes

FPGASelector.md

File metadata and controls

27 lines (22 loc) · 807 Bytes

FPGA selector

Intel FPGA users can use header file: #include<CL/sycl/intel/fpga_device_selector.hpp> to simplify their code when they want to specify FPGA hardware device or FPGA emulation device.

Implementation

Current implementation is based on platform name. This is useful in the most common case when user have one FPGA board installed in their system (one device per platform).

Usage: select FPGA hardware device

#include <CL/sycl/intel/fpga_device_selector.hpp>
...
// force FPGA hardware device
cl::sycl::queue deviceQueue{cl::sycl::intel::fpga_selector{}};
...

Usage: select FPGA emulator device

#include <CL/sycl/intel/fpga_device_selector.hpp>
...
// force FPGA emulation device
cl::sycl::queue deviceQueue{cl::sycl::intel::fpga_emulator_selector{}};
...