Cloud-based data analysis: GPU-accelerated Coherent X-ray Imaging & HERCULES school perspective
Vincent Favre-Nicolin ESRF, X-ray NanoProbe HERCULES director
HERCULES
European School
Neutron & Synchrotron radiation for science
HERCULES European School Neutron & Synchrotron radiation for - - PowerPoint PPT Presentation
Cloud-based data analysis: GPU-accelerated Coherent X-ray Imaging & HERCULES school perspective Vincent Favre-Nicolin ESRF, X-ray NanoProbe HERCULES director HERCULES European School Neutron & Synchrotron radiation for science
Neutron & Synchrotron radiation for science
Page 2 l PaNOSC Kickoff meeting l Vincent FAVRE-NICOLIN
2019/01/15
Page 3 l PaNOSC Kickoff meeting l Vincent FAVRE-NICOLIN
GPU (V100), OpenCL (clFFT) GPU (V100), CUDA Xeon E5-2686 4 cores, FFTW
2D FFT (16x1024x1024) 2.14 ms 1.09 ms 38 ms 3D FFT (128**3) 0.28 ms 0.12 ms 4 ms 3D FFT (256**3) 4.2 ms 0.7 ms 60 ms 3D FFT (512**3) 46 ms 5.54 ms 550 ms Amazon price/hour 3 € 3 € 0.4 € Cost per 10**6 2D FFT 0.11 € 0.06 € 0.26 € Cost per 10**6 3D FFT 38 € 4.6 € 61 €
NB: timing does not include data transfer to GPU (implies long on-GPU computing) The 3D 512**3 FFT on the V100 runs at 3.3 Tflop/s x13 x5 x7
Notes: Xeon E5-2686 test on the Amazon V100 machine (4 core=8 vCPUs). 256 and 512 3D FFTs are 10-20% faster on ESRF scisoft14 (Xeon Gold 6134). FFTW with FFTW_MEASURE
2019/01/15
You can use PyNX (without any GPU knowledge):
For:
Simple installation script but requires GPU workstation with CUDA and/or OpenCL
Page 4 l PaNOSC Kickoff meeting l Vincent FAVRE-NICOLIN
pynx-id16apty.py ptychomotors=mot_pos.txt,-x,y probe=focus,120e-6x120e-6,0.1 h5meta=meta.h5 h5data=data..nxs algorithm=analysis,ML**200,DM**300,probe=1,nbprobe=3 saveplot=object_phase save=all defocus=250e-6
2019/01/15
2019/01/15 Page 5 l PaNOSC Kickoff meeting l Vincent FAVRE-NICOLIN
2019/01/15 Page 6 l PaNOSC Kickoff meeting l Vincent FAVRE-NICOLIN
The CXI file format aims to create a data format with the following requirements: 1. Simple-both writing and reading should be made simple. 2. Flexible-users should be able to easily extend it. 3. Fast-it should be efficient so as not to become a bottleneck. 4. Extendable - new features should be easily added without breaking com- patibility with previous versions. 5. Unambiguous - it should be possible to interpret the files without using external information. 6. Compatible-the format should be as compatible as possible with existing formats Based on the HDF5 format Now with NeXus implementation (NXcxi_ptycho)
http://cxidb.org/cxi.html
Page 7 l PaNOSC Kickoff meeting l Vincent FAVRE-NICOLIN
Test K20m Titan X Titan V DGX-V100 (1 GPU) 3D CDI, 512**3 235 s 127 s 39 s 32 s Time for 30 runs 2 h 1h 20 mn 16 mn
EBS Outlook:
current generation GPU. Need multi-GPU FFT (slow)
Notes:
2019/01/15
Page 8 l PaNOSC Kickoff meeting l Vincent FAVRE-NICOLIN
Test K20m Titan X Titan V DGX-V100 (1 GPU) 2D Ptycho 17 frames 2k*2k 65 mn 36 mn 13 mn 10.5 mn Time for 720 projections (extrapolated) 33 days 18 days 6.6 days 5.2 days
EBS Outlook:
Notes:
2019/01/15
corrections
parameters/understand samples
laboratory as seamlessly as possible:
2019/01/15 Page 9 l PaNOSC Kickoff meeting l Vincent FAVRE-NICOLIN
GPU context) => issue for multi-user machines
2019/01/15 Page 10 l PaNOSC Kickoff meeting l Vincent FAVRE-NICOLIN
2019/01/15 Page 11 l PaNOSC Kickoff meeting l Vincent FAVRE-NICOLIN
Segmentation of coccoliths from 3D coherent diffraction imaging data. Þ Takes much longer than data acquisition & 3D reconstruction ! Þ Automated data processing through known algorithms work fine in the cloud (notebooks), but parts requiring heavy user manipulation are still challenging (no solution or no stable API)
A Gibaud, T. Beuvier, Y. Chushkin et al. – in press
Coccoliths: CaCO3 shells around phytoplankton, responsible for storing >50% of human produced CO2 (>500 Gt since 200 years)
2019/01/15 Page 12 l PaNOSC Kickoff meeting l Vincent FAVRE-NICOLIN
synchrotron radiation, with a wide range of applications (from biology to condensed matter physics)
2019/01/15 Page 13 l PaNOSC Kickoff meeting l Vincent FAVRE-NICOLIN
2019/01/15 Page 14 l PaNOSC Kickoff meeting l Vincent FAVRE-NICOLIN
2019/01/15 Page 15 l PaNOSC Kickoff meeting l Vincent FAVRE-NICOLIN