TopologyManager Class Reference
HiCR
|
#include <topologyManager.hpp>

Public Member Functions | |
TopologyManager () | |
~TopologyManager ()=default | |
__INLINE__ HiCR::Topology | queryTopology () override |
__INLINE__ HiCR::Topology | _deserializeTopology (const nlohmann::json &topology) const override |
Static Public Member Functions | |
static __INLINE__ HiCR::Topology | deserializeTopology (const nlohmann::json &topology) |
static __INLINE__ std::unique_ptr< HiCR::TopologyManager > | createDefault () |
Additional Inherited Members | |
![]() | |
TopologyManager ()=default | |
Detailed Description
Implementation of the topology manager for the discovery and use of Ascend devices
Constructor & Destructor Documentation
◆ TopologyManager()
|
inline |
Default constructor
◆ ~TopologyManager()
|
virtualdefault |
Default destructor
Reimplemented from HiCR::TopologyManager.
Member Function Documentation
◆ _deserializeTopology()
|
inlineoverridevirtual |
This function deserializes a JSON-encoded topology into a topology class with its constituent devices, as recognized by the called backend, and returns it
If the backend does not recognize a device in the encoded topology, it will not add it to the topology
- Parameters
-
[in] topology The JSON-encoded topology to deserialize
- Returns
- The deserialized topology containing only devices recognized by the backend
Implements HiCR::TopologyManager.
◆ createDefault()
|
inlinestatic |
This function represents the default intializer for this backend
- Returns
- A unique pointer to the newly instantiated backend class
◆ deserializeTopology()
|
inlinestatic |
Static implementation of the _deserializeTopology Function
- Parameters
-
[in] topology see: _deserializeTopology
- Returns
- see: _deserializeTopology
◆ queryTopology()
|
inlineoverridevirtual |
This function prompts the backend to perform the necessary steps to discover the system topology
In case of change in resource availability during runtime, users need to re-run this function to be able to see the changes.
- Returns
- The detected topology, as detected by the specific b ackend
Implements HiCR::TopologyManager.
The documentation for this class was generated from the following file:
- /home/runner/work/HiCR/HiCR/include/hicr/backends/ascend/topologyManager.hpp
Generated by