ProcessingUnit Class Reference

HiCR: HiCR::backend::nosv::ProcessingUnit Class Reference
HiCR
HiCR::backend::nosv::ProcessingUnit Class Referencefinal

#include <processingUnit.hpp>

Inheritance diagram for HiCR::backend::nosv::ProcessingUnit:
HiCR::ProcessingUnit

Public Member Functions

__INLINE__ ProcessingUnit (const std::shared_ptr< HiCR::ComputeResource > &computeResource)
 
__INLINE__ std::string getType () override
 
- Public Member Functions inherited from HiCR::ProcessingUnit
 ProcessingUnit ()=delete
 
__INLINE__ ProcessingUnit (std::shared_ptr< HiCR::ComputeResource > computeResource)
 
virtual ~ProcessingUnit ()=default
 
__INLINE__ ProcessingUnit::state_t getState () const
 
__INLINE__ std::shared_ptr< ComputeResourcegetComputeResource ()
 

Friends

class HiCR::backend::nosv::ComputeManager
 

Additional Inherited Members

- Public Types inherited from HiCR::ProcessingUnit
enum  state_t {
  uninitialized , ready , running , suspended ,
  terminating , terminated
}
 

Detailed Description

This class represents an abstract definition for a Processing Unit resource in HiCR that:

  • Represents a single compute resource that has been instantiated for execution (as opposed of those who shall remain unused or unassigned).
  • Is capable of executing or contributing to the execution of tasks.
  • Is assigned, for example, to a worker to perform the work necessary to execute a task.
  • This is a non-copy-able class

Constructor & Destructor Documentation

◆ ProcessingUnit()

__INLINE__ HiCR::backend::nosv::ProcessingUnit::ProcessingUnit ( const std::shared_ptr< HiCR::ComputeResource > &  computeResource)
inline

Constructor for a processing unit

Parameters
computeResourceThe instance of the compute resource to instantiate, as indicated by the backend

Member Function Documentation

◆ getType()

__INLINE__ std::string HiCR::backend::nosv::ProcessingUnit::getType ( )
inlineoverridevirtual

Gets the processing unit's type

Returns
A string, containing the processing unit's type

Implements HiCR::ProcessingUnit.


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