ProcessingUnit Class Reference
HiCR
|
HiCR::backend::nosv::ProcessingUnit Class Referencefinal
#include <processingUnit.hpp>
Inheritance diagram for HiCR::backend::nosv::ProcessingUnit:

Public Member Functions | |
__INLINE__ | ProcessingUnit (const std::shared_ptr< HiCR::ComputeResource > &computeResource) |
__INLINE__ std::string | getType () override |
![]() | |
ProcessingUnit ()=delete | |
__INLINE__ | ProcessingUnit (std::shared_ptr< HiCR::ComputeResource > computeResource) |
virtual | ~ProcessingUnit ()=default |
__INLINE__ ProcessingUnit::state_t | getState () const |
__INLINE__ std::shared_ptr< ComputeResource > | getComputeResource () |
Friends | |
class | HiCR::backend::nosv::ComputeManager |
Additional Inherited Members | |
![]() | |
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 |
Constructor for a processing unit
- Parameters
-
computeResource The instance of the compute resource to instantiate, as indicated by the backend
Member Function Documentation
◆ 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:
- /home/runner/work/HiCR/HiCR/include/hicr/backends/nosv/processingUnit.hpp
Generated by