Cloud Service Platform for Julia Programming on Supercomputer

Changyou Zhang, Liu Renfen, Duan Shufeng, Xiaomin Zhu, Wei LiuInternational Journal of Grid and Distributed Computing 2014

Abstract

There are two approaches to resolve this problem. The first is that programmer masters advanced knowledge about architecture of the supercomputer. The second is to construct a friendly programming environment to ease the difficulties in parallel programming. Julia is a scripting language which supports language-level high performance computing. It is easier to implement parallel algorithm in Julia language. So, we develop a programming supporting environment for Julia to edit and debug source code, and prepare a set of portable function library for heterogeneous supercomputers. These programs are sent to supercomputers through a message system. As job description, these Julia codes are scheduled to proper nodes and executed based on the portable function library. In the computing case of bus-line statistics, the parallel Julia program on 4 nodes achieved a speed up of 3.15x.

Introduction

As supercomputing architectures evolve toward extreme heterogeneity—incorporating CPUs, GPUs, and specialized accelerators like Intel Xeon Phi—the complexity of programming these systems has increased significantly. Traditionally, researchers have had to choose between mastering low-level hardware nuances or facing significant barriers to entry. This paper proposes a cloud-based service platform that leverages the Julia programming language to provide a high-performance yet accessible environment for technical computing on supercomputers.

System Architecture

The platform is designed around a three-tier architecture that decouples the user's development environment from the high-performance execution backend. This structure ensures that users can manage complex parallel jobs through a simple web interface.

Figure 1: The three-tier system architecture consisting of the User Programming Environment, Message Passing System, and Julia Running Environment.

1. User Programming Environment (UPE)

The UPE serves as a web-based Integrated Development Environment (IDE). It allows users to write, edit, and debug Julia code directly within a browser, eliminating the need for local environment configuration or manual SSH management. The UPE handles project management, file storage, and job submission.

Figure 2: The web-based Julia IDE interface, showing the file manager, code editor, and execution console.

2. Message Passing System (MPS)

Communication between the web-facing UPE and the supercomputer's compute nodes is managed by an MPS built on Apache ActiveMQ. This layer ensures reliable transmission of code and results. Messages are structured with headers for routing, bodies containing session IDs and source code, and tails with MD5 digests to ensure data integrity during transit.

3. Julia Running Environment (JRE)

The JRE resides on the supercomputer side. It manages long-lived user sessions and interfaces with the local task scheduler. By maintaining active sessions, the JRE allows users to disconnect from the web interface while their parallel jobs continue to run on the compute nodes. It utilizes Julia's native parallel features, such as addprocs() and remote_call(), to distribute tasks across the cluster.

Case Study: Beijing Bus-line Statistics

To evaluate the platform, the authors implemented a parallel algorithm for processing large-scale transit data. The task involved calculating average travel times between stops for approximately 3,723 bus lines in Beijing. With buses launching every five minutes, the dataset required processing a 3D array (Bus Line x Stop x Launch Order) to generate a comprehensive 2D result matrix of travel statistics.

Results and Performance

The platform was tested on a cluster using Julia version 0.2.0. The parallel implementation demonstrated significant performance gains over the serial version:

  • Execution Time: The total elapsed time for the bus-line statistics task was reduced from 23.58 seconds (serial) to 7.49 seconds (parallel).
  • Speedup: On a 4-node configuration, the system achieved a 3.15x speedup.
  • Efficiency: While the system incurred approximately 3 seconds of overhead for processor initialization and data partitioning, the core calculation time dropped from 11.67 seconds to just 2.02 seconds, highlighting the efficiency of Julia's parallel execution model.

Conclusion and Future Work

By combining Julia's high-performance JIT compilation with a cloud-managed workflow, this platform successfully abstracts the complexities of supercomputer architectures. Future developments will focus on expanding the "portable function library" to include optimized CUDA and C/Fortran kernels, allowing Julia users to seamlessly utilize GPU and MIC accelerators without rewriting their core application logic.

Summary updated

BibTeX
@article{zhang2014cloud,
  author = {Changyou Zhang and Liu Renfen and Duan Shufeng and Xiaomin Zhu and Wei Liu},
  title = {{Cloud Service Platform for Julia Programming on Supercomputer}},
  journal = {International Journal of Grid and Distributed Computing},
  year = {2014},
  doi = {10.14257/ijgdc.2014.7.4.17},
}
Figure