15 inline namespace _V1 {
19 get_native<backend::ext_oneapi_hip, device>(
const device &Obj) {
30 inline device make_device<backend::ext_oneapi_hip>(
33 for (
auto &dev : devs) {
35 BackendObject == get_native<backend::ext_oneapi_hip>(dev)) {
44 "Native device has an invalid ordinal.");
The SYCL device class encapsulates a single SYCL device on which kernels may be executed.
static std::vector< device > get_devices(info::device_type deviceType=info::device_type::all)
Query available SYCL devices.
backend get_backend() const noexcept
Returns the backend associated with this device.
typename backend_traits< Backend >::template return_type< SyclType > backend_return_t
std::error_code make_error_code(sycl::errc E) noexcept
Constructs an error code using e and sycl_category()
typename backend_traits< Backend >::template input_type< SyclType > backend_input_t