8#include <sycl/sycl.hpp>
15 device_policy(sycl::queue queue) : devices_({queue.get_device()}) {}
19 template <rng::range R>
20 requires(std::is_same_v<rng::range_value_t<R>, sycl::device>)
22 : devices_(rng::begin(devices), rng::end(devices)) {}
24 std::span<sycl::device> get_devices()
noexcept {
return devices_; }
26 std::span<const sycl::device> get_devices()
const noexcept {
31 std::vector<sycl::device> devices_;
Definition: execution_policy.hpp:13