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, pi_native_handle InteropHandle, bool keep_ownership=false) |
queue | make_queue (const context &Context, const device &Device, pi_native_handle InteropHandle, bool keep_ownership=false) |
event | make_event (const context &Context, pi_native_handle InteropHandle, bool keep_ownership=false) |
template<typename T , typename sycl::detail::enable_if_t< std::is_same< T, platform >::value > * = nullptr> | |
T | make (typename sycl::detail::interop< backend::ext_oneapi_level_zero, T >::type Interop) |
template<typename T , typename sycl::detail::enable_if_t< std::is_same< T, device >::value > * = nullptr> | |
T | make (const platform &Platform, typename sycl::detail::interop< backend::ext_oneapi_level_zero, T >::type Interop) |
template<typename T , typename std::enable_if< std::is_same< T, context >::value >::type * = 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 sycl::detail::enable_if_t< std::is_same< T, queue >::value > * = nullptr> | |
T | make (const context &Context, typename sycl::detail::interop< backend::ext_oneapi_level_zero, T >::type Interop, ownership Ownership=ownership::transfer) |
context | make_context (const std::vector< device > &DeviceList, pi_native_handle NativeHandle) |
program | make_program (const context &Context, pi_native_handle NativeHandle) |
queue | make_queue (const context &Context, pi_native_handle NativeHandle) |
|
strong |
Enumerator | |
---|---|
transfer | |
keep |
Definition at line 23 of file level_zero_ownership.hpp.
T cl::sycl::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 101 of file level_zero.hpp.
References make_queue().
T cl::sycl::ext::oneapi::level_zero::make | ( | const platform & | Platform, |
typename sycl::detail::interop< backend::ext_oneapi_level_zero, T >::type | Interop | ||
) |
Definition at line 58 of file level_zero.hpp.
References make_device().
T cl::sycl::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 76 of file level_zero.hpp.
References make_context().
T cl::sycl::ext::oneapi::level_zero::make | ( | typename sycl::detail::interop< backend::ext_oneapi_level_zero, T >::type | Interop | ) |
Definition at line 49 of file level_zero.hpp.
References make_platform().
context cl::sycl::ext::oneapi::level_zero::make_context | ( | const std::vector< device > & | DeviceList, |
pi_native_handle | NativeHandle | ||
) |
Definition at line 65 of file level_zero.cpp.
context cl::sycl::ext::oneapi::level_zero::make_context | ( | const std::vector< device > & | DeviceList, |
pi_native_handle | NativeHandle, | ||
bool | keep_ownership = false |
||
) |
Definition at line 46 of file level_zero.cpp.
References cl::sycl::detail::getSyclObjImpl(), and piextContextCreateWithNativeHandle().
Referenced by make(), and cl::sycl::make_context< backend::ext_oneapi_level_zero >().
device cl::sycl::ext::oneapi::level_zero::make_device | ( | const platform & | Platform, |
pi_native_handle | NativeHandle | ||
) |
Definition at line 31 of file level_zero.cpp.
References cl::sycl::detail::getSyclObjImpl(), and piextDeviceCreateWithNativeHandle().
Referenced by make().
event cl::sycl::ext::oneapi::level_zero::make_event | ( | const context & | Context, |
pi_native_handle | InteropHandle, | ||
bool | keep_ownership = false |
||
) |
Definition at line 109 of file level_zero.cpp.
References cl::sycl::detail::make_event().
Referenced by cl::sycl::make_event< backend::ext_oneapi_level_zero >().
platform cl::sycl::ext::oneapi::level_zero::make_platform | ( | pi_native_handle | NativeHandle | ) |
Definition at line 25 of file level_zero.cpp.
References cl::sycl::opencl::make_platform().
Referenced by make().
program cl::sycl::ext::oneapi::level_zero::make_program | ( | const context & | Context, |
pi_native_handle | NativeHandle | ||
) |
Definition at line 72 of file level_zero.cpp.
References cl::sycl::detail::getSyclObjImpl().
queue cl::sycl::ext::oneapi::level_zero::make_queue | ( | const context & | Context, |
const device & | Device, | ||
pi_native_handle | InteropHandle, | ||
bool | keep_ownership = false |
||
) |
Definition at line 92 of file level_zero.cpp.
References cl::sycl::detail::getSyclObjImpl(), and make_queue().
Referenced by make(), and cl::sycl::make_queue< backend::ext_oneapi_level_zero >().
queue cl::sycl::ext::oneapi::level_zero::make_queue | ( | const context & | Context, |
pi_native_handle | InteropHandle, | ||
bool | keep_ownership = false |
||
) |
Definition at line 83 of file level_zero.cpp.
References cl::sycl::detail::getSyclObjImpl(), and make_queue().
queue cl::sycl::ext::oneapi::level_zero::make_queue | ( | const context & | Context, |
pi_native_handle | NativeHandle | ||
) |
Definition at line 102 of file level_zero.cpp.
Referenced by make_queue().