DPC++ Runtime
Runtime libraries for oneAPI DPC++
|
|
Go to the documentation of this file.
15 #include <string_view>
23 namespace ext::intel {
30 required_platform_name)
38 _putenv_s(
"CL_CONTEXT_MPSIM_DEVICE_INTELFPGA",
"1");
40 setenv(
"CL_CONTEXT_MPSIM_DEVICE_INTELFPGA",
"1", 0);
47 std::string device_platform_name;
51 : device_platform_name(platform_name) {}
59 "Intel(R) FPGA Emulation Platform for OpenCL(TM)";
61 "Intel(R) FPGA SDK for OpenCL(TM)";
72 static bool IsFirstCall =
true;
82 :
public platform_selector {
89 fpga_emulator_selector :
public platform_selector {
96 fpga_simulator_selector :
public fpga_selector {
98 fpga_simulator_selector() {
platform get_platform() const
Get associated SYCL platform.
signed char __SYCL2020_DEPRECATED
int fpga_simulator_selector_v(const device &device)
#define __SYCL_INLINE_VER_NAMESPACE(X)
---— Error handling, matching OpenCL plugin semantics.
static constexpr auto EMULATION_PLATFORM_NAME
void enableFPGASimulator()
The SYCL device class encapsulates a single SYCL device on which kernels may be executed.
int fpga_selector_v(const device &device)
static constexpr auto HARDWARE_PLATFORM_NAME
int selectDeviceByPlatform(std::string_view required_platform_name, const device &device)
int fpga_emulator_selector_v(const device &device)
#define __SYCL2020_DEPRECATED(message)