11#if defined(ALPAKA_ACC_SYCL_ENABLED) && defined(ALPAKA_SYCL_ONEAPI_GPU_NVIDIA)
13# include <sycl/sycl.hpp>
20 struct SYCLDeviceSelector<TagGpuSyclNvidia>
22 auto operator()(sycl::device
const& dev)
const ->
int
24 auto const& vendor = dev.get_info<sycl::info::device::vendor>();
25 auto const is_intel_gpu = dev.is_gpu() && (vendor.find(
"NVIDIA") != std::string::npos);
27 return is_intel_gpu ? 1 : -1;
33 using PlatformGpuSyclNvidia = PlatformGenericSycl<TagGpuSyclNvidia>;
The alpaka accelerator library.