|
Legion Runtime
|
#include <mapping_utilities.h>
Public Member Functions | |
| MachineQueryInterface (Machine m) | |
| Memory | find_global_memory (void) |
| void | find_memory_stack (Processor proc, std::vector< Memory > &stack, bool latency) |
| void | find_memory_stack (Memory mem, std::vector< Memory > &stack, bool latency) |
| Memory | find_memory_kind (Processor proc, Memory::Kind kind) |
| Memory | find_memory_kind (Memory mem, Memory::Kind kind) |
| Processor | find_processor_kind (Memory mem, Processor::Kind kind) |
| const std::set< Processor > & | filter_processors (Processor::Kind kind) |
| const std::set< Memory > & | filter_memories (Memory::Kind kind) |
A class containing methods for pulling out information from the Machine structure. Queries are memoized so that future calls are less expensive. Static versions of each of the methods are also available, but do not memoize the results of their invocations.
| const std::set< Memory > & Legion::Mapping::Utilities::MachineQueryInterface::filter_memories | ( | Memory::Kind | kind | ) |
Return a set of memories filtered on the given type. If an empty set is passed in then the set will be populated with all processors of the given kind.
| const std::set< Processor > & Legion::Mapping::Utilities::MachineQueryInterface::filter_processors | ( | Processor::Kind | kind | ) |
Return a set of processors filtered on the given type. If an empty set is passed in then the set will be populated with all processors of the given kind.
| Memory Legion::Mapping::Utilities::MachineQueryInterface::find_global_memory | ( | void | ) |
Find a memory visible to all the processors
| Memory Legion::Mapping::Utilities::MachineQueryInterface::find_memory_kind | ( | Memory | mem, |
| Memory::Kind | kind | ||
| ) |
Find the memory of a given kind that is visible from the specified memory.
| Memory Legion::Mapping::Utilities::MachineQueryInterface::find_memory_kind | ( | Processor | proc, |
| Memory::Kind | kind | ||
| ) |
Find the memory of a given kind that is visible from the specified processor.
| void Legion::Mapping::Utilities::MachineQueryInterface::find_memory_stack | ( | Memory | mem, |
| std::vector< Memory > & | stack, | ||
| bool | latency | ||
| ) |
Get the memory stack for a given memory sorted by either throughput or latency.
| void Legion::Mapping::Utilities::MachineQueryInterface::find_memory_stack | ( | Processor | proc, |
| std::vector< Memory > & | stack, | ||
| bool | latency | ||
| ) |
Get the memory stack for a given processor sorted by either throughput or latency.
| Processor Legion::Mapping::Utilities::MachineQueryInterface::find_processor_kind | ( | Memory | mem, |
| Processor::Kind | kind | ||
| ) |
Find the processor of a given kind that is is visible from the specified memory.