#include <ComputeApiInitializer.h>
Public Member Functions | |
| ComputeApiInitializer (ComputeContext context, const std::vector< ComputeQueue > &queues) | |
| ComputeContext | GetContext () const |
| const std::vector< ComputeQueue > & | GetQueues () const |
Class which can be used to initialize tuner with custom compute device context and queues.
|
explicit |
Constructor which creates new initializer.
| context | User-provided context. Depending on compute API, it can be either CUcontext or cl_context handle. |
| queues | User-provided queues. Depending on compute API, it can be a vector of either CUstream or cl_command_queue handles. In case of OpenCL API, the queues must be created with CL_QUEUE_PROFILING_ENABLE flag. The number of queues must be at least 1. |
| ComputeContext ktt::ComputeApiInitializer::GetContext | ( | ) | const |
Getter for context. Used internally by KTT framework.
| const std::vector< ComputeQueue > & ktt::ComputeApiInitializer::GetQueues | ( | ) | const |
Getter for queues. Used internally by KTT framework.