Geant4 CPU performance : an update Geant4 Technical Forum, CERN, 07 November 2007 J.Apostolakis, G.Cooperman, G.Cosmo, V.Ivanchenko, I.Mclaren, T.Nikitina,

Slides:



Advertisements
Similar presentations
Use of G EANT 4 in CMS AIHENP’99 Crete, April 1999 Véronique Lefébure CERN EP/CMC.
Advertisements

Simulation Project Major achievements (past 6 months 2007)
14 User Documents and Examples I SLAC Geant4 Tutorial 3 November 2009 Dennis Wright Geant4 V9.2.p02.
Highlights of latest developments ESA/ESTEC Makoto Asai (SLAC)
14 Overview of Geant4 Examples 2 nd Finnish Geant4 Workshop 6-7 June 2005 Dennis Wright (SLAC)
CMS Full Simulation for Run-2 M. Hildrith, V. Ivanchenko, D. Lange CHEP'15 1.
14 User Documents and Examples II SLAC Geant4 Tutorial 17 May 2007 Dennis Wright Geant4 V8.3.
Status of calorimeter simulations Mikhail Prokudin, ITEP.
Simulation Project Organization update & review of recommendations Gabriele Cosmo, CERN/PH-SFT Application Area Internal.
17-19 Oct, 2007Geant4 Japan Oct, 2007Geant4 Japan Oct, 2007Geant4 Japan 2007 Geant4 Japan.
Evaluation of G4 Releases in CMS (Sub-detector Studies) Software used Electrons in Tracker Photons in the Electromagnetic Calorimeter Pions in the Calorimeter.
14 Overview of Geant4 Examples Geant4 Tutorial 8-10 March 2004 Dennis Wright (SLAC)
G EANT highlights kernel modules Gabriele Cosmo, CERN PH-SFT for the Geant4 Collaboration Gabriele Cosmo, CERN PH-SFT for the Geant4 Collaboration.
Validation and TestEm series Michel Maire for the Standard EM group LAPP (Annecy) July 2006.
User Documents and Examples I Sébastien Incerti Slides thanks to Dennis Wrigth, SLAC.
Usability Issues Documentation J. Apostolakis for Geant4 16 January 2009.
Geant4 Acceptance Suite for Key Observables CHEP06, T.I.F.R. Mumbai, February 2006 J. Apostolakis, I. MacLaren, J. Apostolakis, I. MacLaren, P. Mendez.
Geometry and Field: New features and Developments T. Nikitina For Geometry Working Group Geant4 workshop, Hebden Bridge september 2007 G4Paraboloid.
User Documents and Examples II Geant4 Tutorial at Marshall Space Flight Center 18 April 2012 Dennis Wright (SLAC) Geant4 V9.5.
Use of Coverity & Valgrind in Geant4 Gabriele Cosmo.
A Short Course on Geant4 Simulation Toolkit How to learn more?
CHEP06, Mumbai-India, Feb 2006V. Daniel Elvira 1 The CMS Simulation Validation Suite V. Daniel Elvira (Fermilab) for the CMS Collaboration.
1 Status and Plans for Geant4 Physics Linear Collider Simulation Workshop III 2-5 June 2004 Dennis Wright (SLAC)
Geant4 in production: status and developments John Apostolakis (CERN) Makoto Asai (SLAC) for the Geant4 collaboration.
JIRA tasks update Week 25 November – 2 December 2014.
Release Validation J. Apostolakis, M. Asai, G. Cosmo, S. Incerti, V. Ivantchenko, D. Wright for Geant4 12 January 2009.
V.Dzhordzhadze1 Nosecone Calorimeter Simulation Vasily Dzhordzhadze University of Tennessee Muon Physics and Forward Upgrades Workshop Santa Fe, June 22,
The CMS detector as compared to ATLAS CMS Detector Description –Inner detector and comparison with ATLAS –EM detector and comparison with ATLAS –Calorimetric.
SiD R&D tasks for the LOI - Subsystem R&D tasks - Summary of SiD R&D - Prioritization of R&D tasks -> Document for DoE/NSF ~Feb 2009 (Mainly based on Marty’s.
Hadronic Physics Validation II Dennis Wright Geant4 Review CERN April 2007.
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.
Documentation Gunter Folger / CERN Geant4 School, Annecy 2008.
CBM ECAL simulation status Prokudin Mikhail ITEP.
CMS H4 ECAL testbeam data comparison with simulation F.Cossutti a), B. Heltsey b), P. Meridiani c), C. Rovelli c) a) INFN Trieste b) Cornell University.
JIRA tasks update Week 28 October – 4 November 2014.
G EANT highlights kernel modules Gabriele Cosmo, CERN PH-SFT for the Geant4 Collaboration Gabriele Cosmo, CERN PH-SFT for the Geant4 Collaboration.
Outline  Developments/fixes in the last year  Introduced in release 9.6 and patches  Planned for release 10.0 and ongoing …  Currently under development.
Computing Performance Recommendations #10, #11, #12, #15, #16, #17.
Status of the BaBar Simulation Geant4 Workshop 30 September 2002 Dennis Wright.
G4 Users Workshop, 2009/10/17V. Daniel Elvira1 Summary of Geant4 Computing Performance Activities V. Daniel Elvira (Fermilab) for the G4 Users and Performance.
T. Lari – INFN Milan Status of ATLAS Pixel Test beam simulation Status of the validation studies with test-beam data of the Geant4 simulation and Pixel.
Physics Performance. EM Physics: Observations Two apparently independent EM physics models have led to user confusion: –Different results for identical.
A Summary of Physics Validations and Developments: Hadronic Dennis Wright Geant4 Collaboration Meeting Hebden Bridge, UK 13 September 2007.
Atlas Software May, 2000 K.Amako Status of Geant4 Physics Validation Atlas Software Week 10 May, Katsuya Amako (KEK)
Experiences on Grid production for Geant4 EGEE User Forum, CERN, 1st March 2006 P. Mendez Lorenzo, A. Ribon CERN CERN.
Geant4 Training 2003 A Short Course on Geant4 Simulation Toolkit How to learn more? The full set of lecture notes of this Geant4.
CHEP ’06 GEANT4E 1 GEANT4E: Error propagation for track reconstruction inside the GEANT4 framework Pedro Arce (CIEMAT) CHEP 2006, Mumbai, 13-17th February.
Plans of developments and validation for th Geant4 Workshop September 2011 SLAC, Stanford, CA, USA.
LHCb Simulation LHCC Computing Manpower Review 3 September 2003 F.Ranjard / CERN.
Code improvement: Coverity static analysis Valgrind dynamic analysis GABRIELE COSMO CERN, EP/SFT.
Gunter Folger / CERN MC-PAD, DESY/Hamburg Jan 2010
Geant4 Geometry Speed-ups
CPU Benchmarks Parallel Session Summary
Simulation Project Structure and tasks
A Short Course on Geant4 Simulation Toolkit How to learn more?
of experiment simulations
User Documents and Examples I
(CMS GEANT4 simulation)
Physics Validation of LHC Simulations
Testing Geant4 with a simplified calorimeter setup
Model Approach for Standard EM Physics
The Hadrontherapy Geant4 advanced example
Status of Standard EM for Geant4 9.1 and Beyond
Simulation Project Structure and tasks
Simulation Project Structure and tasks
Beta releases and Product Management
Geant4 in the BaBar Simulation
Use of GEANT4 in CMS The OSCAR Project
GEANT4 performance studies
Presentation transcript:

Geant4 CPU performance : an update Geant4 Technical Forum, CERN, 07 November 2007 J.Apostolakis, G.Cooperman, G.Cosmo, V.Ivanchenko, I.Mclaren, T.Nikitina, A.Ribon J.Apostolakis, G.Cooperman, G.Cosmo, V.Ivanchenko, I.Mclaren, T.Nikitina, A.Ribon CERN PH/SFT CERN PH/SFT

From Geant4 Workshop in Hebden Bridge, September 2007(1) Plenary Section ‘CPU Performance’ Parallel Section ‘CPU Benchmarks’ Plenary Discussion Section ‘Computing Performance’ Different talks in other Sections

From Geant4 Workshop in Hebden Bridge, September 2007(2) CPU performance optimization of Geant4 has been and is an important consideration To monitor CPU performance a set of Benchmarks is used Geant4 Benchmarks are simple setups each targeted to stress one particular area (transportation, tracking in magnetic field; electromagnetic physics; hadronic physics) Benchmarks are run manually by developers It is a part of the validation test runs at every release Future plans : run by STT regularly Profiling and code review very helpful for improvements in CPU performance Speedup in version especially due to CODE REVIEW in Electromagnetic physics

From Geant4 Workshop in Hebden Bridge, September 2007(3) Depending on the application different techniques can be used to improve CPU performance Examples : - Biasing - Neutron_HP - Geometry Description - Tuning - Regular Navigation in phantoms More details in Alex’s Talk “Recommendations for improving application performance ”

CPU Benchmarks : Plans Add more complex benchmarks, better covering different aspects of ‘toolkit’ Possible Candidates : geometry imported via GDML navigation on phantoms/regular geometries low energy benchmarks specific benchmarks for hadronic physics models Automation of running the benchmarks Defining Policy for Benchmarks (platform, system, structure, frequency of run ) Adopt dedicated system with total control on it in order to reduce possible time fluctuations (no afs, controlled system upgrade ) Start immediately after this workshop From Geant4 Workshop in Hebden Bridge, September 2007(4)

Current Status Existing Benchmarks are introduced in separate CVS module. Priority for : easy way to run benchmarks, easy way for accessing timing information Structure according to categories: calorimeter : FullCMS with geometry imported via GDML HadCalCMS electromagnetic: be1 (from TestEm9, crystal calorimeter CMS-type) be2 (from TestEm3, sampling calorimeter ATLAS-type) transportation: honeycomb (pure tracking) NTST (tracking in magnetic field, based on BaBar Tracker with drift chamber) Each test contents : Source code, macros and documentation (README, History) Selection of system/platforms SLC4, 64 bits architecture Static optimized libraries

Tracking in Magnetic Field: only transportation process. BaBar Tracker It consists of simulating the BaBar silicon tracker and 40 layers drift chamber, in a 1.5 T constant magnetic field. Only transportation, no physics. 100 B-Bbar events simulated. Locally build with static libraries. With afs version big time variations were measured (5% or more ) Release sec/event Ratios 7.1.p01a p p <--- G4FieldTrack::LoadFromArray not inline <--- G4Navigator::LocateGlobalPointAndSetup 8.2.p become virtual p <--- G4PropagatorInField 9.0.p (better initialization of G4FieldTrack array) The number of steps and calls to fields are almost the same in all cases.

Electromagnetic physics: CPU benchmark SLC4 Static build on dedicated SLC4 PC, no libraries from afs SLC3 to SLC4 migration slightly change ratio between CPU of different tests QGSP QGSP_EMV EM1EM2EM3EM1_EMVEM2_EMVEM3_EMV 8.3 SLC ref Better CPU performance in 9.0 mainly due to code review of Electromagnetic physics module

Hadronic physics. Large statistics(1) π - 50 GeV on Copper-Scintillator calorimeter (25 layers, Cu (6cm) - Sci (4mm): a simplified version of CMS HCAL); default 0.7 mm production cut, QGSP_EMV, 4000 events Local installation with static libraries on dedicated computer (SLC4) Release B=0 B=4T Ratios #steps/evt 7.1.p01a ,050 99, p , , p , , p , , , ,550 Release B=0 Ratios #steps/evt 7.1.p01a , p , p , p , ,680 sec/evt e- 50 GeV

Main physics changes affecting CPU Electromagnetic physics New model of Multiple Scattering (not in QGSP_EMV)  Hadronic physics CHIPS capture at rest for negatively charged hadrons (G4QStoppingPhysics since 8.1)  Due to these improvements in physics more steps and tracks per event are produced Which slow down the CPU performance

Pure tracking benchmark Honeycomb calorimeter benchmark It consists of transporting 10,000 geantinos, along predefined directions, in a honeycomb calorimeter made of two modules, each 26 x 50 tubes Release total time Ratios 5.2.p s p s 1.00 <--- G4Navigator becomes base class 7.0.p s p01a 3.06s p s p s p s 1.03 <--- in G4Navigator s 1.03 LocateGlobalPointAndSetup() metod 8.3.p s 1.02 becomes virtual s p s 1.03 These changes in G4Navigator have been done to accommodate the Tgeo/VMC interface (ALICE requirement)

BaBar Tracker Same Geant4 example as in the previous slide, but this time with the QGSP_EMV Physics List. 100 B-Bbar events simulated. Local build with static libraries. Release sec/event Ratios 7.1.p01a (QGSP_GN) 8.0.p p p p <--- Code review of Electromagnetic 9.0.p physics module * The variations are due to tuning and adding safety checks to Urban Multiple Scattering model. Tracking in Magnetic Field: QGSP_EMV Physics List *

EM-1 : 10 GeV e- in matrix 5x5 of PbWO4 crystals (CMS-type); cut = 0.7 mm, 1000 events. EM-2 : 10 GeV e- in ATLAS barrel type sampling calorimeter; cut = 0.7 mm, 1000 events. EM-3 : 10 GeV e- in ATLAS barrel type sampling calorimeter; cut = 0.02 mm, 100 events. QGSP QGSP_EMV Release EM-1 EM-2 EM-3 EM-1 EM-2 EM p p p p p p QGSP in 8.x is slower than 7.1 by % QGSP_EMV in 8.x is slower than 7.1 by 3-9% Electromagnetic physics All numbers are with CERN afs installation for SLC3 and shared libraries

Hadronic physics. Large statistics(2)  - 50 GeV on Copper-Scintillator calorimeter (25 layers, Cu (6cm) - Sci (4mm): a simplified version of CMS HCAL); default 0.7 mm production cut, QGSP_EMV, 4000 events Run in the same conditions as on previous slide but few months later Release B=0 B=4T Ratios #steps/evt 8.3.p , , , , p , ,620 sec/evt e- 50 GeV Release B=0 Ratios #steps/evt 8.3.p , , p , , ( ) ,680 sec/evt