Torcalia.jl: An MPI-based Runtime System for Asynchronous Task Parallelism in Julia
Argiris Sofotasios, Dimitris Metaxakis, Chrysostomos Stylios, Panagiotis Hadjidoukas
Abstract
Designed to address the two-language problem, the Julia programming language provides a powerful platform for developing high-performance scientific computing and machine learning applications. Such applications increasingly exhibit irregular, adaptive, or data-driven workloads for which traditional bulk-synchronous parallel (BSP) models often struggle to efficiently exploit the available parallelism. Asynchronous many-task (AMT) runtime systems offer a compelling alternative, decomposing computations into fine-grained tasks that are dynamically scheduled across the hierarchical architecture of modern HPC systems. This paper introduces Torcaliajl, a Julia package designed to orchestrate the asynchronous execution of tasks across both shared and distributed memory environments. Built on top of MPIjl and Julia's native multithreading, Torcalia employs a dependency-aware task scheduling scheme that combines the work-sharing and work-stealing paradigms to achieve adaptive load balancing. Tasks can be nested arbitrarily, enabling applications to exploit multiple levels of parallelism, while application-level distributed shared memory (DSM) extends task-based shared-memory programming to multi-node clusters. Beyond task-based programming, the proposed library supports skeletal programming, providing high-level abstractions that facilitate the implementation of parallel applications at scale. Evaluated on the ARIS supercomputer using four diverse workloads, Torcalia demonstrates strong scalability, reducing wall-clock time by up to 18.1% compared with Dagger, a state-of-the-art task-based engine in Julia. The source code of Torcaliajl is publicly available at https://github.com/CEID-HPCLAB/Torcalia.jl.
Create a lesson
Metadata
- Comments
- 9 pages, 3 figures, 4 listings. Source code: https://github.com/CEID-HPCLAB/Torcalia.jl
Related papers
A Pipeline-Parallel System for Depth-Recurrent Models
Shared title terminologycs.DCYunjia Xi, Jiarui Qin, Di Yin et al.
A Runtime System for Mitigating Crossbar Port Contention on SM-Partitioned GPUs
Shared title terminologycs.DCZiwen Wang, Qi Luo, Kunlin Li et al.
Can Agentic LLMs Write Task-Based Parallel Code? A Study of OpenMP Tasking, HPX, StarPU and TTG
Shared title terminologycs.DCLinus Bantel, Anna-Lena Roth, Tim Thüring et al.
SS-HSDP: Efficient and Flexible Sharded Data Parallelism via Runtime-Update Decoupling
Shared title terminologycs.DCChendong Xiang, Pengle Zhang, Jinliang Li et al.
Parallel Computing Systems for the Optimal Selection of Process Equipment
Shared title terminologycs.DCAndrey B. Borisenko
AeroPoint: Agentic AI for Intent-Driven Point Cloud Inspection in UAV-Edge Systems
Shared title terminologycs.DCReza Farahani, Zoha Azimi, Naser Hossein Motlagh et al.