ExecutionUnit Class Reference

HiCR: HiCR::backend::ascend::ExecutionUnit Class Reference
HiCR
HiCR::backend::ascend::ExecutionUnit Class Referencefinal

#include <executionUnit.hpp>

Inheritance diagram for HiCR::backend::ascend::ExecutionUnit:
HiCR::ExecutionUnit

Public Member Functions

 ExecutionUnit (const std::vector< std::shared_ptr< ascend::Kernel > > &kernelOperations)
 
 ~ExecutionUnit ()=default
 
__INLINE__ std::string getType () const override
 
__INLINE__ void start (const aclrtStream stream) const
 

Detailed Description

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

Constructor & Destructor Documentation

◆ ExecutionUnit()

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

Constructor for the execution unit class of the Ascend backend

Parameters
kernelOperationskernels to execute

◆ ~ExecutionUnit()

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

Default destructor

Reimplemented from HiCR::ExecutionUnit.

Member Function Documentation

◆ getType()

__INLINE__ std::string HiCR::backend::ascend::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::ascend::ExecutionUnit::start ( const aclrtStream  stream) const
inline

Start the sequence of kernels on the specified stream

Parameters
streamstream on which kernels are scheduled

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