ExecutionUnit Class Reference

HiCR: HiCR::backend::opencl::ExecutionUnit Class Reference
HiCR
HiCR::backend::opencl::ExecutionUnit Class Referencefinal

#include <executionUnit.hpp>

Inheritance diagram for HiCR::backend::opencl::ExecutionUnit:
HiCR::ExecutionUnit

Public Member Functions

 ExecutionUnit (const std::vector< std::shared_ptr< opencl::Kernel > > &kernelOperations)
 
 ~ExecutionUnit ()=default
 
__INLINE__ std::string getType () const override
 
__INLINE__ void start (const cl::CommandQueue *queue) const
 

Detailed Description

This class represents a replicable sequence of kernels meant to be executed on OpenCL.

Constructor & Destructor Documentation

◆ ExecutionUnit()

HiCR::backend::opencl::ExecutionUnit::ExecutionUnit ( const std::vector< std::shared_ptr< opencl::Kernel > > &  kernelOperations)
inline

Constructor for the execution unit class of the OpenCL backend

Parameters
kernelOperationskernels to execute

◆ ~ExecutionUnit()

HiCR::backend::opencl::ExecutionUnit::~ExecutionUnit ( )
virtualdefault

Default destructor

Reimplemented from HiCR::ExecutionUnit.

Member Function Documentation

◆ getType()

__INLINE__ std::string HiCR::backend::opencl::ExecutionUnit::getType ( ) const
inlineoverridevirtual

Get the execution unit type

Returns
a string indicating the execution unit type

Implements HiCR::ExecutionUnit.

◆ start()

__INLINE__ void HiCR::backend::opencl::ExecutionUnit::start ( const cl::CommandQueue *  queue) const
inline

Start the sequence of kernels on the specified queue

Parameters
queuequeue on which kernels are scheduled

The documentation for this class was generated from the following file: