Computational Astrophysics - University Of Maryland · Computational Astrophysics Organizers and...

20
William Dorland Department of Physics University Honors Program University of Maryland Computational Astrophysics

Transcript of Computational Astrophysics - University Of Maryland · Computational Astrophysics Organizers and...

Page 1: Computational Astrophysics - University Of Maryland · Computational Astrophysics Organizers and Lecturers: William Dorland, Michael Norman, Frans Pretorius, ... physics (solar wind),

William DorlandDepartment of Physics

University Honors ProgramUniversity of Maryland

Computational Astrophysics

Page 2: Computational Astrophysics - University Of Maryland · Computational Astrophysics Organizers and Lecturers: William Dorland, Michael Norman, Frans Pretorius, ... physics (solar wind),

In collaboration with

Ramani Duraiswami, Nail Gumerov,

Kate Despain, Derek Juba,

Yuancheng Luo, Amitabh Varshney,

George Stantchev, Bill Burns,

Frank Herrmann, John Silberholz,

Matias Bellone, Manuel Tiglio

Page 3: Computational Astrophysics - University Of Maryland · Computational Astrophysics Organizers and Lecturers: William Dorland, Michael Norman, Frans Pretorius, ... physics (solar wind),

An intensive summer program

for graduate students

and postdoctoral fellows

July 13-24, 2009

ComputationalAstrophysics

Organizers and Lecturers:

William Dorland, Michael Norman, Frans Pretorius,

Derek Richardson, Anatoly Spitkovsky, Volker Springel,

Jim Stone, and Scott Tremaine

Program support provided by The Concordia Foundation

Page 4: Computational Astrophysics - University Of Maryland · Computational Astrophysics Organizers and Lecturers: William Dorland, Michael Norman, Frans Pretorius, ... physics (solar wind),

Overview• Maryland astrophysics effort: what, why

• Results of integration: Middleware library to accelerate development in Fortran 9x: Flagon

• Maryland astromap

Page 5: Computational Astrophysics - University Of Maryland · Computational Astrophysics Organizers and Lecturers: William Dorland, Michael Norman, Frans Pretorius, ... physics (solar wind),

In collaboration with

Ramani Duraiswami, Nail Gumerov,

Kate Despain, Derek Juba,

Yuancheng Luo, Amitabh Varshney,

George Stantchev, Bill Burns,

Frank Herrmann, John Silberholz,

Matias Bellone, Manuel Tiglio

Page 6: Computational Astrophysics - University Of Maryland · Computational Astrophysics Organizers and Lecturers: William Dorland, Michael Norman, Frans Pretorius, ... physics (solar wind),

Binary Black Holes with GPUs

• Gravitational wave astronomy requires source characterization -- large-scale problem in numerical relativity

• Project: determine “final” relative orientations of spin axes for black holes of different masses as a function of “initial” conditions -- 7-D ensemble, expensive

Page 7: Computational Astrophysics - University Of Maryland · Computational Astrophysics Organizers and Lecturers: William Dorland, Michael Norman, Frans Pretorius, ... physics (solar wind),

Binary Black Holes with GPUs

• Gravitational wave astronomy requires source characterization -- large-scale problem in numerical relativity

• Project: determine “final” relative orientations of spin axes for black holes of different masses as a function of “initial” conditions -- 7-D ensemble, expensive

Page 8: Computational Astrophysics - University Of Maryland · Computational Astrophysics Organizers and Lecturers: William Dorland, Michael Norman, Frans Pretorius, ... physics (solar wind),

Binary Black Holes with GPUs

• Development on local Teslas [now production-ready]

• 60x speed-up achieved on MPI+CUDA-enabled Monte Carlo sampling of 7-D space (systems of ODEs, post-Newtonian approx)

• Next step: 0.5M hours on NCSA Lincoln cluster

• 1536 cores, 384 Teslas

• Production cluster (in addition to new local resource)

Page 9: Computational Astrophysics - University Of Maryland · Computational Astrophysics Organizers and Lecturers: William Dorland, Michael Norman, Frans Pretorius, ... physics (solar wind),

For more info today:

Frank Herrmann, John Silberholz,

Matias Bellone, Manuel Tiglio

Page 10: Computational Astrophysics - University Of Maryland · Computational Astrophysics Organizers and Lecturers: William Dorland, Michael Norman, Frans Pretorius, ... physics (solar wind),

Milky Way in X-Rays from Chandra

Page 11: Computational Astrophysics - University Of Maryland · Computational Astrophysics Organizers and Lecturers: William Dorland, Michael Norman, Frans Pretorius, ... physics (solar wind),

Pulsar in Crab Nebula: Chandra, Hubble

Page 12: Computational Astrophysics - University Of Maryland · Computational Astrophysics Organizers and Lecturers: William Dorland, Michael Norman, Frans Pretorius, ... physics (solar wind),

Everything you can see in these pictures is associated with super-hot, turbulent plasma (ionized gas).

To understand the details, one needs to understand how astrophysical objects turn gravitational energy into light.

This requires high-performance computing, now being accelerated with NVidia GPU’s.

Page 13: Computational Astrophysics - University Of Maryland · Computational Astrophysics Organizers and Lecturers: William Dorland, Michael Norman, Frans Pretorius, ... physics (solar wind),

Key Questions Addressed • How stable is the hardware + software platform?

• Which major algorithms can successfully exploit GPU hardware?

• What is the development and maintenance path for porting large-scale applications to this platform? Is there a net benefit? Or is the programming model too cumbersome?

• Which algorithms can exploit clusters of GPU’s?

• Aiming for a $1-5M purchase in 2009-10 timeframe. CPU? GPU? Which vendor?

Page 14: Computational Astrophysics - University Of Maryland · Computational Astrophysics Organizers and Lecturers: William Dorland, Michael Norman, Frans Pretorius, ... physics (solar wind),

Refuting the Moore’s law argument• Argument ~ Wait for processor performance to solve

complex problems, without algorithm improvement

• Is this true?

• Yes, for algorithms with linear asymptotic complexity

• No!! For algorithms with different aymptotic complexity

• Most scientific algorithms ~ or

• For a million variables, we would need about 16 generations of Moore’s law before an algorithm was comparable with an O(N) algorithm.

• Implies need for sophisticated algorithms, but are they programmable on a GPU?

N2

N3N3

N2

Page 15: Computational Astrophysics - University Of Maryland · Computational Astrophysics Organizers and Lecturers: William Dorland, Michael Norman, Frans Pretorius, ... physics (solar wind),

Turbulence theory is guided by computation/simulation

• Properties of plasma turbulence are important in laboratory experiments (such as fusion research), in space physics (solar wind), and in astrophysics (ISM, accretion flow luminosity)

• Most computations from Maryland carried out at national supercomputing facilities, on hundreds to thousands of processors.

Fusion turbulence

Page 16: Computational Astrophysics - University Of Maryland · Computational Astrophysics Organizers and Lecturers: William Dorland, Michael Norman, Frans Pretorius, ... physics (solar wind),

Turbulence theory is guided by computation/simulation

• Properties of plasma turbulence are important in laboratory experiments (such as fusion research), in space physics (solar wind), and in astrophysics (ISM, accretion flow luminosity)

• Most computations from Maryland carried out at national supercomputing facilities, on hundreds to thousands of processors.

Accretion flow luminosity [Goldston, Quataert, Igumenshchev, 2005]

Page 17: Computational Astrophysics - University Of Maryland · Computational Astrophysics Organizers and Lecturers: William Dorland, Michael Norman, Frans Pretorius, ... physics (solar wind),

Turbulence theory is guided by computation/simulation

• Properties of plasma turbulence are important in laboratory experiments (such as fusion research), in space physics (solar wind), and in astrophysics (ISM, accretion flow luminosity)

• Most computations from Maryland carried out at national supercomputing facilities, on hundreds to thousands of processors. GPU Goal

Page 18: Computational Astrophysics - University Of Maryland · Computational Astrophysics Organizers and Lecturers: William Dorland, Michael Norman, Frans Pretorius, ... physics (solar wind),

Conversion of legacy Fortran 9x code important to scientific community

• Maintainability, portability

• Developed Flagon, an F9x wrapper to ease transition to CUDA

• Flagon available at Sourceforge as Open Source project

Page 19: Computational Astrophysics - University Of Maryland · Computational Astrophysics Organizers and Lecturers: William Dorland, Michael Norman, Frans Pretorius, ... physics (solar wind),

GPU Performance Achievable by Non-Expert

Plasma turbulence code (Orzag-Tang problem) ported from existing Fortran 95 code in one day achieves 25x speedup

GPU non-expert (me)

Expert (Despain) then upped to 32x

Page 20: Computational Astrophysics - University Of Maryland · Computational Astrophysics Organizers and Lecturers: William Dorland, Michael Norman, Frans Pretorius, ... physics (solar wind),

Starmap

• Upgrading current clusters, testing Teslas and looking at OpenCL

• Major questions remaining to be answered:

1. Multi-GPU computing necessary for astro apps we care about

• Current and continuing focus

2. Is development platform rich enough for GPU non-experts?