ComputeResource Class Reference
HiCR
|
HiCR::backend::ascend::ComputeResource Class Referencefinal
#include <computeResource.hpp>
Inheritance diagram for HiCR::backend::ascend::ComputeResource:

Public Member Functions | |
ComputeResource (const std::shared_ptr< ascend::Device > &device) | |
~ComputeResource ()=default | |
ComputeResource (const nlohmann::json &input) | |
__INLINE__ std::string | getType () const override |
__INLINE__ const std::weak_ptr< const ascend::Device > | getDevice () const |
![]() | |
__INLINE__ nlohmann::json | serialize () const |
__INLINE__ void | deserialize (const nlohmann::json &input) |
Additional Inherited Members |
Detailed Description
This class represents a compute resource, visible by the Ascend backend. That is, a processing unit (Ascend device) with information about the ascend context.
Constructor & Destructor Documentation
◆ ComputeResource() [1/2]
|
inline |
Constructor for the compute resource class of the Ascend backend
- Parameters
-
device The Ascend device that contains this compute resource
◆ ~ComputeResource()
|
virtualdefault |
Default destructor
Reimplemented from HiCR::ComputeResource.
◆ ComputeResource() [2/2]
|
inline |
Deserializing constructor
- Parameters
-
[in] input Serialized resource information
- Note
- Backwards reference to device is null when deserializing. Do not try to use this class for any operations.
Member Function Documentation
◆ getDevice()
|
inline |
Function to get the device id associated to this memory space
- Returns
- The device id corresponding to this memory space
◆ getType()
|
inlineoverridevirtual |
Indicates what type of compute unit is contained in this instance
- Returns
- A string containing a human-readable description of the compute resource type
Implements HiCR::ComputeResource.
The documentation for this class was generated from the following file:
- /home/runner/work/HiCR/HiCR/include/hicr/backends/ascend/computeResource.hpp
Generated by