|
Legion Runtime
|
#include <debug_mapper.h>
Public Member Functions | |
| DebugMapper (MapperRuntime *rt, Machine machine, Processor local, const char *replay_file, const char *mapper_name=NULL) | |
| DebugMapper (const DebugMapper &rhs) | |
| DebugMapper & | operator= (const DebugMapper &rhs) |
Public Member Functions inherited from Legion::Mapping::ReplayMapper | |
| ReplayMapper (MapperRuntime *rt, Machine machine, Processor local, const char *replay_file, const char *mapper_name=NULL) | |
| ReplayMapper (const ReplayMapper &rhs) | |
| ReplayMapper & | operator= (const ReplayMapper &rhs) |
| const char * | get_mapper_name (void) const override |
| MapperSyncModel | get_mapper_sync_model (void) const override |
| void | select_task_options (const MapperContext ctx, const Task &task, TaskOptions &output) override |
| void | premap_task (const MapperContext ctx, const Task &task, const PremapTaskInput &input, PremapTaskOutput &output) override |
| void | slice_task (const MapperContext ctx, const Task &task, const SliceTaskInput &input, SliceTaskOutput &output) override |
| void | map_task (const MapperContext ctx, const Task &task, const MapTaskInput &input, MapTaskOutput &output) override |
| void | replicate_task (MapperContext ctx, const Task &task, const ReplicateTaskInput &input, ReplicateTaskOutput &output) override |
| void | select_task_variant (const MapperContext ctx, const Task &task, const SelectVariantInput &input, SelectVariantOutput &output) override |
| void | postmap_task (const MapperContext ctx, const Task &task, const PostMapInput &input, PostMapOutput &output) override |
| void | select_task_sources (const MapperContext ctx, const Task &task, const SelectTaskSrcInput &input, SelectTaskSrcOutput &output) override |
| void | report_profiling (const MapperContext ctx, const Task &task, const TaskProfilingInfo &input) override |
| void | select_sharding_functor (const MapperContext ctx, const Task &task, const SelectShardingFunctorInput &input, SelectShardingFunctorOutput &output) override |
| void | map_inline (const MapperContext ctx, const InlineMapping &inline_op, const MapInlineInput &input, MapInlineOutput &output) override |
| void | select_inline_sources (const MapperContext ctx, const InlineMapping &inline_op, const SelectInlineSrcInput &input, SelectInlineSrcOutput &output) override |
| void | report_profiling (const MapperContext ctx, const InlineMapping &inline_op, const InlineProfilingInfo &input) override |
| void | map_copy (const MapperContext ctx, const Copy ©, const MapCopyInput &input, MapCopyOutput &output) override |
| void | select_copy_sources (const MapperContext ctx, const Copy ©, const SelectCopySrcInput &input, SelectCopySrcOutput &output) override |
| void | report_profiling (const MapperContext ctx, const Copy ©, const CopyProfilingInfo &input) override |
| void | select_sharding_functor (const MapperContext ctx, const Copy ©, const SelectShardingFunctorInput &input, SelectShardingFunctorOutput &output) override |
| void | select_close_sources (const MapperContext ctx, const Close &close, const SelectCloseSrcInput &input, SelectCloseSrcOutput &output) override |
| void | report_profiling (const MapperContext ctx, const Close &close, const CloseProfilingInfo &input) override |
| void | select_sharding_functor (const MapperContext ctx, const Close &close, const SelectShardingFunctorInput &input, SelectShardingFunctorOutput &output) override |
| void | map_acquire (const MapperContext ctx, const Acquire &acquire, const MapAcquireInput &input, MapAcquireOutput &output) override |
| void | report_profiling (const MapperContext ctx, const Acquire &acquire, const AcquireProfilingInfo &input) override |
| void | select_sharding_functor (const MapperContext ctx, const Acquire &acquire, const SelectShardingFunctorInput &input, SelectShardingFunctorOutput &output) override |
| void | map_release (const MapperContext ctx, const Release &release, const MapReleaseInput &input, MapReleaseOutput &output) override |
| void | select_release_sources (const MapperContext ctx, const Release &release, const SelectReleaseSrcInput &input, SelectReleaseSrcOutput &output) override |
| void | report_profiling (const MapperContext ctx, const Release &release, const ReleaseProfilingInfo &input) override |
| void | select_sharding_functor (const MapperContext ctx, const Release &release, const SelectShardingFunctorInput &input, SelectShardingFunctorOutput &output) override |
| void | select_partition_projection (const MapperContext ctx, const Partition &partition, const SelectPartitionProjectionInput &input, SelectPartitionProjectionOutput &output) override |
| void | map_partition (const MapperContext ctx, const Partition &partition, const MapPartitionInput &input, MapPartitionOutput &output) override |
| void | select_partition_sources (const MapperContext ctx, const Partition &partition, const SelectPartitionSrcInput &input, SelectPartitionSrcOutput &output) override |
| void | report_profiling (const MapperContext ctx, const Partition &partition, const PartitionProfilingInfo &input) override |
| void | select_sharding_functor (const MapperContext ctx, const Partition &partition, const SelectShardingFunctorInput &input, SelectShardingFunctorOutput &output) override |
| void | select_sharding_functor (const MapperContext ctx, const Fill &fill, const SelectShardingFunctorInput &input, SelectShardingFunctorOutput &output) override |
| void | configure_context (const MapperContext ctx, const Task &task, ContextConfigOutput &output) override |
| void | select_tunable_value (const MapperContext ctx, const Task &task, const SelectTunableInput &input, SelectTunableOutput &output) override |
| void | select_sharding_functor (const MapperContext ctx, const MustEpoch &epoch, const SelectShardingFunctorInput &input, MustEpochShardingFunctorOutput &output) override |
| void | map_must_epoch (const MapperContext ctx, const MapMustEpochInput &input, MapMustEpochOutput &output) override |
| void | map_dataflow_graph (const MapperContext ctx, const MapDataflowGraphInput &input, MapDataflowGraphOutput &output) override |
| void | memoize_operation (const MapperContext ctx, const Mappable &mappable, const MemoizeInput &input, MemoizeOutput &output) override |
| void | select_tasks_to_map (const MapperContext ctx, const SelectMappingInput &input, SelectMappingOutput &output) override |
| void | select_steal_targets (const MapperContext ctx, const SelectStealingInput &input, SelectStealingOutput &output) override |
| void | permit_steal_request (const MapperContext ctx, const StealRequestInput &intput, StealRequestOutput &output) override |
| void | handle_message (const MapperContext ctx, const MapperMessage &message) override |
| void | handle_task_result (const MapperContext ctx, const MapperTaskResult &result) override |
Public Member Functions inherited from Legion::Mapping::Mapper | |
| Mapper (MapperRuntime *rt) | |
| virtual bool | request_valid_instances (void) const |
| virtual void | map_future_map_reduction (MapperContext ctx, const FutureMapReductionInput &input, FutureMapReductionOutput &output) |
| virtual void | handle_instance_collection (const MapperContext ctx, const PhysicalInstance &inst) |
Static Public Member Functions | |
| static const char * | create_debug_name (Processor p) |
Static Public Member Functions inherited from Legion::Mapping::ReplayMapper | |
| static const char * | create_replay_name (Processor p) |
Additional Inherited Members | |
Public Types inherited from Legion::Mapping::ReplayMapper | |
| enum | ReplayMessageKind { ID_MAPPING_MESSAGE , INSTANCE_MAPPING_MESSAGE , CREATE_INSTANCE_MESSAGE , INSTANCE_CREATION_MESSAGE , DECREMENT_USE_MESSAGE } |
Public Types inherited from Legion::Mapping::Mapper | |
| enum | MapperSyncModel { CONCURRENT_MAPPER_MODEL , SERIALIZED_REENTRANT_MAPPER_MODEL , SERIALIZED_NON_REENTRANT_MAPPER_MODEL } |
Public Attributes inherited from Legion::Mapping::Mapper | |
| MapperRuntime *const | runtime |
Protected Member Functions inherited from Legion::Mapping::ReplayMapper | |
| unsigned long | find_original_instance_id (MapperContext ctx, unsigned long current_id) |
| void | update_original_instance_id (MapperContext ctx, unsigned long current_id, unsigned long original_id) |
| InstanceInfo * | unpack_instance (FILE *f) const |
| TaskMappingInfo * | unpack_task_mapping (FILE *f) const |
| InlineMappingInfo * | unpack_inline_mapping (FILE *f) const |
| CopyMappingInfo * | unpack_copy_mapping (FILE *f) const |
| CloseMappingInfo * | unpack_close_mapping (FILE *f) const |
| ReleaseMappingInfo * | unpack_release_mapping (FILE *f) const |
| RequirementMapping * | unpack_requirement (FILE *f) const |
| TunableMapping * | unpack_tunable (FILE *f) const |
| TaskMappingInfo * | find_task_mapping (MapperContext ctx, const Task &task, const DomainPoint &p, bool parent=false) |
| InlineMappingInfo * | find_inline_mapping (MapperContext ctx, const InlineMapping &inline_op) |
| CopyMappingInfo * | find_copy_mapping (MapperContext ctx, const Copy ©) |
| CloseMappingInfo * | find_close_mapping (MapperContext ctx, const Close &close) |
| ReleaseMappingInfo * | find_release_mapping (MapperContext ctx, const Release &release) |
Static Protected Member Functions inherited from Legion::Mapping::ReplayMapper | |
| template<typename T > | |
| static void | ignore_result (T arg) |
Protected Attributes inherited from Legion::Mapping::ReplayMapper | |
| const Machine | machine |
| const Processor | local_proc |
| const char *const | mapper_name |
| std::map< unsigned long, InstanceInfo * > | instance_infos |
| std::map< std::pair< UniqueID, DomainPoint >, TaskMappingInfo * > | task_mappings |
| std::map< UniqueID, InlineMappingInfo * > | inline_mappings |
| std::map< UniqueID, CopyMappingInfo * > | copy_mappings |
| std::map< UniqueID, CloseMappingInfo * > | close_mappings |
| std::map< UniqueID, ReleaseMappingInfo * > | release_mappings |
| UniqueID | top_level_id |
| std::map< UniqueID, UniqueID > | original_mappings |
| std::map< UniqueID, MapperEvent > | pending_task_ids |
| std::map< unsigned long, unsigned long > | original_instances |
| std::map< unsigned long, MapperEvent > | pending_instance_ids |
The debug mapper is an extension of the replay mapper. It will replay all the mapping decisions as they were made in a previous run of the program. Additionally, the debug mapper permits for the setting of breakpoints and controlling of execution.