shaping light with gpus - nvidiaon-demand.gputechconf.com/gtc/2016/presentation/s... · ๏ based...

22
1 Shaping light with GPUs Damien Gratadour Observatoire de Paris & Université Paris Diderot

Upload: others

Post on 08-Jun-2020

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Shaping light with GPUs - NVIDIAon-demand.gputechconf.com/gtc/2016/presentation/s... · ๏ Based on Altera Stratix V board ๏ Using PLDA development tools for PCIe + UDP ๏ Multiple

1

Shaping light with GPUs

Damien GratadourObservatoire de Paris & Université Paris Diderot

Page 2: Shaping light with GPUs - NVIDIAon-demand.gputechconf.com/gtc/2016/presentation/s... · ๏ Based on Altera Stratix V board ๏ Using PLDA development tools for PCIe + UDP ๏ Multiple

2

Observing stars from the ground

๏ Atmospheric turbulence

๏ Disturbs the trajectory of lightrays when they cross the atmosphere

๏ Reduces astronomical imagesquality

๏ Similar to the effect of aberrationsin an optical system

๏ Adaptive optics

๏ Compensate in real-time forthe effect of optical aberrations on image quality

๏ Already in use on most 5-10m astronomical telescope to provide nominal image quality whatever the turbulence conditions

Page 3: Shaping light with GPUs - NVIDIAon-demand.gputechconf.com/gtc/2016/presentation/s... · ๏ Based on Altera Stratix V board ๏ Using PLDA development tools for PCIe + UDP ๏ Multiple

3

Observing stars from the ground

๏ From a spherical wave to a flat wavefront

Page 4: Shaping light with GPUs - NVIDIAon-demand.gputechconf.com/gtc/2016/presentation/s... · ๏ Based on Altera Stratix V board ๏ Using PLDA development tools for PCIe + UDP ๏ Multiple

4

Observing stars from the ground

๏ Crossing the atmosphere distorts the wavefront

๏ Mixture of hot and coldair bubbles with varyingrefractive index

๏ Strongly affects image quality

Page 5: Shaping light with GPUs - NVIDIAon-demand.gputechconf.com/gtc/2016/presentation/s... · ๏ Based on Altera Stratix V board ๏ Using PLDA development tools for PCIe + UDP ๏ Multiple

5

Adaptive optics

๏ Compensate in real-time the wavefront perturbations

๏ Using a wavefrontsensor to measurethem

๏ Using a deformablemirror to reshapethe wavefront

๏ Commands to themirror must becomputed in real-time(1ms rate)

High resolutioncamera

Wavefrontsensor

Deformablemirror

Disturbedwavefront

Correctedwavefront

Beam-splitter

Real-timecontroller

Loop closed Loop open

Page 6: Shaping light with GPUs - NVIDIAon-demand.gputechconf.com/gtc/2016/presentation/s... · ๏ Based on Altera Stratix V board ๏ Using PLDA development tools for PCIe + UDP ๏ Multiple

6

Adaptive optics

๏ Example with observations of the moon using a 8m telescope

Without AO With AO

Page 7: Shaping light with GPUs - NVIDIAon-demand.gputechconf.com/gtc/2016/presentation/s... · ๏ Based on Altera Stratix V board ๏ Using PLDA development tools for PCIe + UDP ๏ Multiple

7

European Extremely Large Telescope

๏ 39m diameter telescope : x5 in diameter => x25 in system complexity

๏ 100m dome, 2800 tones structure rotating @ 360°, seismic safe (Chile)

๏ 1.2 G€ project, first light foreseen in 2024

๏ Construction led by ESO (EuropeanSouthern Observatory), international organisation funded by 15 Europeancountries

๏ Telescope components + science instruments built by european research labs + industrial partners

Page 8: Shaping light with GPUs - NVIDIAon-demand.gputechconf.com/gtc/2016/presentation/s... · ๏ Based on Altera Stratix V board ๏ Using PLDA development tools for PCIe + UDP ๏ Multiple

8

Adaptive optics

๏ Compensate in real-time the wavefront perturbations

๏ Using a wavefrontsensor to measurethem

๏ Using a deformablemirror to reshapethe wavefront

๏ Commands to themirror must becomputed in real-time(1ms rate)

High resolutioncamera

Wavefrontsensor

Deformablemirror

Disturbedwavefront

Correctedwavefront

Beam-splitter

Real-timecontroller

Loop closed Loop open

Page 9: Shaping light with GPUs - NVIDIAon-demand.gputechconf.com/gtc/2016/presentation/s... · ๏ Based on Altera Stratix V board ๏ Using PLDA development tools for PCIe + UDP ๏ Multiple

9

AO real-time controller

๏ Highly heterogeneous HPC facility

Page 10: Shaping light with GPUs - NVIDIAon-demand.gputechconf.com/gtc/2016/presentation/s... · ๏ Based on Altera Stratix V board ๏ Using PLDA development tools for PCIe + UDP ๏ Multiple

10

The Green Flash project

๏ Goal : prototype a generic RTC for the next generation of AO on extremely large telescopes

๏ 4 partners in Europe (2 academic partners + 2 SMEs), project lead : Observatoire de Paris, 3.8 M€ investment funded under the H2020 program (FET-HPC, project #671662)

๏ Assess various technologies (CPUs, GPUs, FPGAs) for the different sub-components (real-time core, supervisor) and find the best trade-off

๏ Assemble a full featured prototype in the lab by 2018

Page 11: Shaping light with GPUs - NVIDIAon-demand.gputechconf.com/gtc/2016/presentation/s... · ๏ Based on Altera Stratix V board ๏ Using PLDA development tools for PCIe + UDP ๏ Multiple

11

Prototyping in the lab

๏ AO system components for the E-ELT are not yet available

๏ High framerate low noise cameras under development

๏ High density deformable mirror under construction, too large to be integrated in the lab (2.5m)

๏ Need to emulate these components to work in the lab

Credits : Microgate

Page 12: Shaping light with GPUs - NVIDIAon-demand.gputechconf.com/gtc/2016/presentation/s... · ๏ Based on Altera Stratix V board ๏ Using PLDA development tools for PCIe + UDP ๏ Multiple

12

Prototyping in the lab

๏ Liquid Crystal On Silicon : reflective Spatial Light Modulator

๏ Changes the phase of light without any change in intensity according to alignment of LC

๏ LC controlled pixel by pixel by applied voltage using CMOS backplane

๏ Controlled through DVI signal from a PC

๏ Large number of pixels (up to 1k x 1k)

๏ 120 FPS (DVI), rise time 5ms

Credits : Hamamatsu

Page 13: Shaping light with GPUs - NVIDIAon-demand.gputechconf.com/gtc/2016/presentation/s... · ๏ Based on Altera Stratix V board ๏ Using PLDA development tools for PCIe + UDP ๏ Multiple

13

First stage lab experiment

๏ Integration of a pyramid wavefront sensor demonstrator

Credits : S. Egner

Page 14: Shaping light with GPUs - NVIDIAon-demand.gputechconf.com/gtc/2016/presentation/s... · ๏ Based on Altera Stratix V board ๏ Using PLDA development tools for PCIe + UDP ๏ Multiple

14

First stage lab experiment

๏ Integration of a pyramid wavefront sensor demonstrator

๏ Using a 10 GbE camera from Emergent Vision Technologies (emulate a single WFS at full frame rate)

๏ Zoom optics : allows for various pupil samplings, i.e. various system dimensioning

Page 15: Shaping light with GPUs - NVIDIAon-demand.gputechconf.com/gtc/2016/presentation/s... · ๏ Based on Altera Stratix V board ๏ Using PLDA development tools for PCIe + UDP ๏ Multiple

15

Loop concept

๏ Emulate a simple AO loop

Get wavefront measurementsReconstruct the phase

High framerate, low latencydata acquisition

Map wavefront to given DMgeometry

RTC

Page 16: Shaping light with GPUs - NVIDIAon-demand.gputechconf.com/gtc/2016/presentation/s... · ๏ Based on Altera Stratix V board ๏ Using PLDA development tools for PCIe + UDP ๏ Multiple

16

First stage lab experiment

๏ Custom RTC demonstrator

๏ High end dual GPU server

Page 17: Shaping light with GPUs - NVIDIAon-demand.gputechconf.com/gtc/2016/presentation/s... · ๏ Based on Altera Stratix V board ๏ Using PLDA development tools for PCIe + UDP ๏ Multiple

17

First stage lab experiment

๏ Critical aspect : low latency data acquisition from the camera

๏ Using an off-the-shelf frame grabber

๏ Very high jitter in performance

GPU

DDRMem.

Serialinterface

PCIe bus

FPGADMAengine

DDRMem.

CPUDDRMem.

10 GbeFrame-grabber

Pixel data

Page 18: Shaping light with GPUs - NVIDIAon-demand.gputechconf.com/gtc/2016/presentation/s... · ๏ Based on Altera Stratix V board ๏ Using PLDA development tools for PCIe + UDP ๏ Multiple

18

First stage lab experiment

๏ Using GPU direct + persistent kernels : reduce jitter, i.e. ensure loop stability

GPU

DDRMem.

Serialinterface

PCIe bus

FPGADMAengine

DDRMem.

CPUDDRMem.

10 GbeFrame-grabber

Pixel data

Comp

Comp Comp Comp Comp Comp

Cpy

Comp Comp Comp Comp

Cpy Cpy Cpy Cpy Cpy

Cpy Cpy Cpy Cpy

Timeline for standard kernel call

Timeline for persistent kernel call

Page 19: Shaping light with GPUs - NVIDIAon-demand.gputechconf.com/gtc/2016/presentation/s... · ๏ Based on Altera Stratix V board ๏ Using PLDA development tools for PCIe + UDP ๏ Multiple

19

First stage lab experiment

๏ Custom frame grabber : developped in collaboration with PLDA

๏ Based on Altera Stratix V board

๏ Using PLDA development toolsfor PCIe + UDP

๏ Multiple DMA engines

UDP0 DEMUX

Signal TAPLogic

Analyzer

FIFO

Data Generator

DMA0

DMA1

DMA3

AddressTranslation

PHY

QuickPCIe

QuickUDP

App config

Custom 10 Gbe GigeVision Framegrabber

BufferCPU

BufferGPU

DMA2 BufferCPU

BufferCPU

GVCP

GVSP

GVCP

Registers

DEC

..

.PHY UDP1

QuickUDP

FIBRE

Page 20: Shaping light with GPUs - NVIDIAon-demand.gputechconf.com/gtc/2016/presentation/s... · ๏ Based on Altera Stratix V board ๏ Using PLDA development tools for PCIe + UDP ๏ Multiple

20

What's next ?

๏ Close the loop and demonstrateAO performance for variousmirror scales / actuators geometry

๏ Build a scaled down prototypeof real system with severalcameras (up to 6) : need toincrease the number of GPUs in the system (15 to 20 boards)

๏ Compare performance of GPUsolution against other technologies (CPUs, FPGAs) at full scale

๏ Have more fun !

Page 21: Shaping light with GPUs - NVIDIAon-demand.gputechconf.com/gtc/2016/presentation/s... · ๏ Based on Altera Stratix V board ๏ Using PLDA development tools for PCIe + UDP ๏ Multiple

21

Outline

๏ Next generation of large ground based telescope will require AO systems with unprecedented complexity (x25 as compared to state of the art)

๏ Several generations of instruments => several system dimensioning

๏ GPUs are good candidates to build the real-time controllers for these systems

๏ Single board performance + scalability

๏ Requires full control over pixels data acquisition to get deterministic performance (i.e. loop stability) and dedicated data pipeline

๏ GPUs are also used to simulate systems performance and lead trade-off studies for the design (see H. Ltaief talk, room 212A, 3 p.m. today)

Page 22: Shaping light with GPUs - NVIDIAon-demand.gputechconf.com/gtc/2016/presentation/s... · ๏ Based on Altera Stratix V board ๏ Using PLDA development tools for PCIe + UDP ๏ Multiple

22

Thank you