Top Banner
©2004 University of Applied Sciences Wolfenbuettel and CLE, Department of High Performance Computing L O G I S T I K Z E N T R U M CLE JUSTGrid JUSTGrid A Pure Java HPCC Grid Architecture A Pure Java HPCC Grid Architecture for Multi-Physics Solvers for Multi-Physics Solvers Using Complex Geometries. Using Complex Geometries. Thorsten Ludewig * , Jochem Hauser * , Torsten Gollnick * , and Hans-Georg Paap * Dept. of High Performance Computing Center of Logistics and Expert Systems (CLE) GmbH Salzgitter, Germany HPC Consultant Barbing, Germany presented at 42 nd AIAA Aerospace Science Meeting and Exhibit, Reno, Nevada, USA, 5-8 January 2004
40

A Pure Java HPCC Grid Architecture for Multi-Physics ... · High Performance Computing and Communications (HPCC) on a global scale is the key of this new economy. The need for accurate

Aug 21, 2020

Download

Documents

dariahiddleston
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: A Pure Java HPCC Grid Architecture for Multi-Physics ... · High Performance Computing and Communications (HPCC) on a global scale is the key of this new economy. The need for accurate

©2004 University of Applied Sciences Wolfenbuetteland CLE, Department of High Performance Computing

LO

GISTIKZ

E N T R

UM

CLE

JUSTGridJUSTGridA Pure Java HPCC Grid ArchitectureA Pure Java HPCC Grid Architecture

for Multi-Physics Solversfor Multi-Physics SolversUsing Complex Geometries.Using Complex Geometries.

Thorsten Ludewig*, Jochem Hauser*, Torsten Gollnick*, and Hans-Georg Paap†

*Dept. of High Performance ComputingCenter of Logistics and Expert Systems (CLE) GmbH

Salzgitter, Germany

†HPC ConsultantBarbing, Germany

presented at

42nd AIAA Aerospace Science Meeting and Exhibit,Reno, Nevada, USA, 5-8 January 2004

Page 2: A Pure Java HPCC Grid Architecture for Multi-Physics ... · High Performance Computing and Communications (HPCC) on a global scale is the key of this new economy. The need for accurate

page 2©2004 University of Applied Sciences Wolfenbuettel and CLE, Department of High Performance Computing

Thorsten Ludewig, 42nd AIAA, Aerospace Science Meeting and Exhibit, Reno, Nevada, USA, 5-8 January 2004

Overview

Why Java for HPCC?!

What is JUSTGrid? (Framework)

JUSTGrid Communication Overview

Object Oriented Programming (OOP)

Threads

Graphical Applications

Java Performance Results

Conclusions

Future Work

Page 3: A Pure Java HPCC Grid Architecture for Multi-Physics ... · High Performance Computing and Communications (HPCC) on a global scale is the key of this new economy. The need for accurate

page 3©2004 University of Applied Sciences Wolfenbuettel and CLE, Department of High Performance Computing

Thorsten Ludewig, 42nd AIAA, Aerospace Science Meeting and Exhibit, Reno, Nevada, USA, 5-8 January 2004

Java as the Language for HPCC

platform independence

simple and straight forward parallelization

unique included network capabilities

JDBC (Java Database Connectivity)

RMI (Remote Method Invocation)

Secure Connections over the Inter- and Intranet

easy generation of object reflecting the engineering design process

,,code reusability'' - simplifies code design

Page 4: A Pure Java HPCC Grid Architecture for Multi-Physics ... · High Performance Computing and Communications (HPCC) on a global scale is the key of this new economy. The need for accurate

page 4©2004 University of Applied Sciences Wolfenbuettel and CLE, Department of High Performance Computing

Thorsten Ludewig, 42nd AIAA, Aerospace Science Meeting and Exhibit, Reno, Nevada, USA, 5-8 January 2004

Why we like to use Java for writing high-quality portable parallel programs?

pure object formulation (i.e. an object representation of a wing, fuselage, engine etc. described by a set of classes containing the data structures and methods for a specific item)

strong typing

exception model

elegant threading

portability

Page 5: A Pure Java HPCC Grid Architecture for Multi-Physics ... · High Performance Computing and Communications (HPCC) on a global scale is the key of this new economy. The need for accurate

page 5©2004 University of Applied Sciences Wolfenbuettel and CLE, Department of High Performance Computing

Thorsten Ludewig, 42nd AIAA, Aerospace Science Meeting and Exhibit, Reno, Nevada, USA, 5-8 January 2004

What is JUSTGrid

This is an age of possibility, and IT is the driving force behind this change that occurs on a global range.

High Performance Computing and Communications (HPCC) on a global scale is the key of this new economy.

The need for accurate 3D simulation in numerous areas of computationally intensive industrial applications, including the rapidly evolving field of bioscience, requires the development of ever more powerful HPCC resources for a computational Grid based on the Internet.

Page 6: A Pure Java HPCC Grid Architecture for Multi-Physics ... · High Performance Computing and Communications (HPCC) on a global scale is the key of this new economy. The need for accurate

page 6©2004 University of Applied Sciences Wolfenbuettel and CLE, Department of High Performance Computing

Thorsten Ludewig, 42nd AIAA, Aerospace Science Meeting and Exhibit, Reno, Nevada, USA, 5-8 January 2004

What is JUSTGrid

The Java language has the potential to bring about a revolution in computer simulation. Using Java's unique features, a multi-disciplinary computational Grid, termed JUSTGrid, can be built entirely in Java in a transparent, object-oriented approach.

JUSTGrid provides the numerical, geometric, parallel, and network infrastructure for a wide range of applications in 3D computer simulation thus substantially alleviating the complex task of software engineering.

Page 7: A Pure Java HPCC Grid Architecture for Multi-Physics ... · High Performance Computing and Communications (HPCC) on a global scale is the key of this new economy. The need for accurate

page 7©2004 University of Applied Sciences Wolfenbuettel and CLE, Department of High Performance Computing

Thorsten Ludewig, 42nd AIAA, Aerospace Science Meeting and Exhibit, Reno, Nevada, USA, 5-8 January 2004

Scope of JUSTGrid

3D Complex Geometries

Parallelization

Dynamic Load Balancing

Internet

CollaborativeEngineering

OutsourcingInteractiveSteering

SystemSecurity

VisualizationSolver

Navier Stokes(fluid dynamics)

Maxwell(electromagnetics)

Schrödinger(quantum mechanics)

SurfaceConversion

DebuggingSession Tracking

Results

JUSTGrid a framework for HPCC in engineering, science, and life sciences

Page 8: A Pure Java HPCC Grid Architecture for Multi-Physics ... · High Performance Computing and Communications (HPCC) on a global scale is the key of this new economy. The need for accurate

page 8©2004 University of Applied Sciences Wolfenbuettel and CLE, Department of High Performance Computing

Thorsten Ludewig, 42nd AIAA, Aerospace Science Meeting and Exhibit, Reno, Nevada, USA, 5-8 January 2004

Scope of JUSTGrid

A solver only needs to contain the physics and numerics of the simulation task for a single block or a single domain.

The solver does not need to know anything about the geometry data or the parallelization.

It has a simple structure

The solver can be tested independently before its integration

Replacing the default solver by one's own solver.

Page 9: A Pure Java HPCC Grid Architecture for Multi-Physics ... · High Performance Computing and Communications (HPCC) on a global scale is the key of this new economy. The need for accurate

page 9©2004 University of Applied Sciences Wolfenbuettel and CLE, Department of High Performance Computing

Thorsten Ludewig, 42nd AIAA, Aerospace Science Meeting and Exhibit, Reno, Nevada, USA, 5-8 January 2004

Communication Overview

RMI basedNetwork

Solver/Code Development

Visualization

Collaborative Engineering

Server

Session-ID

Session-ID

Session-ID

Session-ID

Page 10: A Pure Java HPCC Grid Architecture for Multi-Physics ... · High Performance Computing and Communications (HPCC) on a global scale is the key of this new economy. The need for accurate

page 10©2004 University of Applied Sciences Wolfenbuettel and CLE, Department of High Performance Computing

Thorsten Ludewig, 42nd AIAA, Aerospace Science Meeting and Exhibit, Reno, Nevada, USA, 5-8 January 2004

Communication Overview

Client Server

Client

sends the data AND the java solver code to the server and receives a unique session id to identify the session on the server.

Server

provides a framework for multi physics solver Da

tab

ase

Se

rver

interactive steering

Page 11: A Pure Java HPCC Grid Architecture for Multi-Physics ... · High Performance Computing and Communications (HPCC) on a global scale is the key of this new economy. The need for accurate

page 11©2004 University of Applied Sciences Wolfenbuettel and CLE, Department of High Performance Computing

Thorsten Ludewig, 42nd AIAA, Aerospace Science Meeting and Exhibit, Reno, Nevada, USA, 5-8 January 2004

Communication Overview

Client Server

with the unique session id everyone can connect to a specific session on the server

start / stop session

changing the conditions of the computation

visualization

debugging

collaborative work

Page 12: A Pure Java HPCC Grid Architecture for Multi-Physics ... · High Performance Computing and Communications (HPCC) on a global scale is the key of this new economy. The need for accurate

page 12©2004 University of Applied Sciences Wolfenbuettel and CLE, Department of High Performance Computing

Thorsten Ludewig, 42nd AIAA, Aerospace Science Meeting and Exhibit, Reno, Nevada, USA, 5-8 January 2004

OOP - Object Oriented Programming

Abstract Data Types

The association between the declaration of a data type and the declaration of the code that is intended to operate upon variables of this type

Data hiding and encapsulation

Protecting the data of an object from improper modification by forcing the user to access the data trough a method.

class name +variable1: integer +variable2: double +method1 +method2

Encapsulation of data in an Object

Page 13: A Pure Java HPCC Grid Architecture for Multi-Physics ... · High Performance Computing and Communications (HPCC) on a global scale is the key of this new economy. The need for accurate

page 13©2004 University of Applied Sciences Wolfenbuettel and CLE, Department of High Performance Computing

Thorsten Ludewig, 42nd AIAA, Aerospace Science Meeting and Exhibit, Reno, Nevada, USA, 5-8 January 2004

OOP ExampleProgramming in 'C'

Programming in 'Java'

struct my_date { int day, month, year;} date;

date.day = 32;

public class MyDate { private int day, month, year; public void setDay( int day ) { ... validation code ... }}

MyDate myDate = new MyDate();myDate.setDay( 32 ); ERROR!

Page 14: A Pure Java HPCC Grid Architecture for Multi-Physics ... · High Performance Computing and Communications (HPCC) on a global scale is the key of this new economy. The need for accurate

page 14©2004 University of Applied Sciences Wolfenbuettel and CLE, Department of High Performance Computing

Thorsten Ludewig, 42nd AIAA, Aerospace Science Meeting and Exhibit, Reno, Nevada, USA, 5-8 January 2004

Threads an efficient way of parallelizing codes

What are Threads?

Multithreaded programs extends the idea of multitasking by taking it one level further: individual programs (processes) will appear to do multiple tasks at the same time.

Programs that can run more than one thread at once are said to be multithreaded.

Each task is usually called thread which is the short form for thread of control.

Page 15: A Pure Java HPCC Grid Architecture for Multi-Physics ... · High Performance Computing and Communications (HPCC) on a global scale is the key of this new economy. The need for accurate

page 15©2004 University of Applied Sciences Wolfenbuettel and CLE, Department of High Performance Computing

Thorsten Ludewig, 42nd AIAA, Aerospace Science Meeting and Exhibit, Reno, Nevada, USA, 5-8 January 2004

What are threads?

Three Parts of a Thread

A virtual CPU

The code the CPU is executing

The data the code works on

CPU

DataCodeA thread orexecution context

Page 16: A Pure Java HPCC Grid Architecture for Multi-Physics ... · High Performance Computing and Communications (HPCC) on a global scale is the key of this new economy. The need for accurate

page 16©2004 University of Applied Sciences Wolfenbuettel and CLE, Department of High Performance Computing

Thorsten Ludewig, 42nd AIAA, Aerospace Science Meeting and Exhibit, Reno, Nevada, USA, 5-8 January 2004

Why Threads are good for CFD

Threads as a general parallelization strategy for CFD codes

Sophisticated dynamic load balancing algorithms on shared-memory machines

Advanced numerical schemes in CFD, i.e. GMRES, do not require the same computational work for each grid cell.

Page 17: A Pure Java HPCC Grid Architecture for Multi-Physics ... · High Performance Computing and Communications (HPCC) on a global scale is the key of this new economy. The need for accurate

page 17©2004 University of Applied Sciences Wolfenbuettel and CLE, Department of High Performance Computing

Thorsten Ludewig, 42nd AIAA, Aerospace Science Meeting and Exhibit, Reno, Nevada, USA, 5-8 January 2004

ClientGUI

Why we like to use simple graphical user interface for the JUSTGrid?

Because for a non-Programmer it is to difficult to collect all different parts needed for a JUSTGrid session into a Java source text and compile it for himself.

It is easier to run a quick test case without falling into common programming traps.

Page 18: A Pure Java HPCC Grid Architecture for Multi-Physics ... · High Performance Computing and Communications (HPCC) on a global scale is the key of this new economy. The need for accurate

page 18©2004 University of Applied Sciences Wolfenbuettel and CLE, Department of High Performance Computing

Thorsten Ludewig, 42nd AIAA, Aerospace Science Meeting and Exhibit, Reno, Nevada, USA, 5-8 January 2004

JUSTGrid Simple Client GUI

Page 19: A Pure Java HPCC Grid Architecture for Multi-Physics ... · High Performance Computing and Communications (HPCC) on a global scale is the key of this new economy. The need for accurate

page 19©2004 University of Applied Sciences Wolfenbuettel and CLE, Department of High Performance Computing

Thorsten Ludewig, 42nd AIAA, Aerospace Science Meeting and Exhibit, Reno, Nevada, USA, 5-8 January 2004

GRXTool

Convert grid data files into XML based GRX Format

Adding additional Information

Rapid prototype for Euler 2D

Page 20: A Pure Java HPCC Grid Architecture for Multi-Physics ... · High Performance Computing and Communications (HPCC) on a global scale is the key of this new economy. The need for accurate

page 20©2004 University of Applied Sciences Wolfenbuettel and CLE, Department of High Performance Computing

Thorsten Ludewig, 42nd AIAA, Aerospace Science Meeting and Exhibit, Reno, Nevada, USA, 5-8 January 2004

GRX Tool

Online Visualization

Interactive steering

Page 21: A Pure Java HPCC Grid Architecture for Multi-Physics ... · High Performance Computing and Communications (HPCC) on a global scale is the key of this new economy. The need for accurate

page 21©2004 University of Applied Sciences Wolfenbuettel and CLE, Department of High Performance Computing

Thorsten Ludewig, 42nd AIAA, Aerospace Science Meeting and Exhibit, Reno, Nevada, USA, 5-8 January 2004

GRX Tool

Online video generation

Integrated video player

Page 22: A Pure Java HPCC Grid Architecture for Multi-Physics ... · High Performance Computing and Communications (HPCC) on a global scale is the key of this new economy. The need for accurate

page 22©2004 University of Applied Sciences Wolfenbuettel and CLE, Department of High Performance Computing

Thorsten Ludewig, 42nd AIAA, Aerospace Science Meeting and Exhibit, Reno, Nevada, USA, 5-8 January 2004

GRX 3D Tool

Page 23: A Pure Java HPCC Grid Architecture for Multi-Physics ... · High Performance Computing and Communications (HPCC) on a global scale is the key of this new economy. The need for accurate

page 23©2004 University of Applied Sciences Wolfenbuettel and CLE, Department of High Performance Computing

Thorsten Ludewig, 42nd AIAA, Aerospace Science Meeting and Exhibit, Reno, Nevada, USA, 5-8 January 2004

Virtual Visualization Toolkit (VVT / ShowMe3D)

The idea of ShowMe3D is to develop a light weight application, which is easy to use, with a limited (but useful) set of functionality.

visualization

Geometry (surface)

results of a computation

debugging

online client - server connection

e.g. boundary updates

surface converting

e.g. quads to triangles

Page 24: A Pure Java HPCC Grid Architecture for Multi-Physics ... · High Performance Computing and Communications (HPCC) on a global scale is the key of this new economy. The need for accurate

page 24©2004 University of Applied Sciences Wolfenbuettel and CLE, Department of High Performance Computing

Thorsten Ludewig, 42nd AIAA, Aerospace Science Meeting and Exhibit, Reno, Nevada, USA, 5-8 January 2004

ShowMe3D: Motivation

This program is designed for all programmers of Solver Objects.

Based on the online "view" into the Server it can be very helpful for debugging.

it is NOT designed to provide complete post processing like TecPlot or Ensight

Page 25: A Pure Java HPCC Grid Architecture for Multi-Physics ... · High Performance Computing and Communications (HPCC) on a global scale is the key of this new economy. The need for accurate

page 25©2004 University of Applied Sciences Wolfenbuettel and CLE, Department of High Performance Computing

Thorsten Ludewig, 42nd AIAA, Aerospace Science Meeting and Exhibit, Reno, Nevada, USA, 5-8 January 2004

ShowMe3D (continued)

Today's implementation of ShowMe3D contains

Visualization

Geometry data

a tree view of the Java 3D scene graph

Surface conversion

for Alias Wave Front Objects only

Page 26: A Pure Java HPCC Grid Architecture for Multi-Physics ... · High Performance Computing and Communications (HPCC) on a global scale is the key of this new economy. The need for accurate

page 26©2004 University of Applied Sciences Wolfenbuettel and CLE, Department of High Performance Computing

Thorsten Ludewig, 42nd AIAA, Aerospace Science Meeting and Exhibit, Reno, Nevada, USA, 5-8 January 2004

ShowMe3D: main

The main window contains all the GUI elements for the file input / output and visualization options

load geometry

save geometry

shaded view

wire frame view

system properties

Page 27: A Pure Java HPCC Grid Architecture for Multi-Physics ... · High Performance Computing and Communications (HPCC) on a global scale is the key of this new economy. The need for accurate

page 27©2004 University of Applied Sciences Wolfenbuettel and CLE, Department of High Performance Computing

Thorsten Ludewig, 42nd AIAA, Aerospace Science Meeting and Exhibit, Reno, Nevada, USA, 5-8 January 2004

ShowMe3D: file types

ShowMe3D can load 2D and 3D object data in different file formats

Triangle

Plot3D

Plane 2D

Plane 3D

Volume 3D

Autodesk/AutoCAD DXF

AliasWavefront Objects

3D StudioMAX

LightWave

Page 28: A Pure Java HPCC Grid Architecture for Multi-Physics ... · High Performance Computing and Communications (HPCC) on a global scale is the key of this new economy. The need for accurate

page 28©2004 University of Applied Sciences Wolfenbuettel and CLE, Department of High Performance Computing

Thorsten Ludewig, 42nd AIAA, Aerospace Science Meeting and Exhibit, Reno, Nevada, USA, 5-8 January 2004

ShowMe3D: Application

Page 29: A Pure Java HPCC Grid Architecture for Multi-Physics ... · High Performance Computing and Communications (HPCC) on a global scale is the key of this new economy. The need for accurate

page 29©2004 University of Applied Sciences Wolfenbuettel and CLE, Department of High Performance Computing

Thorsten Ludewig, 42nd AIAA, Aerospace Science Meeting and Exhibit, Reno, Nevada, USA, 5-8 January 2004

Java High Performance and Communications Test Suite

In the following series of slides we will demonstrate Java's amazing numerical performance gains obtained over the last few years.

Java numerical performance now rivals or exceeds that of C or C++ codes used in engineering.

Page 30: A Pure Java HPCC Grid Architecture for Multi-Physics ... · High Performance Computing and Communications (HPCC) on a global scale is the key of this new economy. The need for accurate

page 30©2004 University of Applied Sciences Wolfenbuettel and CLE, Department of High Performance Computing

Thorsten Ludewig, 42nd AIAA, Aerospace Science Meeting and Exhibit, Reno, Nevada, USA, 5-8 January 2004

Simple numeric Benchmark

Simple numeric benchmark on a Sun Microsystems Enterprise 10000 with 64 UltraSPARC II CPUs

1 2 3 4 5 6 7 8 9 10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

33

34

35

36

37

38

39

40

41

42

43

44

45

46

47

48

49

50

51

52

53

54

55

56

57

58

59

60

61

62

63

64

0500

10001500200025003000350040004500500055006000650070007500800085009000

0

8

16

24

32

40

48

56

64

72

Simple numeric without communication 10e11 iterations

Time in s

Speedup

Number of CPUs

Tim

e in

sec

onds

Page 31: A Pure Java HPCC Grid Architecture for Multi-Physics ... · High Performance Computing and Communications (HPCC) on a global scale is the key of this new economy. The need for accurate

page 31©2004 University of Applied Sciences Wolfenbuettel and CLE, Department of High Performance Computing

Thorsten Ludewig, 42nd AIAA, Aerospace Science Meeting and Exhibit, Reno, Nevada, USA, 5-8 January 2004

Mandelbrot Benchmark

Mandelbrot Set dimension 7200 x 4800, max iterations 5000 running 400 threads on a Sun Microsystems Enterprise 6000 with 28 processors.

This code tests the self-scheduling of threads.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 260,0

2,5

5,0

7,5

10,0

12,5

15,0

17,5

20,0

22,5

25,0

27,5

0%

10%

20%

30%

40%

50%

60%

70%

80%

90%

100%

110%

speedup

efficiency

Number of CPUs

Sp

ee

du

p

DEMO

Page 32: A Pure Java HPCC Grid Architecture for Multi-Physics ... · High Performance Computing and Communications (HPCC) on a global scale is the key of this new economy. The need for accurate

page 32©2004 University of Applied Sciences Wolfenbuettel and CLE, Department of High Performance Computing

Thorsten Ludewig, 42nd AIAA, Aerospace Science Meeting and Exhibit, Reno, Nevada, USA, 5-8 January 2004

Matrix Multiply

for comparison, we have a Java and a C++-coded version of the sequential block-matrix multiply that does not use threads and multithreaded Java and C++ version.

to compare floating point performance for scientific applications between C++ and Java on the test machines

to measure parallel efficiency of a multithreaded application

Exactly the following source was used for both benchmarks. (C++ and Java)

// get start time here for( n=0; n<maxIterations; n++) { for( i=0; i<dim; i++ ) { for( j=0; j<dim; j++ ) { for( k=0; k<dim; k++ ) { c[i][j] += a[i][k]*b[k][j]; } } } }// get end time here

Page 33: A Pure Java HPCC Grid Architecture for Multi-Physics ... · High Performance Computing and Communications (HPCC) on a global scale is the key of this new economy. The need for accurate

page 33©2004 University of Applied Sciences Wolfenbuettel and CLE, Department of High Performance Computing

Thorsten Ludewig, 42nd AIAA, Aerospace Science Meeting and Exhibit, Reno, Nevada, USA, 5-8 January 2004

Sequential Matrix MultiplicationRuntime (2GHz Pentium 4, 1GB Memory) 1 run 2 run 3 run 4 run 5 run 6 run 7 run 8 run

3,15 3,19 3,22 3,16 3,15 3,17 3,16 3,16

3,23 3,23 3,25 3,23 3,23 3,23 3,23 3,25

3,86 3,88 3,90 3,90 3,90 3,90 3,89 3,90

3,55 3,51 2,12 2,12 2,12 2,12 2,13 2,12

GNU g++ -O3 -mcpu=pentium4 -march=pentium4 -Wall (Version 3.3.1)Intel icc -O3 -mcpu=pentium4 -march=pentium4 (Version 8.0)Sun Java HotSpot Client VM(Version 1.4.2_02-b03)Sun Java HotSpot Server VM(Version 1.4.2_02-b03)

A sequential (1 thread) matrix multiplication using a 30 times 30 matrix doing 10000 iterations on a single processor Pentium 4 PC running Linux.

After the two warmup phases in the Sun Java HotSpot Server VM. This runtime is about 1.5 times faster then the compiled C++ binary.

Due to a Linker error we could not use the -fast option with the Intel compiler.

Page 34: A Pure Java HPCC Grid Architecture for Multi-Physics ... · High Performance Computing and Communications (HPCC) on a global scale is the key of this new economy. The need for accurate

page 34©2004 University of Applied Sciences Wolfenbuettel and CLE, Department of High Performance Computing

Thorsten Ludewig, 42nd AIAA, Aerospace Science Meeting and Exhibit, Reno, Nevada, USA, 5-8 January 2004

Multithreaded Matrix Multiplication

Multithreaded matrix multiplication using a 100 times 100 matrix doing 10000 iterations with 400 threads on a 26 CPU Sun Microsystems Enterprise 6000.

Runtime time in s1.1.8_14 516,941.2.2_08 38,971.3.0_03 Server 37,471.3.1_02 Server 21,691.4.0_01 Server 19,511.4.1_02 Server 17,31C++ - GCC 26,65C++ - Forte 6u1 17,26

Page 35: A Pure Java HPCC Grid Architecture for Multi-Physics ... · High Performance Computing and Communications (HPCC) on a global scale is the key of this new economy. The need for accurate

page 35©2004 University of Applied Sciences Wolfenbuettel and CLE, Department of High Performance Computing

Thorsten Ludewig, 42nd AIAA, Aerospace Science Meeting and Exhibit, Reno, Nevada, USA, 5-8 January 2004

Multi-threaded Matrix Multiplication

Results a 100 x 100 matrix doing 10,000 iterations with 400 threads on the E6000 (26 CPUs)

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 260,0

2,5

5,0

7,5

10,0

12,5

15,0

17,5

20,0

22,5

25,0

0%

10%

20%

30%

40%

50%

60%

70%

80%

90%

100%

110%

speedup

efficiency

Number of CPUs

Sp

eed

up

Page 36: A Pure Java HPCC Grid Architecture for Multi-Physics ... · High Performance Computing and Communications (HPCC) on a global scale is the key of this new economy. The need for accurate

page 36©2004 University of Applied Sciences Wolfenbuettel and CLE, Department of High Performance Computing

Thorsten Ludewig, 42nd AIAA, Aerospace Science Meeting and Exhibit, Reno, Nevada, USA, 5-8 January 2004

Euler 3D Comparison

As a reference sample to check the correct communication (boundary update) of the JUSTGrid we computed a 3D cone with the JUST Euler 3D solver and CFD++

JUST Euler 3DCFD++

Page 37: A Pure Java HPCC Grid Architecture for Multi-Physics ... · High Performance Computing and Communications (HPCC) on a global scale is the key of this new economy. The need for accurate

page 37©2004 University of Applied Sciences Wolfenbuettel and CLE, Department of High Performance Computing

Thorsten Ludewig, 42nd AIAA, Aerospace Science Meeting and Exhibit, Reno, Nevada, USA, 5-8 January 2004

Conclusions

With JUSTGrid a modern, well structured, easy to use and extensible framework for HPCC is provided.

The code developer is freed from dealing with complex geometries, dynamic load balancing and inter block or domain communication.

A numerical framework for a system of hyperbolic conservation laws is installed, based on the integral form of the conservation equations

The parallel efficiency is obtained if a sufficient number of threads and sufficient computational work within a thread can be provided.

The execution speed of Java code has increased substantially over the last few years and now rivals the speed of C and C++ codes. More is too be expected.

Further work will be needed, but we following Kernighan's rules Make it right before you make it faster as well as Don't patch bad code, rewrite it, the latter rule being the reason for a pure Java flow solver code.

Page 38: A Pure Java HPCC Grid Architecture for Multi-Physics ... · High Performance Computing and Communications (HPCC) on a global scale is the key of this new economy. The need for accurate

page 38©2004 University of Applied Sciences Wolfenbuettel and CLE, Department of High Performance Computing

Thorsten Ludewig, 42nd AIAA, Aerospace Science Meeting and Exhibit, Reno, Nevada, USA, 5-8 January 2004

Future Work

Extending the JUSTGrid parallel layer to work with distributed memory machines (Beowulf cluster). (e.g., JavaSpaces, JINI, Sockets)

Page 39: A Pure Java HPCC Grid Architecture for Multi-Physics ... · High Performance Computing and Communications (HPCC) on a global scale is the key of this new economy. The need for accurate

page 39©2004 University of Applied Sciences Wolfenbuettel and CLE, Department of High Performance Computing

Thorsten Ludewig, 42nd AIAA, Aerospace Science Meeting and Exhibit, Reno, Nevada, USA, 5-8 January 2004

Acknowledgments

This work is partly funded by the ministry of Sciences and Culture of the State of Lower Saxony, Germany under AGIP 1999.365 EXTV program.

We are particularly grateful to Sun Microsystems, Benchmark Center, Germany for providing exclusive access to a 28 CPU Sun Enterprise 6000 server.

We are grateful to Mr. Jean Muylaert for providing information about the European eXperimental Test Vehicle.

This work is part of the Ph.D. work of Thorsten Ludewig

Page 40: A Pure Java HPCC Grid Architecture for Multi-Physics ... · High Performance Computing and Communications (HPCC) on a global scale is the key of this new economy. The need for accurate

page 40©2004 University of Applied Sciences Wolfenbuettel and CLE, Department of High Performance Computing

Thorsten Ludewig, 42nd AIAA, Aerospace Science Meeting and Exhibit, Reno, Nevada, USA, 5-8 January 2004

References

Ginsberg,M., Häuser,J.,Moreira, J.E.,Morgan R., Parsons, J.C., Wielenga, T.J.Panel Session: future directions and challenges for Java implementations of numeric-intensive industrial applications published in: Advances in Engineering Software, Elsevier, 31,2000, p.743-751

Häuser,J., Ludewig, T., Williams, Roy D., Winkelmann, R., Gollnick, T., Brunett, S., Muylaert, J.A Test Suite for High Performance Parallel Java published in: Advances in Engineering Software, Elsevier,31, 2000, p.687-696

Häuser,J., Ludewig, T., Williams, Roy D., Winkelmann, R., Gollnick, T., Brunett, S., Muylaert, J.A Test Suite for High Performance Parallel Java paper presented at 5th National Symposium on Large-Scale Analysis, Design and Intelligent Synthesis Environments, Williamsburg, VA, October 12th to 15th, 1999

Häuser,J., Ludewig, T., Williams, Roy D., Winkelmann, R., Gollnick, T., Brunett, S., Muylaert, J.NASA Panel Java Soundbytes paper presented at 5th National Symposium on Large-Scale Analysis, Design and Intelligent Synthesis Environments, Williamsburg, VA, October 12th to 15th, 1999

Häuser, J., Ludewig, Th., Gollnick, T., Winkelmann, R., Williams, R., D., Muylaert, J., Spel, M.,A Pure Java Parallel Flow Solver, published in: Proceedings of the 37th AIAA Aerospace Sciences Meeting and Exhibit, AIAA 99-0549 Reno, NV, USA, January 11.-14., 1999.

Häuser J., Williams R.D, Spel M., Muylaert J., ParNSS: An Efficient Parallel Navier-Stokes Solver for Complex Geometries, AIAA 94-2263, AIAA 25th Fluid Dynamics Conference, Colorado Springs, June 1994.