/home/runner/work/HiCR/HiCR/include/hicr/backends/pthreads/computeManager.hpp Source File
|
HiCR
|
computeManager.hpp
Go to the documentation of this file.
62 __INLINE__ std::shared_ptr<HiCR::ExecutionUnit> createExecutionUnit(const replicableFc_t &function) override { return std::make_shared<pthreads::ExecutionUnit>(function); }
71 __INLINE__ std::unique_ptr<HiCR::ExecutionState> createExecutionState(std::shared_ptr<HiCR::ExecutionUnit> executionUnit, void *const argument = nullptr) const override
77 [[nodiscard]] __INLINE__ std::unique_ptr<HiCR::ProcessingUnit> createProcessingUnit(std::shared_ptr<HiCR::ComputeResource> computeResource) const override
92 __INLINE__ void startImpl(std::unique_ptr<HiCR::ProcessingUnit> &processingUnit, std::unique_ptr<HiCR::ExecutionState> &executionState) override
132 [[nodiscard]] __INLINE__ pthreads::ProcessingUnit *getPosixThreadPointer(std::unique_ptr<HiCR::ProcessingUnit> &processingUnit)
138 // If the processing unit is not recognized, throw error. We can use the processing unit's type (string) now.
139 if (p == nullptr) HICR_THROW_LOGIC("This compute manager cannot handle processing units of type '%s'", processingUnit->getType().c_str());
This file implements the compute resource class for the HWLoc-based backend.
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:40
__INLINE__ std::unique_ptr< HiCR::ProcessingUnit > createProcessingUnit(std::shared_ptr< HiCR::ComputeResource > computeResource) const override
Definition computeManager.hpp:77
__INLINE__ std::unique_ptr< HiCR::ExecutionState > createExecutionState(std::shared_ptr< HiCR::ExecutionUnit > executionUnit, void *const argument=nullptr) const override
Definition computeManager.hpp:71
ComputeManager()
Definition computeManager.hpp:46
~ComputeManager() override=default
__INLINE__ std::shared_ptr< HiCR::ExecutionUnit > createExecutionUnit(const replicableFc_t &function) override
Definition computeManager.hpp:62
Provides a definition for the abstract compute manager class.
Provides a failure model and corresponding exception classes.
Generated by