Forum Discussion
jbick819
New Contributor
3 years agoDevice Selector Compilation Error
Hello,
Prior to the latest oneAPI update, I had been creating my device selector in the following way:
#if defined(FPGA_EMULATOR)
sycl::ext::intel::fpga_emulator_selector device_selector;
...
- 3 years ago
My apologies everyone, it seems I have the incorrect Intel forum, I meant for this to be in the Intel Devcloud forum
xwuupb
New Contributor
3 years ago
@jbick819 wrote:#if FPGA_SIMULATOR auto selector = sycl::ext::intel::fpga_simulator_selector_v; #elif FPGA_HARDWARE auto selector = sycl::ext::intel::fpga_selector_v; #else // #if FPGA_EMULATOR auto selector = sycl::ext::intel::fpga_emulator_selector_v; #endif sycl::queue q(selector, sycl::property::queue::enable_profiling{});
The code above should be "#ifdef FPGA_EMULATOR" (note the bold ifdef).