A comparative study of Java and C performance in two large‐scale parallel applications
Authors:
- 20 February 2009
- journal article
- research article
- Published by Wiley in Concurrency and Computation: Practice and Experience
- Vol. 21 (15) , 1882-1906
Abstract
In the 1990s the Message Passing Interface Forum defined MPI bindings for Fortran, C, and C++. With the success of MPI these relatively conservative languages have continued to dominate in the parallel computing community. There are compelling arguments in favour of more modern languages like Java. These include portability, better runtime error checking, modularity, and multi‐threading. But these arguments have not converted many HPC programmers, perhaps due to the scarcity of full‐scale scientific Java codes, and the lack of evidence for performance competitive with C or Fortran. This paper tries to redress this situation by porting two scientific applications to Java. Both of these applications are parallelized using our thread‐safe Java messaging system—MPJ Express. The first application is the Gadget‐2 code, which is a massively parallel structure formation code for cosmological simulations. The second application uses the finite‐domain time‐difference method for simulations in the area of computational electromagnetics. We evaluate and compare the performance of the Java and C versions of these two scientific applications, and demonstrate that the Java codes can achieve performance comparable with legacy applications written in conventional HPC languages. Copyright © 2009 John Wiley & Sons, Ltd.Keywords
This publication has 23 references indexed in Scilit:
- Simulations of the formation, evolution and clustering of galaxies and quasarsNature, 2005
- Ibis: a flexible and efficient Java‐based Grid programming environmentConcurrency and Computation: Practice and Experience, 2005
- Scientific computing with Java and C++: a case study using functional magnetic resonance neuroimagesSoftware: Practice and Experience, 2004
- Parallel operation of CartaBlanca on shared and distributed memory computersConcurrency and Computation: Practice and Experience, 2003
- Comparison of C and Java performance in finite element computationsComputers & Structures, 2003
- Supporting multidimensional arrays in JavaConcurrency and Computation: Practice and Experience, 2003
- The NINJA projectCommunications of the ACM, 2001
- From flop to megaflopsACM Transactions on Programming Languages and Systems, 2000
- mpiJava: An object-oriented java interface to MPI1999
- A hierarchical O(N log N) force-calculation algorithmNature, 1986