{"id":{"repo_id":"washington","oai_identifier":"oai:digital.lib.washington.edu:1773/56991"},"canonical_url":"https://search.ndltd.org/etd/washington/oai:digital.lib.washington.edu:1773/56991","repository":{"repo_id":"washington","name":"University of Washington","base_url":"https://digital.lib.washington.edu/server/oai/request"},"display":{"title":"Feature Extension of MASS C++ towards a General Purpose Library","abstract":"MASS (Multi-Agent Spatial Simulation) C++ is a parallel computing library for agent-based simulations on distributed memory clusters, organised around the Bulk Synchronous Parallel model and a master-worker coordination scheme. Three structural limitations have constrained its applicability as a general-purpose runtime. An integer-based method dispatch scheme couples user-defined Place and Agent classes to the framework and propagates renumbering errors silently. A per-iteration master coordination cost of K ×N (K operations ×N iterations) barrier round-trips dominates wall-clock time on communication-intensive workloads. And a Places abstraction restricted to regular grids leaves social, biological, and transportation graphs without first-class support. This thesis presents three feature extensions that address these limitations while preservingbackward compatibility with existing MASS C++ programs. A three-tier dispatch architecture replaces integer switch/case with string-named methods, header-defined lambdas, and JIT- compiled lambdas, unified through a single dispatch registry. A phase-pipeline builder (IterationConfig) backed by an asynchronous handle-based executor lets the user record an entire iteration as one dispatch, collapsing the K ×N master round-trip pattern into a single dispatch by allowing workers to advance through compute, communication, and agent-management phases autonomously. A graph stack extends MASS C++ from grid- only topologies to arbitrary graphs, with bidirectional adjacency, locality-aware edge-cut partitioning, edge-constrained agent migration, Pregel-inspired combiners and aggregators, and a pluggable parser interface for user-defined graph formats. This thesis evaluates the extensions on five benchmarks (Wave2D, SugarScape, PageRank,BFS Wavefront, and Random Walk) covering correctness, performance, and programmability. Compound execution reduces barrier round-trips by orders of magnitude and yields speedups that grow with the number of workers on Places-only workloads. SugarScape scaling exposes an O(P 2) bottleneck (where P is the worker count) in the existing all-to-all agent exchange protocol, which caps compound speedup as P grows and motivates the sparse neighbour-rank exchange that graph-migrating agents adopt. The graph stack also positions MASS C++ as the only system surveyed in Section 3 that supports mobile agents over irregular topologies while remaining a drop-in extension of the existing grid-based runtime. The new lambda dispatch tiers cut user-written lines of code by 20–34% across the evaluated benchmarks against native methods, at per-call overheads under∼15% on compute-heavy stencils and rising to∼25% on operation-dense agent workloads.","abstract_html":"MASS (Multi-Agent Spatial Simulation) C++ is a parallel computing library for agent-based simulations on distributed memory clusters, organised around the Bulk Synchronous Parallel model and a master-worker coordination scheme. Three structural limitations have constrained its applicability as a general-purpose runtime. An integer-based method dispatch scheme couples user-defined Place and Agent classes to the framework and propagates renumbering errors silently. A per-iteration master coordination cost of K ×N (K operations ×N iterations) barrier round-trips dominates wall-clock time on communication-intensive workloads. And a Places abstraction restricted to regular grids leaves social, biological, and transportation graphs without first-class support. This thesis presents three feature extensions that address these limitations while preservingbackward compatibility with existing MASS C++ programs. A three-tier dispatch architecture replaces integer switch/case with string-named methods, header-defined lambdas, and JIT- compiled lambdas, unified through a single dispatch registry. A phase-pipeline builder (IterationConfig) backed by an asynchronous handle-based executor lets the user record an entire iteration as one dispatch, collapsing the K ×N master round-trip pattern into a single dispatch by allowing workers to advance through compute, communication, and agent-management phases autonomously. A graph stack extends MASS C++ from grid- only topologies to arbitrary graphs, with bidirectional adjacency, locality-aware edge-cut partitioning, edge-constrained agent migration, Pregel-inspired combiners and aggregators, and a pluggable parser interface for user-defined graph formats. This thesis evaluates the extensions on five benchmarks (Wave2D, SugarScape, PageRank,BFS Wavefront, and Random Walk) covering correctness, performance, and programmability. Compound execution reduces barrier round-trips by orders of magnitude and yields speedups that grow with the number of workers on Places-only workloads. SugarScape scaling exposes an O(P 2) bottleneck (where P is the worker count) in the existing all-to-all agent exchange protocol, which caps compound speedup as P grows and motivates the sparse neighbour-rank exchange that graph-migrating agents adopt. The graph stack also positions MASS C++ as the only system surveyed in Section 3 that supports mobile agents over irregular topologies while remaining a drop-in extension of the existing grid-based runtime. The new lambda dispatch tiers cut user-written lines of code by 20–34% across the evaluated benchmarks against native methods, at per-call overheads under∼15% on compute-heavy stencils and rising to∼25% on operation-dense agent workloads.","abstract_has_math":false,"creators":["Pratap Singh, Rishabh"],"institution":null,"degree_name":null,"degree_level":null,"degree_discipline":null,"degree_department":null,"school":null,"contributors":[],"advisors":["Fukuda, Munehiro"],"committee_chairs":[],"committee_members":[],"year":2026,"date_issued":"2026-08-11","date_published":"2026-08-11","updated_at":"2026-11-18T20:09:31Z","subjects":["Computer science","Computing and software systems"],"languages":["en_US"],"rights":["CC BY"],"rights_urls":[],"identifier_entries":[{"key":"dc:identifier.other","label":"Dc Identifier Other","values":["PratapSingh_washington_0250O_29847.pdf"],"render_values":[{"text":"PratapSingh_washington_0250O_29847.pdf","href":null,"code":true}]}],"person_identifier_entries":[]},"links":{"outbound_url":"https://hdl.handle.net/1773/56991","outbound_label":"Handle","outbound_source":"dc:identifier.uri","record_url":"https://hdl.handle.net/1773/56991","record_label":"Repository record","record_kind":"handle","record_source":"dc:identifier.uri","access_status":null,"embargo_until":null,"access_note":null},"source_record":{"url":"https://digital.lib.washington.edu/server/oai/request?verb=GetRecord&metadataPrefix=dim&identifier=oai%3Adigital.lib.washington.edu%3A1773%2F56991","prefix":"dim"},"metadata_groups":[{"id":"people","label":"People","entries":[{"key":"dc:contributor.advisor","label":"Advisor","values":["Fukuda, Munehiro"]},{"key":"dc:creator","label":"Author","values":["Pratap Singh, Rishabh"]}]},{"id":"academic_context","label":"Academic Context","entries":[{"key":"dc:date.accessioned","label":"Dc Date Accessioned","values":["2026-08-11T19:18:30Z"]},{"key":"dc:date.issued","label":"Date","values":["2026-08-11"]},{"key":"dc:date.submitted","label":"Dc Date Submitted","values":["2026"]},{"key":"dc:type","label":"Dc Type","values":["Thesis"]}]},{"id":"subjects_keywords","label":"Subjects and Keywords","entries":[{"key":"dc:subject","label":"Dc Subject","values":["Computer science"]},{"key":"dc:subject.other","label":"Dc Subject Other","values":["Computing and software systems"]}]},{"id":"language_rights","label":"Language and Rights","entries":[{"key":"dc:language.iso","label":"Language (ISO)","values":["en_US"]},{"key":"dc:rights","label":"Dc Rights","values":["CC BY"]}]},{"id":"identifiers","label":"Identifiers","entries":[{"key":"dc:identifier.other","label":"Dc Identifier Other","values":["PratapSingh_washington_0250O_29847.pdf"]},{"key":"dc:identifier.uri","label":"Identifier URI","values":["https://hdl.handle.net/1773/56991"]}]},{"id":"additional","label":"Additional Metadata","entries":[{"key":"dc:description","label":"Description","values":["Thesis (Master's)--University of Washington, 2026"]},{"key":"dc:description.abstract","label":"Abstract","values":["MASS (Multi-Agent Spatial Simulation) C++ is a parallel computing library for agent-based simulations on distributed memory clusters, organised around the Bulk Synchronous Parallel model and a master-worker coordination scheme. Three structural limitations have constrained its applicability as a general-purpose runtime. An integer-based method dispatch scheme couples user-defined Place and Agent classes to the framework and propagates renumbering errors silently. A per-iteration master coordination cost of K ×N (K operations ×N iterations) barrier round-trips dominates wall-clock time on communication-intensive workloads. And a Places abstraction restricted to regular grids leaves social, biological, and transportation graphs without first-class support. This thesis presents three feature extensions that address these limitations while preservingbackward compatibility with existing MASS C++ programs. A three-tier dispatch architecture replaces integer switch/case with string-named methods, header-defined lambdas, and JIT- compiled lambdas, unified through a single dispatch registry. A phase-pipeline builder (IterationConfig) backed by an asynchronous handle-based executor lets the user record an entire iteration as one dispatch, collapsing the K ×N master round-trip pattern into a single dispatch by allowing workers to advance through compute, communication, and agent-management phases autonomously. A graph stack extends MASS C++ from grid- only topologies to arbitrary graphs, with bidirectional adjacency, locality-aware edge-cut partitioning, edge-constrained agent migration, Pregel-inspired combiners and aggregators, and a pluggable parser interface for user-defined graph formats. This thesis evaluates the extensions on five benchmarks (Wave2D, SugarScape, PageRank,BFS Wavefront, and Random Walk) covering correctness, performance, and programmability. Compound execution reduces barrier round-trips by orders of magnitude and yields speedups that grow with the number of workers on Places-only workloads. SugarScape scaling exposes an O(P 2) bottleneck (where P is the worker count) in the existing all-to-all agent exchange protocol, which caps compound speedup as P grows and motivates the sparse neighbour-rank exchange that graph-migrating agents adopt. The graph stack also positions MASS C++ as the only system surveyed in Section 3 that supports mobile agents over irregular topologies while remaining a drop-in extension of the existing grid-based runtime. The new lambda dispatch tiers cut user-written lines of code by 20–34% across the evaluated benchmarks against native methods, at per-call overheads under∼15% on compute-heavy stencils and rising to∼25% on operation-dense agent workloads."]},{"key":"dc:embargo.terms","label":"Dc Embargo Terms","values":["Open Access"]},{"key":"dc:format.mimetype","label":"Dc Format Mimetype","values":["application/pdf"]},{"key":"dc:title","label":"Title","values":["Feature Extension of MASS C++ towards a General Purpose Library"]},{"key":"others:access_status","label":"Others Access Status","values":["open.access"]}]}],"canonical_facts":{"dc:contributor.advisor":["Fukuda, Munehiro"],"dc:creator":["Pratap Singh, Rishabh"],"dc:date.accessioned":["2026-08-11T19:18:30Z"],"dc:date.issued":["2026-08-11"],"dc:date.submitted":["2026"],"dc:description":["Thesis (Master's)--University of Washington, 2026"],"dc:description.abstract":["MASS (Multi-Agent Spatial Simulation) C++ is a parallel computing library for agent-based simulations on distributed memory clusters, organised around the Bulk Synchronous Parallel model and a master-worker coordination scheme. Three structural limitations have constrained its applicability as a general-purpose runtime. An integer-based method dispatch scheme couples user-defined Place and Agent classes to the framework and propagates renumbering errors silently. A per-iteration master coordination cost of K ×N (K operations ×N iterations) barrier round-trips dominates wall-clock time on communication-intensive workloads. And a Places abstraction restricted to regular grids leaves social, biological, and transportation graphs without first-class support. This thesis presents three feature extensions that address these limitations while preservingbackward compatibility with existing MASS C++ programs. A three-tier dispatch architecture replaces integer switch/case with string-named methods, header-defined lambdas, and JIT- compiled lambdas, unified through a single dispatch registry. A phase-pipeline builder (IterationConfig) backed by an asynchronous handle-based executor lets the user record an entire iteration as one dispatch, collapsing the K ×N master round-trip pattern into a single dispatch by allowing workers to advance through compute, communication, and agent-management phases autonomously. A graph stack extends MASS C++ from grid- only topologies to arbitrary graphs, with bidirectional adjacency, locality-aware edge-cut partitioning, edge-constrained agent migration, Pregel-inspired combiners and aggregators, and a pluggable parser interface for user-defined graph formats. This thesis evaluates the extensions on five benchmarks (Wave2D, SugarScape, PageRank,BFS Wavefront, and Random Walk) covering correctness, performance, and programmability. Compound execution reduces barrier round-trips by orders of magnitude and yields speedups that grow with the number of workers on Places-only workloads. SugarScape scaling exposes an O(P 2) bottleneck (where P is the worker count) in the existing all-to-all agent exchange protocol, which caps compound speedup as P grows and motivates the sparse neighbour-rank exchange that graph-migrating agents adopt. The graph stack also positions MASS C++ as the only system surveyed in Section 3 that supports mobile agents over irregular topologies while remaining a drop-in extension of the existing grid-based runtime. The new lambda dispatch tiers cut user-written lines of code by 20–34% across the evaluated benchmarks against native methods, at per-call overheads under∼15% on compute-heavy stencils and rising to∼25% on operation-dense agent workloads."],"dc:embargo.terms":["Open Access"],"dc:format.mimetype":["application/pdf"],"dc:identifier.other":["PratapSingh_washington_0250O_29847.pdf"],"dc:identifier.uri":["https://hdl.handle.net/1773/56991"],"dc:language.iso":["en_US"],"dc:rights":["CC BY"],"dc:subject":["Computer science"],"dc:subject.other":["Computing and software systems"],"dc:title":["Feature Extension of MASS C++ towards a General Purpose Library"],"dc:type":["Thesis"],"others:access_status":["open.access"]},"updated_at":"2026-11-18T20:09:31Z"}