11 #if defined(ALPAKA_ACC_SYCL_ENABLED) && defined(ALPAKA_SYCL_ONEAPI_FPGA)
13 # include <sycl/sycl.hpp>
22 # pragma clang diagnostic push
23 # pragma clang diagnostic ignored "-Wweak-vtables"
26 struct SYCLDeviceSelector<TagFpgaSyclIntel>
28 # ifdef ALPAKA_FPGA_EMULATION
29 static constexpr
auto platform_name =
"Intel(R) FPGA Emulation Platform for OpenCL(TM)";
31 static constexpr
auto platform_name =
"Intel(R) FPGA SDK for OpenCL(TM)";
34 auto operator()(sycl::device
const& dev)
const ->
int
36 auto const& platform = dev.get_platform().get_info<sycl::info::platform::name>();
37 auto const is_intel_fpga = dev.is_accelerator() && (platform == platform_name);
39 return is_intel_fpga ? 1 : -1;
43 # pragma clang diagnostic pop
48 using PlatformFpgaSyclIntel = PlatformGenericSycl<TagFpgaSyclIntel>;
The alpaka accelerator library.