cl::sycl::codeplay::handler Class Reference
Command group handler that implements Codeplay specific API extensions. More...
#include <apis.h>
Public Member Functions | |
operator cl::sycl::handler & () | |
Conversion operator. More... | |
operator const cl::sycl::handler & () const | |
Conversion operator, const overload. More... | |
template<typename elemT , int kDims, access::mode kMode, access::target kTarget> | |
void | require (const accessor< elemT, kDims, kMode, kTarget, access::placeholder::true_t > &acc) |
Registers a placeholder accessor with the handler. More... | |
template<typename FunctorT > | |
void | interop_task (const FunctorT &functor) |
Launches a single host task that allows access to OpenCL interop objects. More... | |
Protected Member Functions | |
handler (const dqueue_shptr &q, const dqueue_shptr &fallbackQueue=nullptr) | |
Creates a handler for a specific queue. More... | |
void | interop_task_impl (const detail::codeplay_interop_task_ptr &interopTaskPtr) |
Launches the interop task. More... | |
Detailed Description
Command group handler that implements Codeplay specific API extensions.
Definition at line 33 of file codeplay/apis.h.
Constructor & Destructor Documentation
◆ handler()
|
inlineexplicitprotected |
Creates a handler for a specific queue.
- Parameters
-
q Queue to run operations on fallbackQueue Queue used in case of a failure on the main queue
Definition at line 85 of file codeplay/apis.h.
Member Function Documentation
◆ interop_task()
|
inline |
Launches a single host task that allows access to OpenCL interop objects.
- Template Parameters
-
FunctorT Type of the user functions. Determined by the compiler.
- Parameters
-
functor User function being enqueued
Definition at line 76 of file codeplay/apis.h.
◆ interop_task_impl()
|
protected |
Launches the interop task.
- Parameters
-
interopTaskPtr User function
◆ operator cl::sycl::handler &()
|
inline |
Conversion operator.
- Returns
- Reference to normal SYCL handler
Definition at line 41 of file codeplay/apis.h.
◆ operator const cl::sycl::handler &()
|
inline |
Conversion operator, const overload.
- Returns
- Const reference to normal SYCL handler
Definition at line 46 of file codeplay/apis.h.
◆ require()
|
inline |
Registers a placeholder accessor with the handler.
- Parameters
-
acc Placeholder accessor
Definition at line 63 of file codeplay/apis.h.
The documentation for this class was generated from the following file: