/home/runner/work/HiCR/HiCR/include/hicr/backends/pthreads/computeManager.hpp Source File
HiCR
|
computeManager.hpp
Go to the documentation of this file.
67 __INLINE__ static std::shared_ptr<HiCR::ExecutionUnit> createExecutionUnit(const pthreadFc_t &threadFunction)
79 __INLINE__ std::unique_ptr<HiCR::ExecutionState> createExecutionState(std::shared_ptr<HiCR::ExecutionUnit> executionUnit, void *const argument = nullptr) const override
85 [[nodiscard]] __INLINE__ std::unique_ptr<HiCR::ProcessingUnit> createProcessingUnit(std::shared_ptr<HiCR::ComputeResource> computeResource) const override
100 __INLINE__ void startImpl(std::unique_ptr<HiCR::ProcessingUnit> &processingUnit, std::unique_ptr<HiCR::ExecutionState> &executionState) override
140 [[nodiscard]] __INLINE__ pthreads::ProcessingUnit *getPosixThreadPointer(std::unique_ptr<HiCR::ProcessingUnit> &processingUnit)
146 // If the processing unit is not recognized, throw error. We can use the processing unit's type (string) now.
147 if (p == nullptr) HICR_THROW_LOGIC("This compute manager cannot handle processing units of type '%s'", processingUnit->getType());
This file implements the compute resource class for the HWLoc-based backend.
std::function< void(void *)> pthreadFc_t
Definition computeManager.hpp:39
This file implements the abstract execution state class for the pthreads backend.
Implements the processing unit class for the Pthreads backend.
Definition computeManager.hpp:48
Definition computeManager.hpp:45
__INLINE__ std::unique_ptr< HiCR::ProcessingUnit > createProcessingUnit(std::shared_ptr< HiCR::ComputeResource > computeResource) const override
Definition computeManager.hpp:85
__INLINE__ std::unique_ptr< HiCR::ExecutionState > createExecutionState(std::shared_ptr< HiCR::ExecutionUnit > executionUnit, void *const argument=nullptr) const override
Definition computeManager.hpp:79
ComputeManager()
Definition computeManager.hpp:51
~ComputeManager() override=default
static __INLINE__ std::shared_ptr< HiCR::ExecutionUnit > createExecutionUnit(const pthreadFc_t &threadFunction)
Definition computeManager.hpp:67
Provides a definition for the abstract compute manager class.
Provides a failure model and corresponding exception classes.
Generated by