cl::sycl::codeplay::interop_handle Class Reference
Handle that allows access to OpenCL interop objects on a specific SYCL queue. More...
#include <interop_handle.h>
Inherited by cl::sycl::detail::interop_handle [protected]
.
Public Member Functions | |
template<typename elemT , int kDims, access::mode kMode, access::target kTarget, access::placeholder isPlaceholder> | |
cl_mem | get (const accessor< elemT, kDims, kMode, kTarget, isPlaceholder > &acc) const |
Retrieves an OpenCL memory object (buffer/image) associated with a device accessor. More... | |
cl_command_queue | get_queue () const |
Retrieves the OpenCL command queue from the SYCL one. More... | |
cl_context | get_context () const |
Retrieves the OpenCL context associated with the SYCL queue. More... | |
cl_device_id | get_device () const |
Retrieves the OpenCL device associated with the SYCL queue. More... | |
Protected Member Functions | |
interop_handle (dqueue_shptr syclQueue) | |
Constructs an interop object from a SYCL queue. More... | |
cl_mem | get_mem_object_impl (const accessor_base &acc) const |
Helper function for retrieving the OpenCL memory object from an accessor. More... | |
Friends | |
codeplay::interop_handle | detail::make_interop_handle (detail::interop_handle_tag< codeplay::interop_handle >, dqueue_shptr syclQueue) |
Detailed Description
Handle that allows access to OpenCL interop objects on a specific SYCL queue.
Definition at line 65 of file codeplay/interop_handle.h.
Constructor & Destructor Documentation
◆ interop_handle()
|
inlineexplicitprotected |
Constructs an interop object from a SYCL queue.
- Parameters
-
syclQueue Detail SYCL queue object
Definition at line 109 of file codeplay/interop_handle.h.
Member Function Documentation
◆ get()
|
inline |
Retrieves an OpenCL memory object (buffer/image) associated with a device accessor.
- Template Parameters
-
elemT Underlying type of the accessor data kDims Number of data dimensions kMode Access mode kTarget Access target isPlaceholder Whether the accessor is a placeholder
- Parameters
-
acc Accessor to retrieve the OpenCL memory object from
- Returns
- OpenCL memory object
Definition at line 85 of file codeplay/interop_handle.h.
◆ get_context()
cl_context cl::sycl::codeplay::interop_handle::get_context | ( | ) | const |
Retrieves the OpenCL context associated with the SYCL queue.
- Returns
- OpenCL context
◆ get_device()
cl_device_id cl::sycl::codeplay::interop_handle::get_device | ( | ) | const |
Retrieves the OpenCL device associated with the SYCL queue.
- Returns
- OpenCL device
◆ get_mem_object_impl()
|
protected |
Helper function for retrieving the OpenCL memory object from an accessor.
- Parameters
-
acc Accessor to retrieve the OpenCL memory object from
- Returns
- OpenCL memory object
◆ get_queue()
cl_command_queue cl::sycl::codeplay::interop_handle::get_queue | ( | ) | const |
Retrieves the OpenCL command queue from the SYCL one.
- Returns
- OpenCL queue
Friends And Related Function Documentation
◆ detail::make_interop_handle
|
friend |
The documentation for this class was generated from the following file: