Simulation issues for the CWP

Slides:



Advertisements
Similar presentations
Simulation Project Major achievements (past 6 months 2007)
Advertisements

CMS Full Simulation for Run-2 M. Hildrith, V. Ivanchenko, D. Lange CHEP'15 1.
Trigger and online software Simon George & Reiner Hauser T/DAQ Phase 1 IDR.
Simulation Project Organization update & review of recommendations Gabriele Cosmo, CERN/PH-SFT Application Area Internal.
Introduction to the workshop LHCb Generators Tuning Mini Workshop Bucharest 22 nd & 23 rd November 2012 LHCb Generators Tuning Mini Workshop Bucharest.
Introduzione al Software di CMS N. Amapane. Nicola AmapaneTorino, Aprile Outline CMS Software projects The framework: overview Finding more.
The GlueX Collaboration Meeting October 4-6, 2012 Jefferson Lab Curtis Meyer.
1 HCAL Upgrade TP simulation studies Jane Nachtman (Iowa) – for the HCAL group Trigger Upgrade meeting April 28, 2010.
Offline Coordinators  CMSSW_7_1_0 release: 17 June 2014  Usage:  Generation and Simulation samples for run 2 startup  Limited digitization and reconstruction.
Requirements for a Next Generation Framework: ATLAS Experience S. Kama, J. Baines, T. Bold, P. Calafiura, W. Lampl, C. Leggett, D. Malon, G. Stewart, B.
ALICE Upgrade for Run3: Computing HL-LHC Trigger, Online and Offline Computing Working Group Topical Workshop Sep 5 th 2014.
1 Planning for Reuse (based on some ideas currently being discussed in LHCb ) m Obstacles to reuse m Process for reuse m Project organisation for reuse.
Fabiola Gianotti, 31/8/’99 PHYSICS and SOFTWARE ATLAS Software Week 31/8/’99 Fabiola Gianotti Software requirements of physics groups What should Detector.
Detector Simulation on Modern Processors Vectorization of Physics Models Philippe Canal, Soon Yung Jun (FNAL) John Apostolakis, Mihaly Novak, Sandro Wenzel.
Computing Performance Recommendations #13, #14. Recommendation #13 (1/3) We recommend providing a simple mechanism for users to turn off “irrelevant”
TDAQ Upgrade Software Plans John Baines, Tomasz Bold Contents: Future Framework Exploitation of future Technologies Work for Phase-II IDR.
LHCb production experience with Geant4 LCG Applications Area Meeting October F.Ranjard/ CERN.
The CMS Simulation Software Julia Yarba, Fermilab on behalf of CMS Collaboration 22 m long, 15 m in diameter Over a million geometrical volumes Many complex.
Introduction What is detector simulation? A detector simulation program must provide the possibility of describing accurately an experimental setup (both.
Simulation Commissioning, Validation, Data Quality A brain dump to prompt discussion Many points applicable to any of LHCb software but some simulation.
CBM ECAL simulation status Prokudin Mikhail ITEP.
The High Performance Simulation Project Status and short term plans 17 th April 2013 Federico Carminati.
Computing Performance Recommendations #10, #11, #12, #15, #16, #17.
Geant4 CPU performance : an update Geant4 Technical Forum, CERN, 07 November 2007 J.Apostolakis, G.Cooperman, G.Cosmo, V.Ivanchenko, I.Mclaren, T.Nikitina,
Software Tools for Layout Optimization (Fermilab) Software Tools for Layout Optimization Harry Cheung (Fermilab) For the Tracker Upgrade Simulations Working.
Update on G5 prototype Andrei Gheata Computing Upgrade Weekly Meeting 26 June 2012.
Workflows and Data Management. Workflow and DM Run3 and after: conditions m LHCb major upgrade is for Run3 (2020 horizon)! o Luminosity x 5 ( )
Some GPU activities at the CMS experiment Felice Pantaleo EP-CMG-CO EP-CMG-CO 1.
LHCbComputing Computing for the LHCb Upgrade. 2 LHCb Upgrade: goal and timescale m LHCb upgrade will be operational after LS2 (~2020) m Increase significantly.
Follow-up to SFT Review (2009/2010) Priorities and Organization for 2011 and 2012.
Introduction to FCC Software FCC Istanbul 11 March, 2016 Alice Robson (CERN/UNIGE) on behalf of / with thanks to the FCC software group.
AliRoot survey: Reconstruction P.Hristov 11/06/2013.
GeantV fast simulation ideas and perspectives Andrei Gheata for the GeantV collaboration CERN, May 25-26, 2016.
LHCb Computing 2015 Q3 Report Stefan Roiser LHCC Referees Meeting 1 December 2015.
LHCb Simulation LHCC Computing Manpower Review 3 September 2003 F.Ranjard / CERN.
GeantV – Adapting simulation to modern hardware Classical simulation Flexible, but limited adaptability towards the full potential of current & future.
GEANT4 for Future Linear Colliders
Detector building Notes of our discussion
Processes and threads.
The Generator Phase in Gauss
SuperB and its computing requirements
Tracker Upgrade Simulations Software Harry Cheung (Fermilab)
The “Understanding Performance!” team in CERN IT
EvtGen Miniworkshop, Patrick Robbe LAL Orsay, 21 Jan 2005
Patrick Robbe, LAL Orsay, 13 May 2004
Upgrade Tracker Simulation Studies
for the Offline and Computing groups
Sergei V. Gleyzer University of Florida
The LHCb Software and Computing NSS/IEEE workshop Ph. Charpentier, CERN B00le.
WLCG: TDR for HL-LHC Ian Bird LHCC Referees’ meting CERN, 9th May 2017.
LHCb Software & Computing Status
Sharing Memory: A Kernel Approach AA meeting, March ‘09 High Performance Computing for High Energy Physics Vincenzo Innocente July 20, 2018 V.I. --
CPU Benchmarks Parallel Session Summary
Simulation Project Structure and tasks
Status of MC activities
Geant4 Geometry Objects Persistency using ROOT
LHCb.
LHCb Software Tutorial
Report on Vector Prototype
US ATLAS Physics & Computing
Linear Collider Simulation Tools
Geant3 All collaborations are using G3 to a certain extent
Simulation Framework Subproject cern
Simulation and Physics
The Challenge of Cross - Language Interoperability
ESA's TEC Directorate Asset Management - Present and Future
ATLAS DC2 & Continuous production
Use of GEANT4 in CMS The OSCAR Project
Linear Collider Simulation Tools
Chapter 13: I/O Systems.
Presentation transcript:

Simulation issues for the CWP HSF Community White Paper – Simulation WG LHCb input and timeline – work for Upgrade Software Simulation What do we think it is important to have there?

HSF Community White Paper WG LHCb Computing Workshop - 15 May 2017 Simulation

LHCb Computing Workshop - 15 May 2017 Simulation in CWP Full and Fast Simulation of HEP experiments to achieve Software efficiency, scalability and performance and make use of technological advanced (CPU, storage and network) To enable New approaches to radically extend the physics reach of the experiments To ensure Long term software sustainability through the lifetime of the HL-LHC LHCb Computing Workshop - 15 May 2017 Simulation

LHCb Computing Workshop - 15 May 2017 WG activities Topical meetings between few people of LHC experiments and detector simulation current and future toolkits, e.g. Geant4, GeantV Find commonality between experiments and define whenever possible common measurements matrixes Next summarize and formalize in document https://docs.google.com/document/d/1DVyxBDTFts44-sGYrJ7tLt-bjd4jmA41XPezKOWgyiI/edit# 25-27 Oct 2017 Community Meeting on GeantV R&D 27 Feb Computing Performance 27 Mar Fast Simulations 24 Apr Geometry – Digi 22 May Physics Modeling LHCb copy LHCb Computing Workshop - 15 May 2017 Simulation

LHCb upgrade needs – Input for CWP LHCb Computing Workshop - 15 May 2017 Simulation

Simulation needs for Phase 1 upgrade O(100) x more events to be simulated for Phase 1 analyses The simulation is already the biggest consumer of computing resources. LHCb Computing Workshop - 15 May 2017 Simulation

Simulation needs for Phase 1 upgrade We need a working solution in place by 2020 O(100) x more events to be simulated for Phase 1 analyses Simulation for LHCb Upgrade The simulation is already the biggest consumer of computing resources. We need to make all efforts to fit within the available pledged computing resources LHCb Computing Workshop - 15 May 2017 Simulation

LHCb Computing Workshop - 15 May 2017 … How ? No solution fits all! LHCb Computing Workshop - 15 May 2017 Simulation

Parallel lines of development Fast simulations – wide variety of options being explored from fully parameterized to fast detectors response to reuse of events A lot of progress in developing new options Ways to speed up the simulation – GaudiHive, GaudiMP, Geant4 MultiTreading, Geometry Co-existence of different philosophies Evolve Gauss to an integrated simulation framework with LHCb specific and experiment agnostic parts Collaboration with FCC on Gaussino (experiment agnostic) Integration of alternative ((ultra)) (fast) simulations LHCb Computing Workshop - 15 May 2017 Simulation 7

Measure where we can gain Concentrated in the past on disk usage Identifying MC objects really needed, packing, microDST format Now concentrating on CPU Biggest gains will come from physics changes rather then algorithmic changes But we should not ignore them, for one thing we need to fit the simulation in the new future framework and exploit the online farm hardware Memory is not yet an issue for us And we should not forget purely technical issues as compilers LHCb Computing Workshop - 15 May 2017 Simulation

Measure where we spend CPU To identify where to focus for fast simulations To identify where to optimize algorithms To check and validate choices – physics modeling is the benchmark CPU Time in Gauss Sim09 Now run in LHCb nigthtlies LHCb Computing Workshop - 15 May 2017 Simulation

LHCb Computing Workshop - 15 May 2017 Fast simulations Many options have or are being worked on Build on and ‘upgrade’ the Gauss framework to mix simulation flavors, including for different particles in the same event Benchmarks and performance to choose baseline combination for most Deployed as they become available for current detector No single size fits all but pick and choose as most appropriate with multiple options organized under a unique framework LHCb Computing Workshop - 15 May 2017 Simulation 9

Fast simulations options ReDecay Calo Shower Library Decay signal N times with same underlying event Under code review for release CPU and disk < O(10%) Prototype of library set up Studying shower characteristics Next use and tune showers Signal ParticleGun In use (CEP & other) CPU and disk < O(95-99%) Partial detector Delphes RICHless or Trackers only Fully parametric ultra-fast Written LHCb propagator Efficiency and resolution from full sim Under development In use (special HLT, no L0) CPU < O(30%), O(80%) Other… Some of these options are very specific to LHCb Physics D. Muller J.-F. Marchand & M.Rama B. Siddi LHCb Computing Workshop - 15 May 2017 Simulation 10

LHCb Computing Workshop - 15 May 2017 CPU and Geant4 Moving to Geant4 10.(2)3 in next major version of simulation for production in 2nd half of 2017 – in sequential mode Overall performance improvement with G4 10 Multi-threading with event level parallelization will likely not gain much Compiler gains for free? ATLAS observed ~ 15% speed up v10.1 vs 9.6 (same memory footprint) ATLAS & CMS observed ~ 10-20% speed up static vs dinamic libraries – more for MT applications @ ATLAS Is it the same for us? Need to measure it! We should be able to do it with Gauss LHCb Computing Workshop - 15 May 2017 Simulation 12

LHCb Computing Workshop - 15 May 2017 CPU and Geant4 And we should not forget we need to review our choices of simulation parameters and effect on CPU One more issue will be the higher pileup and spillover Although they may not have the same solution We need a more fine grained setting of parameters this will impact the physics most LHCb Computing Workshop - 15 May 2017 Simulation 12

Parallelization (G4 and Gaudi) Investigated how to use G4 10 MT in Gauss as of now We could use it for spill-over or pileup We need to re-implement quite a few GiGa classes We also need to understand how to make Gaudi parallel and G4 MT play nice in a parallel world Different concurrency models and parallelism They manage their ‘components’ in different ways We are not the only nor the first Area of collaboration with FCC and potentially with ATLAS (that has[is] integrating G4 MT in Gaudi parallel) “We should move Gauss to G4 MT and Gaudi parallel in a single go and develop a minimal fully functional Gauss’ to try this out” c.f. D. Popov, G. Corti LHCb Computing Workshop - 15 May 2017 Simulation 13

Parallelization (G4 and Gaudi) Investigated how to use G4 10 MT in Gauss as of now We could use it for spill-over or pileup We need to re-implement quite a few GiGa classes We also need to understand how to make Gaudi parallel and G4 MT play nice in a parallel world Different concurrency models and parallelism They manage their ‘components’ in different ways We are not the only nor the first Area of collaboration with FCC and potentially with ATLAS (that has[is] integrating G4 MT in Gaudi parallel) “We should move Gauss to G4 MT and Gaudi parallel in a single go and develop a minimal fully functional Gauss’ to try this out” c.f. D. Popov, G. Corti LHCb Computing Workshop - 15 May 2017 Simulation 13

LHCb Computing Workshop - 15 May 2017 Geometry We need to test new geometry mechanisms and how they impact the simulation A lot of time in the simulation is spent transporting particles through volumes and in the magnetic field We can check different simulation engine descriptions – developments in Geant4/GeantV Investigation of DD4Hep vs. current detector description not a priority at the moment (and no resources) – synergy with general work on geometry Different options with Gauss based on G4 10 (a Geant4 compilation choice) - USolid shape library in G4 10.2 - VecGeom library in G4 10.3 Preliminary tests do not show differences in CPU with Gauss+USolid - DD4HEP adaptor available from FCC - LHCb detector description adaptor to be implemented LHCb Computing Workshop - 15 May 2017 Simulation 15

LHCb Computing Workshop - 15 May 2017 Generators Not much of a gain in parallelizing the generator code but should make it thread safe – and in fact not in the scope of Simulation CWP Thread safety requires migration to HepMC 3 But only a beta release Many special generators still in FORTRAN Min Bias Inclusive Signal … Not the most urgent topic but look into running generators as FIO to parallel simulations Rather how they fit with the rest – for LHCb a single job v Pythia6 Pythia8 Herwig++ ParticleGun … And selection of interesting events at this stage pays off EvtGen LHCb Computing Workshop - 15 May 2017 Simulation 16

The MC truth & MC history Generator to Geant4 and MC truth Pass only particles from generator to Geant4 which will interact with detector, that is to say particles with non-zero travel lenght. All other particles are saved directly in MCParticle container, and the decay chains are restored at the end of the processing by Geant4. MCHistory (i.e. what happened during the tracking of particles) is essential to understand efficiencies and physics effects Geant4 does not have a tree structure to keep history Introduced use of HepMC internally to Geant4 to provide such a tree structure Here it is a potential bottle neck in particular for vectorised approaches! LHCb Computing Workshop - 15 May 2017 Simulation 17

Gauss as an integrated simulation framework Proof of principle exist and we use it BUT we need to make it easy and fail-safe at the same time LHCb Computing Workshop - 15 May 2017 Simulation 18

Use Gaussino as a test bed Work so far carried out by FCC. Input from LHCb on design of new/modified components – geometry ‘ready’ others to be defined Gaussino is the ideal place to try out Gaudi parallel and G4 MT, the new event model, … LHCb Computing Workshop - 15 May 2017 Simulation 19

Use Gaussino as a test bed Work so far carried out by FCC. Input from LHCb on design of new/modified components – geometry ‘ready’ others to be defined Re-use FCCSW to start. Simplified re-design Re-use Gauss practically as-is Gaussino is the ideal place to try out Gaudi parallel and G4 MT, the new event model, … and we can share the work with FCC ... BUT it is not enough and we(LHCb) need to be more involved in its development. LHCb Computing Workshop - 15 May 2017 Simulation 19

A version of Gauss built on Gaussino Event Generation Detector Transport Pythia8 LHCb configuration + EvtGen Geant4 LHCb configuration and extentions LHCb Common Components (e.g. Event Model, Detector Description) Geant4 Pythia8 Gaudi Framework Gaussino LHCb Computing Workshop - 15 May 2017 Simulation 20

GeantV – long term future Talk by Witek Pokorski R&D for vectorised simulation Developing bits and pieces needed by concurrency, vectorization of geometry/physics, data structure and management, new model development novel transport engine based on ‘basketization’ approach high performance vector-aware geometry package interfaced in multi-particle mode with GeantV Proof-of-principle demonstrator Speed ratio GEANTV/GEANT4 ~2.5-3.5 in similar conditions Fully functional prototype end of 2018. Interface to experiment framework will require extensive re-write EM physics and at least one hadronic physics choice Recommended to expose interfaces as early as possible With LHCb geometry via GDML and tabulated physics LHCb Computing Workshop - 15 May 2017 Simulation 21

LHCb Computing Workshop - 15 May 2017 Digitization Detector response handled by Boole Tiny CPU time with respect to Gauss Special cases of Muon low energy background handled at the digitization level from dedicated time consuming simulations LHCb Computing Workshop - 15 May 2017 Simulation

Roadmap for LHCb Upgrade To do for Computing Upgrade TDR Fast Simulation options part 1 Test alternative Geometry descriptions within Geant4 Demonstrator for LHCb of multithreaded/multitask Gauss  Strategy To do before Run3 starts: Fast Simulation options part 2 Fully implement new geometry and new event model Gauss on Gaudi future Future: GeantV - development from LS2 to use it sometimes in Run3 Give input from our needs and experience for LHCb Upgrade to CWP LHCb Computing Workshop - 15 May 2017 Simulation 23