+ All Categories
Home > Documents > Maximise Application Performance - Fujitsu...•High performance collective communications using...

Maximise Application Performance - Fujitsu...•High performance collective communications using...

Date post: 21-Jul-2020
Category:
Upload: others
View: 0 times
Download: 0 times
Share this document with a friend
17
Maximise Application Performance Copyright 2013 FUJITSU LIMITED
Transcript
Page 1: Maximise Application Performance - Fujitsu...•High performance collective communications using Tofu barrier synchronisation function Scalability of Himeno benchmark(XL size) 0 2

Maximise Application Performance

Copyright 2013 FUJITSU LIMITED

Page 2: Maximise Application Performance - Fujitsu...•High performance collective communications using Tofu barrier synchronisation function Scalability of Himeno benchmark(XL size) 0 2

System Overview

Super-large-scale system – combining 88,128 processors

Combination of advanced technology developed by Fujitsu

Development was completed in June 2012. System Theoretical calculation speed : 11.28 petaflops(1)

LINPACK performance : 10.51petaflops

Processors: 88,128 Total memory: 1.26 petabytes

CPU SPARC64TM VIIIfx (8 cores, 128 gigaflops)

Interconnect 6-dimensional mesh/torus topology (Tofu)

The K computer - Developed by RIKEN & Fujitsu

(1) FLOPS: the number of FLoating Operations Per Second. 1 petaflops is 1015 (1 quadrillion), 1 gigaflops is 109 (1 billion) calculations per second

The K computer in Kobe, Hyogo

Copyright 2013 FUJITSU LIMITED 1

Page 3: Maximise Application Performance - Fujitsu...•High performance collective communications using Tofu barrier synchronisation function Scalability of Himeno benchmark(XL size) 0 2

K computer and PRIMEHPC FX10

Fujitsu supercomputer w/ enhanced technology introduced for K computer

K computer PRIMEHPC FX10 Note

CPU SPARC64 VIIIfx SPARC64 IXfx SPARC V9 + HPC-ACE

Peak perf. 128 GFLOPS 236.5 GFLOPS

# of cores 8 16

Memory 16GB 32GB/64GB 2GB/core~

BW 64GB/s 85GB/s

Interconnect 6D mesh/torus ← Tofu interconnect

System size X x Y x 17 X x Y x 9 Z=0 is I/O node

link BW 5GB/s x bidirectional ←

Copyright 2013 FUJITSU LIMITED 2

Page 4: Maximise Application Performance - Fujitsu...•High performance collective communications using Tofu barrier synchronisation function Scalability of Himeno benchmark(XL size) 0 2

Software stack for Fujitsu supercomputers

PRIMEHPC FX10

Applications

HPC Portal / System Management Portal

Job manager Job scheduler Resource management Parallel

Job Management

System Management

Linux based OS (enhanced for FX10)

Lustre based high performance distributed file system

High scalability, high reliability and availability

High Performance File System

FEFS

Fortran C C++

Programming support tools Mathematical libraries

OpenMP MPI XPFortran

Tools and math. libraries

Parallel languages and libraries

Automatic parallelisation compiler

Technical Computing Suite

System management System control System monitoring System operation support

*Technical Computing Suite is also available for x86 clusters Copyright 2013 FUJITSU LIMITED 3

Page 5: Maximise Application Performance - Fujitsu...•High performance collective communications using Tofu barrier synchronisation function Scalability of Himeno benchmark(XL size) 0 2

Language system overview

Fortran C/C++ Compiler Programming model (OpenMP, MPI, XPFortran) Instruction level /Loop level optimisation using HPC-ACE Debugging and Tuning tools for massively parallel supercomputer

*1: eXtended Parallel Fortran (Distributed Parallel Fortran) *2: Rank Map Automatic Tuning Tool

Inte

r N

ode

Intr

a N

ode

Fortran 2003

Programming Language, MPI Programming tool Math. Lib.

XPFortran *1

BLAS LAPACK SSL II

IDE Debugger Profiler

MPI 2.1 ScaLAPACK

C (C89)

C++ (C++2003)

OpenMP 3.0

RMATT *2

• Insts. level optimisation Instruction scheduling SIMDisation

• Loop level opt. Automatic Parallelisation

Copyright 2013 FUJITSU LIMITED 4

Page 6: Maximise Application Performance - Fujitsu...•High performance collective communications using Tofu barrier synchronisation function Scalability of Himeno benchmark(XL size) 0 2

Application Results

Simulation of turbulent fusion plasma Gyrokinetic Toroidal 5D Eulerian Code GT5D

[Idomura et al., Comput. Phys. Commun (2008); Nuclear Fusion (2009)]

Prediction of reactor performance limited by plasma turbulent transport

Describe dynamics of fuel plasma distribution in 5D phase space

Resolve from machine size ~1m to ion gyro-radius ~1mm

x

y

z

v//

v^

v//

v^

Copyright 2013 FUJITSU LIMITED 5

Page 7: Maximise Application Performance - Fujitsu...•High performance collective communications using Tofu barrier synchronisation function Scalability of Himeno benchmark(XL size) 0 2

0

10

20

30

40

50

60

0 5000 10000 15000 20000 25000 30000 35000

Sustaine

dPe

rforman

ce(T

F)

cores

K-asis Helios-asis

K-tune Helios-tune

BX900-asis

JT-60U Scale:(NR,Nz,NZ,Nv//,Nm)=(240,64,240,128,32)~1.5×1010

[Y. Idomura et al., Int. J. HPC Appl. in press] Presents by Y. Idomura in The Japan Atomic Energy Agency

0

5

10

15

20

25

30

35

40

45

50

0 5000 10000 15000 20000 25000 30000 35000

Commun

icaon

Cost(%)

cores

K-asis Helios-asis

K-tune Helios-tune

BX900-asis

Strong Scheduling of GT5D code(JT-60 scale)

※Data of K computer is provisional

Sustained performance (Tflops) Communication cost ratio(%)

K 25TF(9.5%)→30TF(11.3%) Helios 23TF(6.4%)→29TF(8.3%) BX900(Fujitsu Blade Server ) 19TF(9.8%)

Copyright 2013 FUJITSU LIMITED 6

Page 8: Maximise Application Performance - Fujitsu...•High performance collective communications using Tofu barrier synchronisation function Scalability of Himeno benchmark(XL size) 0 2

e.g) Minimise Operating System jitter with RDMA of Tofu

a. Node / service health check

b. System information monitor (remote sadc)

c. Job information monitor (CPU time/used memory)

Reduce system jitter

Compute node Compute node

IO node

RDMA RDMA

Optimised system software (incl. OS/FEFS) to minimise Operating System activity <FX10 + TCSuite> <IA Cluster w/ TCSuite> <IA Cluster w/o TCSuite>

Copyright 2013 FUJITSU LIMITED 7

Page 9: Maximise Application Performance - Fujitsu...•High performance collective communications using Tofu barrier synchronisation function Scalability of Himeno benchmark(XL size) 0 2

VISIMPACT – Hybrid parallelisation –

Inheriting and advancing vectorisation technology, corresponding to the Many core era

VISIMPACT(Virtual Single Processor by Integrated Multi-core Parallel Architecture)

MPI program is automatically compiled to hybrid parallelisation (process and multithread) and executed ⇒ Communication overhead and memory usage reduced by MPI rank number decrease ⇒ Synchronisation overhead reduced by hardware barrier synchronisation between CPU cores

Automatic parallelisation by compiler

MPI Communication

CPU

MPI Communication

Cache

MPI Rank Num:9 MPI Rank Num:3

Core

Copyright 2013 FUJITSU LIMITED 8

Page 10: Maximise Application Performance - Fujitsu...•High performance collective communications using Tofu barrier synchronisation function Scalability of Himeno benchmark(XL size) 0 2

Network topology of Tofu interconnect

Highly scalable compared to three-dimensional torus

High operability and reliability

Average number of hops, bisection bandwidth is improved with additional dimensions

Three-dimensional torus 2×3×2

Three-dimensional torus Max.32×32×17

Research Paper of Tofu interconnect technology published in IEEE computer(2009)

Six-dimensional mesh/torus direct connection network (MAX.32x32x17x2x3x2)

Copyright 2013 FUJITSU LIMITED 9

Page 11: Maximise Application Performance - Fujitsu...•High performance collective communications using Tofu barrier synchronisation function Scalability of Himeno benchmark(XL size) 0 2

Optimised alltoall communication of Tofu interconnect

Usage of uniform link is important for alltoall communication performance efficiency

Development of a new algorithm to take advantage of Tofu

0

1

2

3

4

1.E+00 1.E+02 1.E+04 1.E+06G

B/s

Message size in bytes

Tofu (8x4x8=256)

InfiniBand QDR (256)

New Algorithm

Provide optimised library

Surpassed Fat-Tree in measurement of 256 nodes(InfiniBand QDR)

Ease of porting applications

Copyright 2013 FUJITSU LIMITED 10

Page 12: Maximise Application Performance - Fujitsu...•High performance collective communications using Tofu barrier synchronisation function Scalability of Himeno benchmark(XL size) 0 2

Programming Model for High Scalability

Hybrid parallelisation by VISIMPACT and MPI library

VISIMPACT

•Automated multi-thread parallelisation

•High performance thread synchronisation using Inter-core hardware barrier synchronisation function

MPI library

•High performance collective communications using Tofu barrier synchronisation function

Scalability of Himeno benchmark(XL size)

0

2

4

6

8

10

12

14

16

18

20

1,000 10,000 100,000Number of cores

Performance

ratio

Hybrid + Tofu barrier

Hybrid

Flat MPI

Extracted from K computer performance data

Himeno benchmark detail (65536 Core)

0

0.2

0.4

0.6

0.8

1

1.2

Hybrid + Tofu

barrier

Hybrid Flat MPI

Time Ratio

Collective communication

Neighbor Communication and Calculation

Extracted from K computer performance data

Copyright 2013 FUJITSU LIMITED 12

Page 13: Maximise Application Performance - Fujitsu...•High performance collective communications using Tofu barrier synchronisation function Scalability of Himeno benchmark(XL size) 0 2

Customised MPI Library for High Scalability

Point-to-Point communication

•Use special type of low-latency path that bypasses the software layer

•Transfer method optimisation according to data length, process location and number of hops

Collective communication

•High performance Barrier synchronisation, Allreduce, Bcast and Reduce using Tofu barrier function

•Scalable Bcast, Allgather, Allgatherv, Allreduce and Alltoall algorithm optimised for Tofu network

Extracted from K computer performance data

Copyright 2013 FUJITSU LIMITED 13

Page 14: Maximise Application Performance - Fujitsu...•High performance collective communications using Tofu barrier synchronisation function Scalability of Himeno benchmark(XL size) 0 2

Compiler Optimisation for High Performance

Instruction-level parallelism with SIMD instructions

Improvement of computing efficiency using Expanded registers

Improvement of cache efficiency using Sector cache

0

0.2

0.4

0.6

0.8

1

1.2

Memory wait Cache missesOperation wait Instructions committed

NPB3.3 LU Execution time comparison (relative values)

FX1 PRIMEHPC FX10

Faster

Efficient use of Expanded registers reduces Operation wait

0

0.2

0.4

0.6

0.8

1

1.2

Memory wait Cache missesOperation wait Instructions committed

NPB3.3 MG Execution time comparison (relative values)

FX1 PRIMEHPC FX10

Faster

SIMD implementation reduces Instructions

committed

Copyright 2013 FUJITSU LIMITED 14

Page 15: Maximise Application Performance - Fujitsu...•High performance collective communications using Tofu barrier synchronisation function Scalability of Himeno benchmark(XL size) 0 2

Application Tuning Cycle and Tools

Execution

MPI Tuning

CPU Tuning

Overall Tuning

Job Information

PAPI

Vampir-trace

Profiler

Profiler RMATT

Tofu-PA

Open Source Tools

Vampir-trace

FX10 Specific Tools

Profiler snapshot

Notation

Copyright 2013 FUJITSU LIMITED 15

Page 16: Maximise Application Performance - Fujitsu...•High performance collective communications using Tofu barrier synchronisation function Scalability of Himeno benchmark(XL size) 0 2

Optimised Rank Map Reduce number of hops and congestion

Rank Mapping Optimisation (RMATT)

x,y,z order mapping

Remapping used RMATT

22.3ms

5.5ms

•0 •1 •2

•3 •4 •5

•6 •7 •8

•8 •6 •2

•1 •3 •0

•5 •7 •4

•Rank number : 4096 rank •Network Configuration : 16x16x16 node (4096)

Apply MPI_Allgather Communication Processing Performance

Network Configuration Communication Pattern (Communication processing contents between Rank)

RMATT

4 times performance Up

input

output

apply

Copyright 2013 FUJITSU LIMITED 16

Page 17: Maximise Application Performance - Fujitsu...•High performance collective communications using Tofu barrier synchronisation function Scalability of Himeno benchmark(XL size) 0 2

Copyright 2013 FUJITSU LIMITED 17


Recommended