{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2025,10,12]],"date-time":"2025-10-12T04:48:03Z","timestamp":1760244483198,"version":"build-2065373602"},"reference-count":51,"publisher":"MDPI AG","issue":"11","license":[{"start":{"date-parts":[[2022,11,18]],"date-time":"2022-11-18T00:00:00Z","timestamp":1668729600000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["Computers"],"abstract":"<jats:p>The number of processing elements per solution is growing. From embedded devices now employing (often heterogeneous) multi-core processors, across many-core scientific computing platforms, to distributed systems comprising thousands of interconnected processors, parallel programming of one form or another is now the norm. Understanding how to efficiently parallelize code, however, is still an open problem, and the difficulties are exacerbated across heterogeneous processing, and especially at run time, when it is sometimes desirable to change the parallelization strategy to meet non-functional requirements (e.g., load balancing and power consumption). In this article, we investigate the use of a programming model based on series-parallel partial orders: computations are expressed as directed graphs that expose parallelization opportunities and necessary sequencing by construction. This programming model is suitable as an intermediate representation for higher-level languages. We then describe a model of computation for such a programming model that maps such graphs into a stack-based structure more amenable to hardware processing. We describe the formal small-step semantics for this model of computation and use this formal description to show that the model can be arbitrarily parallelized, at compile and runtime, with correct execution guaranteed by design. We empirically support this claim and evaluate parallelization benefits using a prototype open-source compiler, targeting a message-passing many-core simulation. We empirically verify the correctness of arbitrary parallelization, supporting the validity of our formal semantics, analyze the distribution of operations within cores to understand the implementation impact of the paradigm, and assess execution time improvements when five micro-benchmarks are automatically and randomly parallelized across 2 \u00d7 2 and 4 \u00d7 4 multi-core configurations, resulting in execution time decrease by up to 95% in the best case.<\/jats:p>","DOI":"10.3390\/computers11110164","type":"journal-article","created":{"date-parts":[[2022,11,21]],"date-time":"2022-11-21T03:07:23Z","timestamp":1669000043000},"page":"164","update-policy":"https:\/\/doi.org\/10.3390\/mdpi_crossmark_policy","source":"Crossref","is-referenced-by-count":0,"title":["Arbitrarily Parallelizable Code: A Model of Computation Evaluated on a Message-Passing Many-Core System"],"prefix":"10.3390","volume":"11","author":[{"given":"Sebastien","family":"Cook","sequence":"first","affiliation":[{"name":"Carleton University, Ottawa, ON K1S 5B6, Canada"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-1041-5205","authenticated-orcid":false,"given":"Paulo","family":"Garcia","sequence":"additional","affiliation":[{"name":"Carnegie Mellon-KMITL Thailand Program, CMKL University, Bangkok 10520, Thailand"}],"role":[{"role":"author","vocabulary":"crossref"}]}],"member":"1968","published-online":{"date-parts":[[2022,11,18]]},"reference":[{"key":"ref_1","doi-asserted-by":"crossref","unstructured":"Rau, B.R., and Fisher, J.A. (1993). Instruction-level parallel processing: History, overview, and perspective. Instruction-Level Parallelism, Springer.","DOI":"10.1007\/978-1-4615-3200-2"},{"key":"ref_2","doi-asserted-by":"crossref","unstructured":"Krishnaiyer, R., Kultursay, E., Chawla, P., Preis, S., Zvezdin, A., and Saito, H. (2013, January 20\u201324). Compiler-based data prefetching and streaming non-temporal store generation for the intel (r) xeon phi (tm) coprocessor. Proceedings of the 2013 IEEE International Symposium on Parallel & Distributed Processing, Workshops and Phd Forum, Cambridge, MA, USA.","DOI":"10.1109\/IPDPSW.2013.231"},{"key":"ref_3","doi-asserted-by":"crossref","first-page":"342","DOI":"10.1109\/TPDS.2009.41","article-title":"On the interplay of parallelization, program performance, and energy consumption","volume":"21","author":"Cho","year":"2009","journal-title":"IEEE Trans. Parallel Distrib. Syst."},{"key":"ref_4","doi-asserted-by":"crossref","first-page":"1369","DOI":"10.1109\/TPDS.2011.308","article-title":"A survey of parallel programming models and tools in the multi and many-core era","volume":"23","author":"Diaz","year":"2012","journal-title":"IEEE Trans. Parallel Distrib. Syst."},{"key":"ref_5","doi-asserted-by":"crossref","unstructured":"Lukefahr, A., Padmanabha, S., Das, R., Dreslinski, R., Wenisch, T.F., and Mahlke, S. (2014, January 24\u201327). Heterogeneous microarchitectures trump voltage scaling for low-power cores. Proceedings of the Proceedings of the 23rd International Conference on Parallel Architectures and Compilation, Edmonton, AB, Canada.","DOI":"10.1145\/2628071.2628078"},{"key":"ref_6","first-page":"21","article-title":"Exploiting partial runtime reconfiguration for high-performance reconfigurable computing","volume":"1","author":"Gonzalez","year":"2009","journal-title":"ACM Trans. Reconfigurable Technol. Syst. (TRETS)"},{"key":"ref_7","first-page":"72","article-title":"Achieving energy efficiency through runtime partial reconfiguration on reconfigurable systems","volume":"12","author":"Liu","year":"2013","journal-title":"ACM Trans. Embed. Comput. Syst. (TECS)"},{"key":"ref_8","doi-asserted-by":"crossref","unstructured":"Leung, S.T., and Zahorjan, J. (1993, January 19\u201323). Improving the performance of runtime parallelization. Proceedings of the Fourth ACM SIGPLAN Symposium on Principles and Practice of Parallel Programming, New York, NY, USA.","DOI":"10.1145\/155332.155341"},{"key":"ref_9","doi-asserted-by":"crossref","first-page":"1","DOI":"10.1145\/3300208","article-title":"Accelerating Synchronization Using Moving Compute to Data Model at 1,000-Core Multicore Scale","volume":"16","author":"Dogan","year":"2019","journal-title":"ACM Trans. Archit. Code Optim."},{"key":"ref_10","doi-asserted-by":"crossref","first-page":"49474","DOI":"10.1109\/ACCESS.2019.2910932","article-title":"Towards energy-efficient heterogeneous multicore architectures for edge computing","volume":"7","author":"Devic","year":"2019","journal-title":"IEEE Access"},{"key":"ref_11","doi-asserted-by":"crossref","first-page":"1","DOI":"10.1145\/3378934","article-title":"A Novel, Highly Integrated Simulator for Parallel and Distributed Systems","volume":"17","author":"Tampouratzis","year":"2020","journal-title":"ACM Trans. Archit. Code Optim."},{"key":"ref_12","doi-asserted-by":"crossref","first-page":"615","DOI":"10.1017\/S0956796804005489","article-title":"A parallel SML compiler based on algorithmic skeletons","volume":"15","author":"Scaife","year":"2005","journal-title":"J. Funct. Program."},{"key":"ref_13","unstructured":"Butko, A., Bruguier, F., Gamati\u00e9, A., and Sassatelli, G. (2017, January 20). Efficient programming for multicore processor heterogeneity: Openmp versus ompss. Proceedings of the OpenSuCo, Frankfurt, Germany."},{"key":"ref_14","doi-asserted-by":"crossref","first-page":"1422","DOI":"10.1007\/s11227-018-2238-4","article-title":"A taxonomy of task-based parallel programming technologies for high-performance computing","volume":"74","author":"Thoman","year":"2018","journal-title":"J. Supercomput."},{"key":"ref_15","doi-asserted-by":"crossref","unstructured":"Ying, V.A., Jeffrey, M.C., and Sanchez, D. (June, January 30). T4: Compiling sequential code for effective speculative parallelization in hardware. Proceedings of the 2020 ACM\/IEEE 47th Annual International Symposium on Computer Architecture (ISCA), Valencia, Spain.","DOI":"10.1109\/ISCA45697.2020.00024"},{"key":"ref_16","first-page":"21","article-title":"A Non-Intrusive Tool Chain to Optimize MPSoC End-to-End Systems","volume":"18","author":"Martin","year":"2021","journal-title":"ACM Trans. Archit. Code Optim. (TACO)"},{"key":"ref_17","doi-asserted-by":"crossref","first-page":"1","DOI":"10.1145\/3427093","article-title":"Efficient Auto-Tuning of Parallel Programs with Interdependent Tuning Parameters via Auto-Tuning Framework (ATF)","volume":"18","author":"Rasch","year":"2021","journal-title":"ACM Trans. Archit. Code Optim."},{"key":"ref_18","doi-asserted-by":"crossref","unstructured":"Muller, S.K., Singer, K., Goldstein, N., Acar, U.A., Agrawal, K., and Lee, I.T.A. (2020, January 15\u201320). Responsive parallelism with futures and state. Proceedings of the 41st ACM SIGPLAN Conference on Programming Language Design and Implementation, London, UK.","DOI":"10.1145\/3385412.3386013"},{"key":"ref_19","doi-asserted-by":"crossref","first-page":"9","DOI":"10.1145\/3431388","article-title":"Exploiting Parallelism Opportunities with Deep Learning Frameworks","volume":"18","author":"Wang","year":"2021","journal-title":"ACM Trans. Archit. Code Optim."},{"key":"ref_20","first-page":"36","article-title":"A comprehensive survey on parallelization and elasticity in stream processing","volume":"52","author":"Mayer","year":"2019","journal-title":"ACM Comput. Surv. (CSUR)"},{"key":"ref_21","doi-asserted-by":"crossref","first-page":"57","DOI":"10.1007\/s10617-019-09220-7","article-title":"A survey on partitioning models, solution algorithms and algorithm parallelization for hardware\/software co-design","volume":"23","author":"Hou","year":"2019","journal-title":"Des. Autom. Embed. Syst."},{"key":"ref_22","doi-asserted-by":"crossref","first-page":"144","DOI":"10.1145\/2627350","article-title":"Sequentially Constructive Concurrency\u2014A Conservative Extension of the Synchronous Model of Computation","volume":"13","author":"Hanxleden","year":"2014","journal-title":"ACM Trans. Embed. Comput. Syst."},{"key":"ref_23","doi-asserted-by":"crossref","unstructured":"Hokkanen, J., Kraus, J., Herten, A., Pleiter, D., and Kollet, S. (2020, January 4\u20138). Accelerated hydrologic modeling: ParFlow GPU implementation. Proceedings of the EGU General Assembly Conference Abstracts, Online.","DOI":"10.5194\/egusphere-egu2020-12904"},{"key":"ref_24","doi-asserted-by":"crossref","unstructured":"Forster, Y., and Smolka, G. (2017, January 26\u201329). Weak call-by-value lambda calculus as a model of computation in Coq. Proceedings of the International Conference on Interactive Theorem Proving, Bras\u00edlia, Brazil.","DOI":"10.1007\/978-3-319-66107-0_13"},{"key":"ref_25","doi-asserted-by":"crossref","unstructured":"Cristescu, I.D., Krivine, J., and Varacca, D. (2015, January 29\u201331). Rigid Families for CCS and the Pi-calculus. Proceedings of the International Colloquium on Theoretical Aspects of Computing, Cali, Colombia.","DOI":"10.1007\/978-3-319-25150-9_14"},{"key":"ref_26","doi-asserted-by":"crossref","first-page":"427","DOI":"10.1145\/2076021.2048101","article-title":"Two for the price of one: A model for parallel and incremental computation","volume":"46","author":"Burckhardt","year":"2011","journal-title":"ACM SIGPLAN Not."},{"key":"ref_27","doi-asserted-by":"crossref","unstructured":"Gao, G.R., Sterling, T., Stevens, R., Hereld, M., and Zhu, W. (2007, January 26\u201330). ParalleX: A Study of A New Parallel Computation Model. Proceedings of the 2007 IEEE International Parallel and Distributed Processing Symposium, Long Beach, CA, USA.","DOI":"10.1109\/IPDPS.2007.370484"},{"key":"ref_28","doi-asserted-by":"crossref","unstructured":"Fryer, J., and Garcia, P. (2020, January 8\u201311). Towards a Programming Paradigm for Reconfigurable Computing: Asynchronous Graph Programming. Proceedings of the 2020 25th IEEE International Conference on Emerging Technologies and Factory Automation (ETFA), Vienna, Austria.","DOI":"10.1109\/ETFA46521.2020.9211968"},{"key":"ref_29","doi-asserted-by":"crossref","first-page":"237","DOI":"10.1145\/1165389.945468","article-title":"RacerX: Effective, static detection of race conditions and deadlocks","volume":"37","author":"Engler","year":"2003","journal-title":"ACM SIGOPS Oper. Syst. Rev."},{"key":"ref_30","doi-asserted-by":"crossref","unstructured":"Coelho, R., Tanus, F., Moreira, A., and Nazar, G. (2020, January 6\u20138). ACQuA: A Parallel Accelerator Architecture for Pure Functional Programs. Proceedings of the 2020 IEEE Computer Society Annual Symposium on VLSI (ISVLSI), Limassol, Cyprus.","DOI":"10.1109\/ISVLSI49217.2020.00070"},{"key":"ref_31","doi-asserted-by":"crossref","unstructured":"Lifflander, J., and Krishnamoorthy, S. (2017, January 18\u201323). Cache locality optimization for recursive programs. Proceedings of the 38th ACM SIGPLAN Conference on Programming Language Design and Implementation, Barcelona, Spain.","DOI":"10.1145\/3062341.3062385"},{"key":"ref_32","doi-asserted-by":"crossref","unstructured":"Molka, D., Hackenberg, D., Schone, R., and Muller, M.S. (2009, January 12\u201316). Memory performance and cache coherency effects on an intel nehalem multiprocessor system. Proceedings of the 2009 18th International Conference on Parallel Architectures and Compilation Techniques, Raleigh, NC, USA.","DOI":"10.1109\/PACT.2009.22"},{"key":"ref_33","unstructured":"Cyphers, S., Bansal, A.K., Bhiwandiwalla, A., Bobba, J., Brookhart, M., Chakraborty, A., Constable, W., Convey, C., Cook, L., and Kanawi, O. (2018). Intel ngraph: An intermediate representation, compiler, and executor for deep learning. arXiv."},{"key":"ref_34","doi-asserted-by":"crossref","unstructured":"Tiganourias, E., Mavropoulos, M., Keramidas, G., Kelefouras, V., Antonopoulos, C.P., and Voros, N. (2021, January 7\u201310). A Hierarchical Profiler of Intermediate Representation Code based on LLVM. Proceedings of the 2021 10th Mediterranean Conference on Embedded Computing (MECO), Budva, Montenegro.","DOI":"10.1109\/MECO52532.2021.9460203"},{"key":"ref_35","doi-asserted-by":"crossref","first-page":"2262","DOI":"10.1109\/TVLSI.2015.2504871","article-title":"Streaming elements for FPGA signal and image processing accelerators","volume":"24","author":"Wang","year":"2016","journal-title":"IEEE Trans. Very Large Scale Integr. (VLSI) Syst."},{"key":"ref_36","doi-asserted-by":"crossref","first-page":"16","DOI":"10.1145\/2925988","article-title":"DRFx: An Understandable, High Performance, and Flexible Memory Model for Concurrent Languages","volume":"38","author":"Marino","year":"2016","journal-title":"ACM Trans. Program. Lang. Syst."},{"key":"ref_37","doi-asserted-by":"crossref","first-page":"15","DOI":"10.1145\/3428153","article-title":"Systems-on-Chip with Strong Ordering","volume":"18","author":"Puthoor","year":"2021","journal-title":"ACM Trans. Archit. Code Optim."},{"key":"ref_38","doi-asserted-by":"crossref","first-page":"35","DOI":"10.1145\/3418597","article-title":"LLOV: A Fast Static Data-Race Checker for OpenMP Programs","volume":"17","author":"Bora","year":"2020","journal-title":"ACM Trans. Archit. Code Optim."},{"key":"ref_39","doi-asserted-by":"crossref","first-page":"4","DOI":"10.1145\/2818638","article-title":"Verifying Custom Synchronization Constructs Using Higher-Order Separation Logic","volume":"38","author":"Dodds","year":"2016","journal-title":"ACM Trans. Program. Lang. Syst."},{"key":"ref_40","doi-asserted-by":"crossref","first-page":"12","DOI":"10.1145\/2994595","article-title":"From Clarity to Efficiency for Distributed Algorithms","volume":"39","author":"Liu","year":"2017","journal-title":"ACM Trans. Program. Lang. Syst."},{"key":"ref_41","doi-asserted-by":"crossref","first-page":"12","DOI":"10.1145\/2896389","article-title":"The Pluto+ Algorithm: A Practical Approach for Parallelization and Locality Optimization of Affine Loop Nests","volume":"38","author":"Bondhugula","year":"2016","journal-title":"ACM Trans. Program. Lang. Syst."},{"key":"ref_42","doi-asserted-by":"crossref","first-page":"26","DOI":"10.1145\/3416510","article-title":"Effective Loop Fusion in Polyhedral Compilation Using Fusion Conflict Graphs","volume":"17","author":"Acharya","year":"2020","journal-title":"ACM Trans. Archit. Code Optim."},{"key":"ref_43","doi-asserted-by":"crossref","first-page":"28","DOI":"10.1145\/3414469","article-title":"DisGCo: A Compiler for Distributed Graph Analytics","volume":"17","author":"Rajendran","year":"2020","journal-title":"ACM Trans. Archit. Code Optim."},{"key":"ref_44","doi-asserted-by":"crossref","first-page":"29","DOI":"10.1145\/3416495","article-title":"AsynGraph: Maximizing Data Parallelism for Efficient Iterative Graph Processing on GPUs","volume":"17","author":"Zhang","year":"2020","journal-title":"ACM Trans. Archit. Code Optim."},{"key":"ref_45","doi-asserted-by":"crossref","first-page":"249","DOI":"10.1145\/3155284.3018758","article-title":"Tapir: Embedding Fork-Join Parallelism into LLVM\u2019s Intermediate Representation","volume":"52","author":"Schardl","year":"2017","journal-title":"SIGPLAN Not."},{"key":"ref_46","first-page":"5","article-title":"Compiler-Driven Software Speculation for Thread-Level Parallelism","volume":"38","author":"Yiapanis","year":"2015","journal-title":"ACM Trans. Program. Lang. Syst."},{"key":"ref_47","doi-asserted-by":"crossref","first-page":"2","DOI":"10.1145\/3436808","article-title":"CSim2: Compositional Top-down Verification of Concurrent Systems Using Rely-Guarantee","volume":"43","author":"Sanan","year":"2021","journal-title":"ACM Trans. Program. Lang. Syst."},{"key":"ref_48","first-page":"17","article-title":"Chocola: Composable Concurrency Language","volume":"42","author":"Swalens","year":"2021","journal-title":"ACM Trans. Program. Lang. Syst."},{"key":"ref_49","doi-asserted-by":"crossref","first-page":"5","DOI":"10.1145\/3039207","article-title":"SPL: An Extensible Language for Distributed Stream Processing","volume":"39","author":"Hirzel","year":"2017","journal-title":"ACM Trans. Program. Lang. Syst."},{"key":"ref_50","doi-asserted-by":"crossref","first-page":"2004","DOI":"10.1109\/JPROC.2018.2853600","article-title":"The ongoing evolution of openmp","volume":"106","author":"Scogland","year":"2018","journal-title":"Proc. IEEE"},{"key":"ref_51","doi-asserted-by":"crossref","first-page":"251","DOI":"10.1006\/jpdc.1994.1085","article-title":"Direct Bulk-Synchronous Parallel Algorithms","volume":"22","author":"Gerbessiotis","year":"1994","journal-title":"J. Parallel Distrib. Comput."}],"container-title":["Computers"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/www.mdpi.com\/2073-431X\/11\/11\/164\/pdf","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,10,11]],"date-time":"2025-10-11T01:21:32Z","timestamp":1760145692000},"score":1,"resource":{"primary":{"URL":"https:\/\/www.mdpi.com\/2073-431X\/11\/11\/164"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2022,11,18]]},"references-count":51,"journal-issue":{"issue":"11","published-online":{"date-parts":[[2022,11]]}},"alternative-id":["computers11110164"],"URL":"https:\/\/doi.org\/10.3390\/computers11110164","relation":{},"ISSN":["2073-431X"],"issn-type":[{"type":"electronic","value":"2073-431X"}],"subject":[],"published":{"date-parts":[[2022,11,18]]}}}