{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,11,5]],"date-time":"2026-11-05T02:52:53Z","timestamp":1793847173482,"version":"4.6.1"},"reference-count":41,"publisher":"Association for Computing Machinery (ACM)","issue":"PLDI","license":[{"start":{"date-parts":[[2023,6,6]],"date-time":"2023-06-06T00:00:00Z","timestamp":1686009600000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"funder":[{"DOI":"10.13039\/501100000266","name":"Engineering and Physical Sciences Research Council","doi-asserted-by":"publisher","award":["EP\/V038699\/1, EP\/V028154\/1"],"award-info":[{"award-number":["EP\/V038699\/1, EP\/V028154\/1"]}],"id":[{"id":"10.13039\/501100000266","id-type":"DOI","asserted-by":"publisher"}]}],"content-domain":{"domain":["dl.acm.org"],"crossmark-restriction":true},"short-container-title":["Proc. ACM Program. Lang."],"published-print":{"date-parts":[[2023,6,6]]},"abstract":"<jats:p>Today's mobile, desktop, and server processors are heterogeneous, consisting not only of CPUs but also GPUs and other accelerators. Such heterogeneous processors are starting to expose a shared memory interface across these devices.Given that each of these individual devices typically supports a distinct instruction set architecture and a distinct memory consistency model, it is not clear what the memory consistency model of the heterogeneous machine should be. In this paper, we answer this question by formalizing \"compound\" memory models: we present a compositional operational model describing the resulting model when devices with distinct consistency models are fused together. We instantiate our model with the compound x86TSO\/PTX model -- a CPU enforcing x86TSO and a GPU enforcing the PTX model. A key result is that the x86TSO\/PTX compound model retains compiler mappings from the language-based (scoped) C memory model. This means that threads mapped to the x86TSO device can continue to use the already proven C-to-x86TSO compiler mapping, and the same for PTX.<\/jats:p>","DOI":"10.1145\/3591267","type":"journal-article","created":{"date-parts":[[2023,6,6]],"date-time":"2023-06-06T20:06:24Z","timestamp":1686081984000},"page":"1145-1168","update-policy":"https:\/\/doi.org\/10.1145\/crossmark-policy","source":"Crossref","is-referenced-by-count":15,"title":["Compound Memory Models"],"prefix":"10.1145","volume":"7","author":[{"ORCID":"https:\/\/orcid.org\/0000-0002-0409-1363","authenticated-orcid":false,"given":"Andr\u00e9s","family":"Goens","sequence":"first","affiliation":[{"name":"University of Edinburgh, UK"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-4454-2050","authenticated-orcid":false,"given":"Soham","family":"Chakraborty","sequence":"additional","affiliation":[{"name":"TU Delft, Netherlands"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-4259-9213","authenticated-orcid":false,"given":"Susmit","family":"Sarkar","sequence":"additional","affiliation":[{"name":"University of St Andrews, UK"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0003-1292-3235","authenticated-orcid":false,"given":"Sukarn","family":"Agarwal","sequence":"additional","affiliation":[{"name":"University of Edinburgh, UK"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0009-0009-9272-0518","authenticated-orcid":false,"given":"Nicolai","family":"Oswald","sequence":"additional","affiliation":[{"name":"NVIDIA Research, Switzerland"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0009-0000-5045-4754","authenticated-orcid":false,"given":"Vijay","family":"Nagarajan","sequence":"additional","affiliation":[{"name":"University of Edinburgh, UK"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"320","published-online":{"date-parts":[[2023,6,6]]},"reference":[{"key":"e_1_2_2_1_1","doi-asserted-by":"publisher","DOI":"10.1145\/3458926"},{"key":"e_1_2_2_2_1","unstructured":"Jade Alglave and Luc Maranget. 2022. herd7 consistency model simulator. http:\/\/diy.inria.fr\/www\/ \t\t\t\t  Jade Alglave and Luc Maranget. 2022. herd7 consistency model simulator. http:\/\/diy.inria.fr\/www\/"},{"key":"e_1_2_2_3_1","doi-asserted-by":"publisher","DOI":"10.1145\/2627752"},{"key":"e_1_2_2_4_1","volume-title":"AMD Instinct\u2122 MI200 Series Accelerator and Node Architectures. https:\/\/chipsandcheese.com\/2022\/09\/18\/hot-chips-34-amds-instinct-mi200-architecture\/ Accessed: 9th","author":"AMD.","year":"2022","unstructured":"AMD. 2022. AMD Instinct\u2122 MI200 Series Accelerator and Node Architectures. https:\/\/chipsandcheese.com\/2022\/09\/18\/hot-chips-34-amds-instinct-mi200-architecture\/ Accessed: 9th September 2022 AMD. 2022. AMD Instinct\u2122 MI200 Series Accelerator and Node Architectures. https:\/\/chipsandcheese.com\/2022\/09\/18\/hot-chips-34-amds-instinct-mi200-architecture\/ Accessed: 9th September 2022"},{"key":"e_1_2_2_5_1","volume-title":"AMD ROCm Memory model. https:\/\/rocmdocs.amd.com\/en\/latest\/ROCm_Compiler_SDK\/ROCm-Codeobj-format.html##memory-model Accessed: 8th","author":"AMD.","year":"2022","unstructured":"AMD. 2022. AMD ROCm Memory model. https:\/\/rocmdocs.amd.com\/en\/latest\/ROCm_Compiler_SDK\/ROCm-Codeobj-format.html##memory-model Accessed: 8th August 2022 AMD. 2022. AMD ROCm Memory model. https:\/\/rocmdocs.amd.com\/en\/latest\/ROCm_Compiler_SDK\/ROCm-Codeobj-format.html##memory-model Accessed: 8th August 2022"},{"key":"e_1_2_2_6_1","unstructured":"ARM. 2011. Atomicity in the ARM Architecture. https:\/\/developer.arm.com\/documentation\/ddi0406\/c\/Application-Level-Architecture\/Application-Level-Memory-Model\/Memory-types-and-attributes-and-the-memory-order-model\/Atomicity-in-the-ARM-architecture Accessed: 20th March 2023 \t\t\t\t  ARM. 2011. Atomicity in the ARM Architecture. https:\/\/developer.arm.com\/documentation\/ddi0406\/c\/Application-Level-Architecture\/Application-Level-Memory-Model\/Memory-types-and-attributes-and-the-memory-order-model\/Atomicity-in-the-ARM-architecture Accessed: 20th March 2023"},{"key":"e_1_2_2_7_1","unstructured":"2018. ARM Architecture Reference Manual ARMv8 for ARMv8-A architecture profile. Initial v8.4 EAC release \t\t\t\t  2018. ARM Architecture Reference Manual ARMv8 for ARMv8-A architecture profile. Initial v8.4 EAC release"},{"key":"e_1_2_2_8_1","volume-title":"The AMBA CHI Specification. https:\/\/developer.arm.com\/architectures\/system-architectures\/amba\/amba-5 Accessed: 5th","author":"ARM.","year":"2022","unstructured":"ARM. 2021. The AMBA CHI Specification. https:\/\/developer.arm.com\/architectures\/system-architectures\/amba\/amba-5 Accessed: 5th July 2022 ARM. 2021. The AMBA CHI Specification. https:\/\/developer.arm.com\/architectures\/system-architectures\/amba\/amba-5 Accessed: 5th July 2022"},{"key":"e_1_2_2_9_1","article-title":"Compositional relaxed concurrency","volume":"375","author":"Batty Mark","year":"2017","unstructured":"Mark Batty . 2017 . Compositional relaxed concurrency . Philosophical Transactions of the Royal Society A: Mathematical, Physical and Engineering Sciences , 375 , 2104 (2017), September , https:\/\/kar.kent.ac.uk\/64300\/ Mark Batty. 2017. Compositional relaxed concurrency. Philosophical Transactions of the Royal Society A: Mathematical, Physical and Engineering Sciences, 375, 2104 (2017), September, https:\/\/kar.kent.ac.uk\/64300\/","journal-title":"Philosophical Transactions of the Royal Society A: Mathematical, Physical and Engineering Sciences"},{"key":"e_1_2_2_10_1","doi-asserted-by":"publisher","DOI":"10.1145\/1926385.1926394"},{"key":"e_1_2_2_11_1","volume-title":"CGO \u201917","author":"Chakraborty Soham","unstructured":"Soham Chakraborty and Viktor Vafeiadis . 2017. Formalizing the Concurrency Semantics of an LLVM Fragment . In CGO \u201917 . IEEE , 100\u2013110. Soham Chakraborty and Viktor Vafeiadis. 2017. Formalizing the Concurrency Semantics of an LLVM Fragment. In CGO \u201917. IEEE, 100\u2013110."},{"key":"e_1_2_2_12_1","doi-asserted-by":"publisher","DOI":"10.1145\/3290383"},{"key":"e_1_2_2_13_1","volume-title":"Compute Express Link. https:\/\/www.computeexpresslink.org\/ Accessed: 5th","author":"CXL.","year":"2022","unstructured":"CXL. 2022. Compute Express Link. https:\/\/www.computeexpresslink.org\/ Accessed: 5th July 2022 CXL. 2022. Compute Express Link. https:\/\/www.computeexpresslink.org\/ Accessed: 5th July 2022"},{"key":"e_1_2_2_14_1","volume-title":"International Conference on Automated Deduction. 625\u2013635","author":"de Moura Leonardo","year":"2021","unstructured":"Leonardo de Moura and Sebastian Ullrich . 2021 . The Lean 4 Theorem Prover and Programming Language . In International Conference on Automated Deduction. 625\u2013635 . Leonardo de Moura and Sebastian Ullrich. 2021. The Lean 4 Theorem Prover and Programming Language. In International Conference on Automated Deduction. 625\u2013635."},{"key":"e_1_2_2_15_1","volume-title":"POPL","author":"Flur Shaked","year":"2016","unstructured":"Shaked Flur , Kathryn E. Gray , Christopher Pulte , Susmit Sarkar , Ali Sezgin , Luc Maranget , Will Deacon , and Peter Sewell . 2016 . Modelling the ARMv8 architecture, operationally: concurrency and ISA . In POPL 2016. 608\u2013621. Shaked Flur, Kathryn E. Gray, Christopher Pulte, Susmit Sarkar, Ali Sezgin, Luc Maranget, Will Deacon, and Peter Sewell. 2016. Modelling the ARMv8 architecture, operationally: concurrency and ISA. In POPL 2016. 608\u2013621."},{"key":"e_1_2_2_16_1","doi-asserted-by":"crossref","unstructured":"Shaked Flur Susmit Sarkar Christopher Pulte Kyndylan Nienhuis Luc Maranget Kathryn E. Gray Ali Sezgin Mark Batty and Peter Sewell. 2017. Mixed-size concurrency: ARM POWER C\/C++11 and SC. In POPL\u201917. \t\t\t\t  Shaked Flur Susmit Sarkar Christopher Pulte Kyndylan Nienhuis Luc Maranget Kathryn E. Gray Ali Sezgin Mark Batty and Peter Sewell. 2017. Mixed-size concurrency: ARM POWER C\/C++11 and SC. In POPL\u201917.","DOI":"10.1145\/3009837.3009839"},{"key":"e_1_2_2_17_1","doi-asserted-by":"publisher","DOI":"10.5281\/zenodo.7798646"},{"key":"e_1_2_2_18_1","volume-title":"Proceedings of the 19th International Conference on Architectural Support for Programming Languages and Operating Systems.","author":"Hower Derek R.","unstructured":"Derek R. Hower , Blake A. Hechtman , Bradford M. Beckmann , Benedict R. Gaster , Mark D. Hill , Steven K. Reinhardt , and David A. Wood . 2014. Heterogeneous-race-free Memory Models . In Proceedings of the 19th International Conference on Architectural Support for Programming Languages and Operating Systems. Derek R. Hower, Blake A. Hechtman, Bradford M. Beckmann, Benedict R. Gaster, Mark D. Hill, Steven K. Reinhardt, and David A. Wood. 2014. Heterogeneous-race-free Memory Models. In Proceedings of the 19th International Conference on Architectural Support for Programming Languages and Operating Systems."},{"key":"e_1_2_2_19_1","unstructured":"HSA Foundation. 2012. Heterogeneous System Architecture: A Technical Review. \t\t\t\t  HSA Foundation. 2012. Heterogeneous System Architecture: A Technical Review."},{"key":"e_1_2_2_20_1","doi-asserted-by":"publisher","DOI":"10.1145\/3485497"},{"key":"e_1_2_2_21_1","unstructured":"ISO\/IEC 14882. 2011. Programming Language C++. \t\t\t\t  ISO\/IEC 14882. 2011. Programming Language C++."},{"key":"e_1_2_2_22_1","unstructured":"ISO\/IEC 9899. 2011. Programming Language C. \t\t\t\t  ISO\/IEC 9899. 2011. Programming Language C."},{"key":"e_1_2_2_23_1","volume-title":"Software Abstractions: logic, language, and analysis","author":"Jackson Daniel","unstructured":"Daniel Jackson . 2012. Software Abstractions: logic, language, and analysis . MIT press . Daniel Jackson. 2012. Software Abstractions: logic, language, and analysis. MIT press."},{"key":"e_1_2_2_24_1","doi-asserted-by":"publisher","DOI":"10.1145\/3009837.3009850"},{"key":"e_1_2_2_25_1","doi-asserted-by":"publisher","DOI":"10.1145\/3062341.3062352"},{"key":"e_1_2_2_26_1","doi-asserted-by":"publisher","DOI":"10.1109\/TC.1979.1675439"},{"key":"e_1_2_2_27_1","unstructured":"Jason Lowe-Power Abdul Mutaal Ahmad Ayaz Akram Mohammad Alian Rico Amslinger Matteo Andreozzi Adri\u00e0 Armejach Nils Asmussen Srikant Bharadwaj Gabe Black Gedare Bloom Bobby R. Bruce Daniel Rodrigues Carvalho Jer\u00f3nimo Castrill\u00f3n Lizhong Chen Nicolas Derumigny Stephan Diestelhorst Wendy Elsasser Marjan Fariborz Amin Farmahini Farahani Pouya Fotouhi Ryan Gambord Jayneel Gandhi Dibakar Gope Thomas Grass Bagus Hanindhito Andreas Hansson Swapnil Haria Austin Harris Timothy Hayes Adrian Herrera Matthew Horsnell Syed Ali Raza Jafri Radhika Jagtap Hanhwi Jang Reiley Jeyapaul Timothy M. Jones Matthias Jung Subash Kannoth Hamidreza Khaleghzadeh Yuetsu Kodama Tushar Krishna Tommaso Marinelli Christian Menard Andrea Mondelli Tiago M\u00fcck Omar Naji Krishnendra Nathella Hoa Nguyen Nikos Nikoleris Lena E. Olson Marc S. Orr Binh Pham Pablo Prieto Trivikram Reddy Alec Roelke Mahyar Samani Andreas Sandberg Javier Setoain Boris Shingarov Matthew D. Sinclair Tuan Ta Rahul Thakur Giacomo Travaglini Michael Upton Nilay Vaish Ilias Vougioukas Zhengrong Wang Norbert Wehn Christian Weis David A. Wood Hongil Yoon and \u00c9der F. Zulian. 2020. The gem5 Simulator: Version 20.0+. CoRR abs\/2007.03152 (2020) arXiv:2007.03152. arxiv:2007.03152 \t\t\t\t  Jason Lowe-Power Abdul Mutaal Ahmad Ayaz Akram Mohammad Alian Rico Amslinger Matteo Andreozzi Adri\u00e0 Armejach Nils Asmussen Srikant Bharadwaj Gabe Black Gedare Bloom Bobby R. Bruce Daniel Rodrigues Carvalho Jer\u00f3nimo Castrill\u00f3n Lizhong Chen Nicolas Derumigny Stephan Diestelhorst Wendy Elsasser Marjan Fariborz Amin Farmahini Farahani Pouya Fotouhi Ryan Gambord Jayneel Gandhi Dibakar Gope Thomas Grass Bagus Hanindhito Andreas Hansson Swapnil Haria Austin Harris Timothy Hayes Adrian Herrera Matthew Horsnell Syed Ali Raza Jafri Radhika Jagtap Hanhwi Jang Reiley Jeyapaul Timothy M. Jones Matthias Jung Subash Kannoth Hamidreza Khaleghzadeh Yuetsu Kodama Tushar Krishna Tommaso Marinelli Christian Menard Andrea Mondelli Tiago M\u00fcck Omar Naji Krishnendra Nathella Hoa Nguyen Nikos Nikoleris Lena E. Olson Marc S. Orr Binh Pham Pablo Prieto Trivikram Reddy Alec Roelke Mahyar Samani Andreas Sandberg Javier Setoain Boris Shingarov Matthew D. Sinclair Tuan Ta Rahul Thakur Giacomo Travaglini Michael Upton Nilay Vaish Ilias Vougioukas Zhengrong Wang Norbert Wehn Christian Weis David A. Wood Hongil Yoon and \u00c9der F. Zulian. 2020. The gem5 Simulator: Version 20.0+. CoRR abs\/2007.03152 (2020) arXiv:2007.03152. arxiv:2007.03152"},{"key":"e_1_2_2_28_1","doi-asserted-by":"publisher","DOI":"10.1145\/3297858.3304043"},{"key":"e_1_2_2_29_1","volume-title":"And, If So, What Can You Do About It? (v2017.01.02a). CoRR, abs\/1701.00854","author":"McKenney Paul E.","year":"2017","unstructured":"Paul E. McKenney . 2017. Is Parallel Programming Hard , And, If So, What Can You Do About It? (v2017.01.02a). CoRR, abs\/1701.00854 ( 2017 ), arXiv:1701.00854. arxiv:1701.00854 Paul E. McKenney. 2017. Is Parallel Programming Hard, And, If So, What Can You Do About It? (v2017.01.02a). CoRR, abs\/1701.00854 (2017), arXiv:1701.00854. arxiv:1701.00854"},{"key":"e_1_2_2_30_1","doi-asserted-by":"publisher","DOI":"10.2200\/S00962ED2V01Y201910CAC049"},{"key":"e_1_2_2_31_1","unstructured":"NVIDIA. 2019. CUDA Toolkit Documentation - PTX ISA. \t\t\t\t  NVIDIA. 2019. CUDA Toolkit Documentation - PTX ISA."},{"key":"e_1_2_2_32_1","volume-title":"NVIDIA debuts Grace CPU Superschip. https:\/\/nvidianews.nvidia.com\/news\/nvidia-introduces-grace-cpu-superchip Accessed: 22nd","author":"NVIDIA.","year":"2022","unstructured":"NVIDIA. 2022. NVIDIA debuts Grace CPU Superschip. https:\/\/nvidianews.nvidia.com\/news\/nvidia-introduces-grace-cpu-superchip Accessed: 22nd August 2022 NVIDIA. 2022. NVIDIA debuts Grace CPU Superschip. https:\/\/nvidianews.nvidia.com\/news\/nvidia-introduces-grace-cpu-superchip Accessed: 22nd August 2022"},{"key":"e_1_2_2_33_1","doi-asserted-by":"publisher","DOI":"10.1109\/HPCA53966.2022.00061"},{"key":"e_1_2_2_34_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-03359-9_27"},{"key":"e_1_2_2_35_1","doi-asserted-by":"publisher","DOI":"10.1145\/3290382"},{"key":"e_1_2_2_36_1","doi-asserted-by":"publisher","DOI":"10.1145\/2254064.2254102"},{"key":"e_1_2_2_37_1","volume-title":"https:\/\/www.cl.cam.ac.uk\/ pes20\/cpp\/cpp0xmappings.html Accessed","author":"Sewell Peter","year":"2023","unstructured":"Peter Sewell . 2022. C\/C++11 mappings to processors. https:\/\/www.cl.cam.ac.uk\/ pes20\/cpp\/cpp0xmappings.html Accessed April 5, 2023 Peter Sewell. 2022. C\/C++11 mappings to processors. https:\/\/www.cl.cam.ac.uk\/ pes20\/cpp\/cpp0xmappings.html Accessed April 5, 2023"},{"key":"e_1_2_2_38_1","doi-asserted-by":"publisher","DOI":"10.1145\/1785414.1785443"},{"key":"e_1_2_2_39_1","volume-title":"The OpenCAPI Consortium. https:\/\/opencapi.org\/ Accessed: 5th","author":"The OpenCAPI Consortium","year":"2022","unstructured":"The OpenCAPI Consortium . 2021. The OpenCAPI Consortium. https:\/\/opencapi.org\/ Accessed: 5th July 2022 The OpenCAPI Consortium. 2021. The OpenCAPI Consortium. https:\/\/opencapi.org\/ Accessed: 5th July 2022"},{"key":"e_1_2_2_40_1","unstructured":"Andrew Waterman and Krste Asanovic. 2019. The RISC-V Instruction Set Manual Volume I: Unprivileged ISA. https:\/\/github.com\/riscv\/riscv-isa-manual\/releases\/download\/Ratified-IMAFDQC\/riscv-spec-20191213.pdf \t\t\t\t  Andrew Waterman and Krste Asanovic. 2019. The RISC-V Instruction Set Manual Volume I: Unprivileged ISA. https:\/\/github.com\/riscv\/riscv-isa-manual\/releases\/download\/Ratified-IMAFDQC\/riscv-spec-20191213.pdf"},{"key":"e_1_2_2_41_1","doi-asserted-by":"publisher","DOI":"10.1109\/PACT.2017.29"}],"container-title":["Proceedings of the ACM on Programming Languages"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3591267","content-type":"unspecified","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3591267","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,6,17]],"date-time":"2025-06-17T16:47:20Z","timestamp":1750178840000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3591267"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2023,6,6]]},"references-count":41,"journal-issue":{"issue":"PLDI","published-print":{"date-parts":[[2023,6,6]]}},"alternative-id":["10.1145\/3591267"],"URL":"https:\/\/doi.org\/10.1145\/3591267","relation":{},"ISSN":["2475-1421"],"issn-type":[{"value":"2475-1421","type":"electronic"}],"subject":[],"published":{"date-parts":[[2023,6,6]]},"assertion":[{"value":"2023-06-06","order":2,"name":"published","label":"Published","group":{"name":"publication_history","label":"Publication History"}}]}}