[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-detail-84631-en":3,"doc-seo-84631-105":29,"detail-sidebar-cat-0-en-105":91},{"code":4,"msg":5,"data":6},0,"success",{"doc_id":7,"user_id":8,"nickname":9,"user_avatar":10,"doc_module":4,"category_id":11,"category_name":12,"doc_title":13,"doc_description":14,"doc_content":15,"file_id":16,"file_url":17,"file_type":18,"file_size":19,"view_count":20,"is_deleted":4,"is_public":20,"is_downloadable":20,"audit_status":20,"page_count":21,"language":22,"language_code":23,"site_id":24,"html_lang":23,"table_of_contents":25,"faqs":26,"seo_title":13,"seo_description":14,"update_tm":27,"read_time":28},84631,3848291630094,"Emma Wilson","https://eur-avatar.wpscdn.com/davatar_085a072bc5b1113ac321206ff7593b45",8,"Research & Report","Exploiting Task-Based Parallelism for the Red-Black Gauss-Seidel Method on 2D Grids","Gauss–Seidel is an established iterative method for solving linear systems, and multicoloring is commonly used to increase parallelism in iterative solvers. However, multi-color Gauss–Seidel combined with conventional divide-and-conquer parallelization can suffer from global synchronization overheads and load imbalance. This work implements red–black Gauss–Seidel using two task-based programming models and compares them with a classical divide-and-conquer implementation, using the 2D Poisson equation as a benchmark.","arXiv :2607 .0 1735v 1 [ cs .DC] 2 Jul 2026  \nExploiting Task-Based Parallelism for the Red-Black Gauss-Seidel Method on 2D Grids  \nShiting Long 1, ∗ , Gustavo Ramirez-Hidalgo2,, Andreas Frommer3,, and Dirk Pleiter 1,4,  \n1 KTH Royal Institute of Technology  \n2 Forschungszentrum Jülich GmbH  \n3 Bergische Universität Wuppertal  \n4 University of Groningen  \nGauss–Seidel is a well-established iterative method for the solution of linear systems, and multicoloring has been widely used to increase parallelism in iterative solution techniques. Implementing multi-color Gauss–Seidel with conventional divideand-conquer parallelization strategies, however, may be inefficient due to global synchronization requirements and load imbalances. Task-based programming models can mitigate these issues by enabling fine-grained parallelism, removing global barriers and allowing updates of different colors to partially overlap in time.  \nIn this work, we implement the red–black Gauss–Seidel method using two task-based programming models and compare them with a classical divide-and-conquer parallel implementation to evaluate the impact of fine-grained parallelism on execution efficiency. The red–black scheme serves as a representative example, as task-based approaches naturally extend to more general multi-color schemes arising from unstructured grids and wider stencils. Using the solve of the 2D Poisson equation as benchmark, our results show that task-based implementations can achieve performance comparable to conventional divide-and-conquer parallelization while providing greater resilience to hardware-level asynchronicity.  \nCopyright line will be provided by the publisher  \n1 Introduction  \nContemporary performance improvements are increasingly driven by parallel computing rather than higher CPU clock frequencies. As a result, achieving better performance depends on decomposing workloads into concurrent tasks, enabling efficient utilization of hardware resources and translating computational capacity into measurable speedups.  \nProgrammers are therefore required to exploit the performance potential of modern many-core processors through nodelevel and/or thread-level parallelism. Since parallelization cannot be handled entirely by compilers, applications must be adapted to these architectures by explicitly defining task granularity for distributing computation across cores, as well as synchronization mechanisms to ensure data consistency among parallel tasks.  \nThe de facto parallelization approach for numerical applications is to decompose or transform the problem into smaller partitions, where solving each partition constitutes a task that can be executed in parallel with the others. This divide-andconquer strategy maps naturally onto the fork-join multithreading programming model, enabling efficient utilization of manycore systems and achieving parallel speedup.  \nThe divide-and-conquer strategy is not suitable for all algorithms. One example is block LU factorization, where the number of concurrently executable block updates varies throughout execution. When using a fork-join model, threads may spend significant time waiting at synchronization barriers, resulting in hardware underutilization. In such cases, a programming model that supports asynchronous execution and dynamic work scheduling becomes essential. Furthermore, modern computing systems are increasingly heterogeneous, typically combining CPUs with accelerators such as GPUs. A programming model that enables workloads to be efficiently distributed across different hardware architectures is therefore important.  \nTask-based programming models address these challenges by embedding dynamic schedulers within the runtime system, allowing tasks, i.e., units of work that can be executed in parallel, to be automatically mapped onto the underlying hardware resources. Such models have proven effective in addressing both asynchronous scheduling [3, 14] and heterogeneous scheduling [1, 2] challen","cbCaioqmnjez36W6","https://ap.wps.com/l/cbCaioqmnjez36W6","pdf",1127744,1,9,"English","en",105,"# Introduction\n## Background: parallel performance and synchronization\n## Divide-and-conquer vs task-based models\n## Motivation: asynchronicity and heterogeneity\n## Benchmark and evaluation setup","[{\"question\":\"为什么需要用任务式并行模型而不是传统的多色 Gauss–Seidel 分治并行？\",\"answer\":\"传统分治并行会带来全局同步需求并可能出现负载不均，降低效率。任务式模型通过去除全局障碍并允许不同颜色更新部分时间重叠来缓解这些问题。\"},{\"question\":\"本文选择什么问题作为基准来评估红黑 Gauss–Seidel 的并行效率？\",\"answer\":\"使用二维泊松方程求解作为基准，并采用红黑 Gauss–Seidel 方法来代表一类常见的模板（stencil）应用。\"},{\"question\":\"本文用哪些任务式编程模型与传统 fork-join 实现进行比较？\",\"answer\":\"本文使用两个任务式模型：在 GCC 工具链中实现的 OpenMP，以及 OmpSs-2；并与基于 OpenMP parallel for 构造的传统 fork-join 实现进行对比。\"}]",1784197319,23,{"code":4,"msg":30,"data":31},"ok",{"site_id":24,"language":23,"slug":32,"title":13,"keywords":33,"description":14,"schema_data":34,"social_meta":86,"head_meta":88,"extra_data":90,"updated_unix":27},"exploiting-task-based-parallelism-for-the-red-black-gauss-seidel-method-on-2d-grids","",{"@graph":35,"@context":85},[36,53,68],{"@type":37,"itemListElement":38},"BreadcrumbList",[39,43,47,50],{"item":40,"name":41,"@type":42,"position":20},"https://docshare.wps.com","Home","ListItem",{"item":44,"name":45,"@type":42,"position":46},"https://docshare.wps.com/document/","Document",2,{"item":48,"name":12,"@type":42,"position":49},"https://docshare.wps.com/document/research-report/",3,{"item":51,"name":13,"@type":42,"position":52},"https://docshare.wps.com/document/exploiting-task-based-parallelism-for-the-red-black-gauss-seidel-method-on-2d-grids/84631/",4,{"url":51,"name":13,"@type":54,"author":55,"headline":13,"publisher":57,"fileFormat":60,"inLanguage":23,"description":14,"dateModified":61,"datePublished":62,"encodingFormat":60,"isAccessibleForFree":63,"interactionStatistic":64},"DigitalDocument",{"name":9,"@type":56},"Person",{"url":40,"name":58,"@type":59},"DocShare","Organization","application/pdf","2026-07-17","2026-07-16",true,{"@type":65,"interactionType":66,"userInteractionCount":20},"InteractionCounter",{"@type":67},"ViewAction",{"@type":69,"mainEntity":70},"FAQPage",[71,77,81],{"name":72,"@type":73,"acceptedAnswer":74},"为什么需要用任务式并行模型而不是传统的多色 Gauss–Seidel 分治并行？","Question",{"text":75,"@type":76},"传统分治并行会带来全局同步需求并可能出现负载不均，降低效率。任务式模型通过去除全局障碍并允许不同颜色更新部分时间重叠来缓解这些问题。","Answer",{"name":78,"@type":73,"acceptedAnswer":79},"本文选择什么问题作为基准来评估红黑 Gauss–Seidel 的并行效率？",{"text":80,"@type":76},"使用二维泊松方程求解作为基准，并采用红黑 Gauss–Seidel 方法来代表一类常见的模板（stencil）应用。",{"name":82,"@type":73,"acceptedAnswer":83},"本文用哪些任务式编程模型与传统 fork-join 实现进行比较？",{"text":84,"@type":76},"本文使用两个任务式模型：在 GCC 工具链中实现的 OpenMP，以及 OmpSs-2；并与基于 OpenMP parallel for 构造的传统 fork-join 实现进行对比。","https://schema.org",{"og:url":51,"og:type":87,"og:title":13,"og:site_name":58,"og:description":14},"article",{"robots":89,"canonical":51},"index,follow",{"doc_id":7,"site_id":24},{"code":4,"msg":5,"data":92},[93,97,101,105,110,115,120,123,127,130,134],{"id":20,"doc_module":4,"doc_module_name":45,"category_name":94,"show_sort_weight":95,"slug":96},"Story & Novel",90,"story-novel",{"id":46,"doc_module":4,"doc_module_name":45,"category_name":98,"show_sort_weight":99,"slug":100},"Literature",80,"literature",{"id":52,"doc_module":4,"doc_module_name":45,"category_name":102,"show_sort_weight":103,"slug":104},"Exam",70,"exam",{"id":106,"doc_module":4,"doc_module_name":45,"category_name":107,"show_sort_weight":108,"slug":109},5,"Comic",60,"comic",{"id":111,"doc_module":4,"doc_module_name":45,"category_name":112,"show_sort_weight":113,"slug":114},6,"Technology",50,"technology",{"id":116,"doc_module":4,"doc_module_name":45,"category_name":117,"show_sort_weight":118,"slug":119},7,"Healthcare",40,"healthcare",{"id":11,"doc_module":4,"doc_module_name":45,"category_name":12,"show_sort_weight":121,"slug":122},30,"research-report",{"id":21,"doc_module":4,"doc_module_name":45,"category_name":124,"show_sort_weight":125,"slug":126},"Religion & Spirituality",20,"religion-spirituality",{"id":125,"doc_module":4,"doc_module_name":45,"category_name":128,"show_sort_weight":125,"slug":129},"World Cup","world-cup",{"id":131,"doc_module":4,"doc_module_name":45,"category_name":132,"show_sort_weight":131,"slug":133},10,"Lifestyle","lifestyle",{"id":135,"doc_module":4,"doc_module_name":45,"category_name":136,"show_sort_weight":106,"slug":137},19,"General","general"]