Enumerations | |
enum | ownership { ownership::transfer, ownership::keep } |
Functions | |
platform | make_platform (pi_native_handle NativeHandle) |
device | make_device (const platform &Platform, pi_native_handle NativeHandle) |
context | make_context (const std::vector< device > &DeviceList, pi_native_handle NativeHandle, bool keep_ownership=false) |
queue | make_queue (const context &Context, const device &Device, pi_native_handle InteropHandle, bool IsImmCmdList, bool keep_ownership, const property_list &Properties) |
event | make_event (const context &Context, pi_native_handle InteropHandle, bool keep_ownership=false) |
template<typename T , typename std::enable_if_t< std::is_same_v< T, platform >> * = nullptr> | |
T | make (typename sycl::detail::interop< backend::ext_oneapi_level_zero, T >::type Interop) |
template<typename T , typename std::enable_if_t< std::is_same_v< T, device >> * = nullptr> | |
T | make (const platform &Platform, typename sycl::detail::interop< backend::ext_oneapi_level_zero, T >::type Interop) |
template<typename T , std::enable_if_t< std::is_same_v< T, context >> * = nullptr> | |
T | make (const std::vector< device > &DeviceList, typename sycl::detail::interop< backend::ext_oneapi_level_zero, T >::type Interop, ownership Ownership=ownership::transfer) |
Construction of SYCL context. More... | |
template<typename T , typename std::enable_if_t< std::is_same_v< T, event >> * = nullptr> | |
T | make (const context &Context, typename sycl::detail::interop< backend::ext_oneapi_level_zero, T >::type Interop, ownership Ownership=ownership::transfer) |
|
strong |
Enumerator | |
---|---|
transfer | |
keep |
Definition at line 19 of file level_zero_ownership.hpp.
T sycl::_V1::ext::oneapi::level_zero::make | ( | const context & | Context, |
typename sycl::detail::interop< backend::ext_oneapi_level_zero, T >::type | Interop, | ||
ownership | Ownership = ownership::transfer |
||
) |
Definition at line 105 of file level_zero.hpp.
References keep, and make_event().
T sycl::_V1::ext::oneapi::level_zero::make | ( | const platform & | Platform, |
typename sycl::detail::interop< backend::ext_oneapi_level_zero, T >::type | Interop | ||
) |
Definition at line 75 of file level_zero.hpp.
References make_device().
T sycl::_V1::ext::oneapi::level_zero::make | ( | const std::vector< device > & | DeviceList, |
typename sycl::detail::interop< backend::ext_oneapi_level_zero, T >::type | Interop, | ||
ownership | Ownership = ownership::transfer |
||
) |
Construction of SYCL context.
DeviceList | is a vector of devices which must be encapsulated by created SYCL context. Provided devices and native context handle must be associated with the same platform. |
Interop | is a Level Zero native context handle. |
Ownership | (optional) specifies who will assume ownership of the native context handle. Default is that SYCL RT does, so it destroys the native handle when the created SYCL object goes out of life. |
Definition at line 92 of file level_zero.hpp.
References keep, and make_context().
T sycl::_V1::ext::oneapi::level_zero::make | ( | typename sycl::detail::interop< backend::ext_oneapi_level_zero, T >::type | Interop | ) |
Definition at line 66 of file level_zero.hpp.
References make_platform().
context sycl::_V1::ext::oneapi::level_zero::make_context | ( | const std::vector< device > & | DeviceList, |
pi_native_handle | NativeHandle, | ||
bool | keep_ownership = false |
||
) |
Definition at line 44 of file level_zero.cpp.
References sycl::_V1::detail::defaultAsyncHandler(), sycl::_V1::detail::getSyclObjImpl(), and piextContextCreateWithNativeHandle().
Referenced by make(), and sycl::_V1::make_context< backend::ext_oneapi_level_zero >().
device sycl::_V1::ext::oneapi::level_zero::make_device | ( | const platform & | Platform, |
pi_native_handle | NativeHandle | ||
) |
Definition at line 29 of file level_zero.cpp.
References sycl::_V1::detail::getSyclObjImpl(), and piextDeviceCreateWithNativeHandle().
Referenced by make().
event sycl::_V1::ext::oneapi::level_zero::make_event | ( | const context & | Context, |
pi_native_handle | InteropHandle, | ||
bool | keep_ownership = false |
||
) |
Definition at line 76 of file level_zero.cpp.
References sycl::_V1::ext_oneapi_level_zero, and sycl::_V1::detail::make_event().
Referenced by make(), and sycl::_V1::make_event< backend::ext_oneapi_level_zero >().
platform sycl::_V1::ext::oneapi::level_zero::make_platform | ( | pi_native_handle | NativeHandle | ) |
Definition at line 23 of file level_zero.cpp.
References sycl::_V1::ext_oneapi_level_zero, and sycl::_V1::detail::make_platform().
Referenced by make().
queue sycl::_V1::ext::oneapi::level_zero::make_queue | ( | const context & | Context, |
const device & | Device, | ||
pi_native_handle | InteropHandle, | ||
bool | IsImmCmdList, | ||
bool | keep_ownership, | ||
const property_list & | Properties | ||
) |
Definition at line 64 of file level_zero.cpp.
References sycl::_V1::ext_oneapi_level_zero, sycl::_V1::detail::getSyclObjImpl(), and sycl::_V1::detail::make_queue().
Referenced by sycl::_V1::make_queue< backend::ext_oneapi_level_zero >().