Queensland University of Technology CRICOS No. 00213J AstroMed09, 14-16th December, The University of Sydney aka The Full Monte! Optimisation of Monte.

Slides:



Advertisements
Similar presentations
Photon Collimation For The ILC Positron Target Lei Zang The University of Liverpool Cockcroft Institute 24 th March 2007.
Advertisements

Monte Carlo Based Implementation of an Energy Modulation System for Proton Therapy G.A.P. Cirrone Qualified Medical Physicist PhD Laboratori Nazionali.
Giorgio Russo National Research Council, Institute of Bioimaging and Molecular Imaging (IBFM) Fondazione Istituto San Raffaele G. Giglio di Cefalù Istituto.
F. Foppiano, M.G. Pia, M. Piergentili Medical Linac IEEE NSS, October 2004, Rome, Italy
The Vin č a Institute of Nuclear Sciences, Belgrade, Serbia * Universita degli studi di Bologna, DIENCA, Italia Radovan D. Ili}, Milan Pe{i}, Radojko Pavlovi}
14th GEANT4 User and Collaboration Workshop - Catania, Oct. 15/ B.Caccia, G.Frustagli, M.Mattia, S.Valentini Istituto Superiore di Sanita' e INFN,
Pencil-Beam Redefinition Algorithm Robert Boyd, Ph.D.
LCSC - 01 Monte Carlo Simulation of Radiation Transport, for Stereotactic Radio Surgery Per Kjäll Elekta Instrument AB
Energy deposition and neutron background studies for a low energy proton therapy facility Roxana Rata*, Roger Barlow* * International Institute for Accelerator.
Dose Calculations A qualitative overview of Empirical Models and Algorithms Hanne Kooy.
A general purpose dosimetric system for brachytherapy
MONTE-CARLO TECHNIQUES APPLIED TO PROTON DOSIMETRY AND RADIATION SAFETY F. Guillaume, G. Rucka, J. Hérault, N. Iborra, P. Chauvel 1 XXXV European Cyclotron.
Using FLUKA to study Radiation Fields in ERL Components Jason E. Andrews, University of Washington Vaclav Kostroun, Mentor.
2009/04/07 Yun-Yang Ma.  Overview  What is CUDA ◦ Architecture ◦ Programming Model ◦ Memory Model  H.264 Motion Estimation on CUDA ◦ Method ◦ Experimental.
Lotte Verbunt Investigation of leaf positioning accuracy of two types of Siemens MLCs making use of an EPID.
Bruce Faddegon, UCSF Inder Daftari, UCSF Joseph Perl, SLAC
J. Tinslay 1, B. Faddegon 2, J. Perl 1 and M. Asai 1 (1) Stanford Linear Accelerator Center, Menlo Park, CA, (2) UC San Francisco, San Francisco, CA Verification.
1 M.G. Pia et al. The application of GEANT4 simulation code for brachytherapy treatment Maria Grazia Pia INFN Genova, Italy and CERN/IT
Beam Therapy Equipment 3 Patient Treatment and Accessories.
Derek Liu E. Poon, M. Bazalova, B. Reniers, M. Evans
TWO FIELD BREAST PLAN VS. OPTIMIZED CONFORMAL BREAST PLAN: COMPARISON OF PLAN PARAMETERS Authors: Borko Basarić, Ozren Čudić, Milan Teodorović, Borislava.
Научно-практический центр протонной лучевой терапии и радиохирургии (Москва-Дубна) A SYSTEM FOR MEASUREMENT OF A THERAPEUTIC PROTON BEAM DOSE DISTRIBUTION.
Patient Plan Results: Table 3 shows the ratio of the Pinnacle TPS calculation to the DPM recalculation for the mean dose from selected regions of interest.
Test of the proposed method Introduction CCD Controller CCD Illuminator gel Filter 585nm Assembling the phantom before its irradiation. The phantom, ready.
Sergey Ananko Saint-Petersburg State University Department of Physics
Applications of Geant4 in Proton Radiotherapy at the University of Texas M.D. Anderson Cancer Center Jerimy C. Polf Assistant Professor Department of Radiation.
Radiation Protection in Radiotherapy
A Web interface to cloud-based Monte Carlo simulations for TrueBeam and C-linac Good morning. I will be introduce the ‘ cloud-based Monte Carlo simulations.
Photons e- e+ Bremsstrahlung Comton- scattered photon Pair production Photoelectric absorption Delta ray There are no analytical solutions to radiation.
By Arun Bhandari Course: HPC Date: 01/28/12. GPU (Graphics Processing Unit) High performance many core processors Only used to accelerate certain parts.
F. Foppiano, B. Mascialino, M. G. Pia, M. Piergentili Geant4 Simulation of an Accelerator Head for Intensity Modulated RadioTherapy Monte Carlo 2005 Topical.
Ian C. Smith 1 A portal-based system for quality assurance of radiotherapy treatment plans using Grid-enabled High Performance Computing clusters CR Baker.
1 Dr. Sandro Sandri (President of Italian Association of Radiation Protection, AIRP) Head, Radiation Protection Laboratory, IRP FUAC Frascati ENEA – Radiation.
Accelerating Statistical Static Timing Analysis Using Graphics Processing Units Kanupriya Gulati and Sunil P. Khatri Department of ECE, Texas A&M University,
Medical Accelerator F. Foppiano, M.G. Pia, M. Piergentili
Geant4 based simulation of radiotherapy in CUDA
Araki F. Ikegami T. and Ishidoya T.
Simulating Differential Dosimetry M. E. Monville1, Z. Kuncic2,3,4, C. Riveros1, P. B.Greer1,5 (1)University of Newcastle, (2) Institute of Medical Physics,
Geant4 in production: status and developments John Apostolakis (CERN) Makoto Asai (SLAC) for the Geant4 collaboration.
TPS & Simulations within PARTNER D. Bertrand, D. Prieels Valencia, SPAIN 19 JUNE 2009.
IRCC & Mauriziano Hospital & INFN & S Croce e Carle Hospital
Managed by UT-Battelle for the Department of Energy Residual Does Rate Analyses for the SNS Accelerator Facility I. Popova, J. Galambos HB2008 August 25-29,
Improvement of the Monte Carlo Simulation Efficiency of a Proton Therapy Treatment Head Based on Proton Tracking Analysis and Geometry Simplifications.
F. Foppiano, M.G. Pia, M. Piergentili
Somvilai Mayurasakorn, MD. Division of Therapeutic Radiology and Oncology, Faculty of Medicine, Chiang Mai University Somvilai Mayurasakorn, MD. Division.
N 0 primary photons generated N d primary photons detected Determination of the photon mass attenuation coefficients Check on ParentID( ) Energy value.
Geant4 on GPU prototype Nicholas Henderson (Stanford Univ. / ICME)
P. Rodrigues, A. Trindade, L.Peralta, J. Varela GEANT4 Medical Applications at LIP GEANT4 Workshop, September – 4 October LIP – Lisbon.
Pedro Arce Introducción a GEANT4 1 GAMOS tutorial RadioTherapy Exercises Pedro Arce Dubois CIEMAT
John Apostolakis & Makoto Asai for the Geant4 Collaboration 1(Draft) SNA-MC 2010.
Interaction of x-ray photons (and gamma ray photons) with matter.
Flair development for the MC TPS Wioletta Kozłowska CERN / Medical University of Vienna.
Dae-Hyun Kim Dept. of Biomedical Engineering The Catholic University of Korea Department of Biomedical Engineering Research Institute.
Validation of GEANT4 versus EGSnrc Yann PERROT LPC, CNRS/IN2P3
The Effects of Small Field Dosimetry on the Biological Models Used In Evaluating IMRT Dose Distributions Gene Cardarelli,PhD, MPH.
Koichi MurakamiGeant4 Physics Verification and Validation (17-19/Jul./2006) 1 Results from the recent carbon test beam at HIMAC Koichi Murakami Statoru.
MCS overview in radiation therapy
Adapting A Clinical Medical Accelerator For Primary Standard Dosimetry
Development of elements of 3D planning program for radiotherapy Graphical editor options  automated enclose of contour  correction of intersections 
E. Mezzenga 1, E. Cagni 1, A. Botti 1, M. Orlandi 1, W.D. Renner 2, M. Iori 1 1. Medical Physics Unit, ASMN-IRCCS of Reggio Emilia, Italy 2. MathResolution.
Accelerating K-Means Clustering with Parallel Implementations and GPU Computing Janki Bhimani Miriam Leeser Ningfang Mi
BDSIM for proton therapy gantry simulation
INTERCOMPARISON P3. Dose distribution of a proton beam
Very High Energy Electron for Radiotherapy Studies
OpenGate Technical Meeting May 11th 2017 Clermont-Ferrand
A Brachytherapy Treatment Planning Software Based on Monte Carlo Simulations and Artificial Neural Network Algorithm Amir Moghadam.
F. Foppiano, S. Guatelli, B. Mascialino, M. G. Pia, M. Piergentili
Geant4 at IST Applications in Brachytherapy
P. Rodrigues, A. Trindade, L.Peralta, J. Varela
Presentation transcript:

Queensland University of Technology CRICOS No J AstroMed09, 14-16th December, The University of Sydney aka The Full Monte! Optimisation of Monte Carlo codes for High Performance Computing in Radiotherapy Applications Dr Iwan Cornelius, M.B. Flegg, C.M. Poole, Prof Christian Langton Faculty of Science and Technology Queensland University of Technology Queensland Cancer Physics Collaborative

Queensland University of Technology CRICOS No J AstroMed09, 14-16th December, The University of Sydney Outline Introduction Development of a LINAC Monte Carlo model using GEANT4 Optimisation Future Directions Conclusions

Queensland University of Technology CRICOS No J AstroMed09, 14-16th December, The University of Sydney Introduction: Radiotherapy LINAC: produce highly controllable source of MeV photons –Energy –Gantry angle –Patient position

Queensland University of Technology CRICOS No J AstroMed09, 14-16th December, The University of Sydney Introduction: Radiotherapy LINAC: produce highly controllable source of MeV photons –Multi Leaf Collimators (MLCs) to define arbitrary shaped fields

Queensland University of Technology CRICOS No J AstroMed09, 14-16th December, The University of Sydney Introduction: Radiotherapy Planning –Patient imaged –PTV OAR Contoured –Optimisation of fields to conform Dose to tumour and spare healthy tissue Delivery –Fractionated Based on analytical calculations –Can be inaccurate in regions of high heterogeneity

Queensland University of Technology CRICOS No J AstroMed09, 14-16th December, The University of Sydney Monte Carlo What is it? How is it used in radiotherapy? –Treatment plan verification –Support new dosimetry measurements used in QA What tools exist? –EGSnrc/BEAMnrc, PENELOPE, MCNPX, GEANT4 Challenges to overcome –Reduce Computation times (maintain accuracy) Code optimisation Variance reduction High Performance Computing (HPC) –Usability

Queensland University of Technology CRICOS No J AstroMed09, 14-16th December, The University of Sydney High Performance Computing Monte Carlo: trivial to parallelise –Launch identical application with unique random number generator seed –Collate results Centralised Clusters –Multiple machines, Beowulf –Multiple CPU, Shared memory (SGI Altix) Cons –Look better on paper –Sharing resource with other users –Often limited to # of processors, wait in queue Single machine, multiple processors –Dual quad core –Hyperthreading can get 16 cores

Queensland University of Technology CRICOS No J AstroMed09, 14-16th December, The University of Sydney High Performance Computing: GPGPU General Purpose Graphics Processing Units –hundreds of processors on a chip –NVIDIA Tesla C1060: PCIx 240 cores per card 4GB memory CUDA –Compute Unified Device Architecture –Write ‘kernel’ in ‘C for CUDA’ to run on the GPU –Copy from main memory to device memory –Kernel executes on GPU –Copies result back to main memory –Great for loops How to ‘Accelerate’ Monte Carlo codes with GPUs –Re-engineer entire code into C for CUDA kernels –Re-write computationally intensive portions of code into ‘kernels’ using CUDA –Calculation time doesn’t scale with # of processors

Queensland University of Technology CRICOS No J AstroMed09, 14-16th December, The University of Sydney GEANT4 Toolkit of C++ classes –Primary beam, geometry, physics processes, scoring –User must create their own application based on these Very powerful general purpose Monte Carlo tool –High energy physics, space physics, medical physics, optics, radiation protection, astrophysics

Queensland University of Technology CRICOS No J AstroMed09, 14-16th December, The University of Sydney GEANT4 Pros –Extremely flexible –Time dependent geometries –Radioactive decay, Neutron transport –Various visualisation tools Cons –Extremely flexible –Requires proficiency with C++ programming –Steep learning curve –Deterrent for first time users –Hospital based Medical Physicists with limited research time

Queensland University of Technology CRICOS No J AstroMed09, 14-16th December, The University of Sydney The Full Monte! Create generic LINAC application using GEANT4 –Capable of modelling Elekta, Varian, Siemens LINACs –Do for GEANT4 what BEAMnrc did for EGSnrc (just text inputs) –Accurate. Verify against experimental data. Optimise for HPC environments (Desktop Supercomputer) –Distribute over available CPUs –Port to the GPU User interface –Simple text-file based interface –Graphical User Interface Interface with TPS –Able to routinely verify treatment plans

Queensland University of Technology CRICOS No J AstroMed09, 14-16th December, The University of Sydney Geometry Varian 2100 Clinac –Dimensions, material composition from Varian Docs Target Primary Collimator Vacuum window

Queensland University of Technology CRICOS No J AstroMed09, 14-16th December, The University of Sydney Geometry Flattening filter –Compensate for forward peaked distribution of bremsstrahlung photons Ionisation chamber –Monitor total Dose delivery

Queensland University of Technology CRICOS No J AstroMed09, 14-16th December, The University of Sydney Geometry Jaws –Define square fields

Queensland University of Technology CRICOS No J AstroMed09, 14-16th December, The University of Sydney Geometry Multi-Leaf Collimators (MLCs) –Interleaved Tungsten leaves –Varian Millenium –Brad Oborn (UoW)

Queensland University of Technology CRICOS No J AstroMed09, 14-16th December, The University of Sydney Primary Beam Monoenergetic electron beam Normally incident on target Gaussian spread radially

Queensland University of Technology CRICOS No J AstroMed09, 14-16th December, The University of Sydney Physics Photons –Photoelectric effect –Compton –GammaConversion Electrons –Multiple scatter –Ionisation –Bremmstrahlung Positrons –Ditto –Annihilation

Queensland University of Technology CRICOS No J AstroMed09, 14-16th December, The University of Sydney Scoring Water Phantom –50 cm x 50 cm x 50 cm –Score in voxelised geometry

Queensland University of Technology CRICOS No J AstroMed09, 14-16th December, The University of Sydney Validation / Commissioning Comparison with ionisation chamber measurements in a water phantom –Scanning with x,y,z Dose along beam axis

Queensland University of Technology CRICOS No J AstroMed09, 14-16th December, The University of Sydney Validation: Tune Electron Beam Energy Tuning of electron beam energy for best match –10 cm x 10 cm field –Compare between –10-30cm depths

Queensland University of Technology CRICOS No J AstroMed09, 14-16th December, The University of Sydney Results: Tune Electron Beam Energy Comparison with ionisation chamber measurements in water Tuning of electron beam energy for best match –10 cm x 10 cm field –Compare between –10-30cm depths

Queensland University of Technology CRICOS No J AstroMed09, 14-16th December, The University of Sydney Results: 5.85 MeV, 10 cm x 10 cm Within 2% agreement between 0.5cm and 38cm

Queensland University of Technology CRICOS No J AstroMed09, 14-16th December, The University of Sydney Results: 5.85 MeV, 10 cm x 10 cm Within 2% agreement between 0.5cm and 38cm

Queensland University of Technology CRICOS No J AstroMed09, 14-16th December, The University of Sydney Results: 5.85 MeV, 5 cm x 5 cm

Queensland University of Technology CRICOS No J AstroMed09, 14-16th December, The University of Sydney Results: 5.85 MeV, 20 cm x 20 cm

Queensland University of Technology CRICOS No J AstroMed09, 14-16th December, The University of Sydney Results: 5.85 MeV, 40 cm x 40 cm

Queensland University of Technology CRICOS No J AstroMed09, 14-16th December, The University of Sydney Optimisations No Optimisation –Many photons produced will never reach the sensitive region of the geometry

Queensland University of Technology CRICOS No J AstroMed09, 14-16th December, The University of Sydney Optimisations Kill zones –Nothing fancy-pants –Terminate histories that are unlikely to contribute to observable –Above target –Around primary collimator Relative Computation Time: 78 %

Queensland University of Technology CRICOS No J AstroMed09, 14-16th December, The University of Sydney Optimisations Phase space files –Some aspects of geometry don’t change –Create pre-calculated radiation field at plane –Sample this population to conserve computation times Relative Computation Time: 38 % 380 hrs, O(10 10 )

Queensland University of Technology CRICOS No J AstroMed09, 14-16th December, The University of Sydney HPC: GPU/CPU Desktop Supercomputer Purchase of Xenon T5 Desktop Supercomputer –“The Terminator” –4 x C1060 Tesla card = 960 cores! –2 x quad core processors hyper-threading Linux ‘sees’ 16 processors NVIDIA Professorial partnership grant –Awarded 3 x C1060 Tesla cards Research team learning CUDA –Mark Harris, local CUDA guru

Queensland University of Technology CRICOS No J AstroMed09, 14-16th December, The University of Sydney Optimisations: Parallelise on CPUs Message Passing Interface (MPI) –Run identical simulation on different core with unique random number –Geant4 MPImanager class –Time scales roughly linearly with number of processors –Simulations in 24 hrs, O(10 10 )

Queensland University of Technology CRICOS No J AstroMed09, 14-16th December, The University of Sydney The GPU Dilemma 1. Re-write entire code into C for CUDA? –C for CUDA doesn’t support sophisticated data types (classes) – O(10^6) lines of code, dozens of developers –Wait for CUDA to catch up (?) 2. Create C++ wrapper classes for certain methods –First step, random number generator –Incorporated into GEANT4 framework via inheritance –Implementing Mersenne Twister algorithm (hack example from CUDA SDK) to generate cache of random numbers –Improvement of only a few percent

Queensland University of Technology CRICOS No J AstroMed09, 14-16th December, The University of Sydney Profiling! Great first step when optimising code Linux gprof require to re-compile with flags set MacOSX –Profiling tool doesn’t require recompile

Queensland University of Technology CRICOS No J AstroMed09, 14-16th December, The University of Sydney Conclusions GEANT4 LINAC application has been developed –Specific to Varian Clinac –Many parameters hard-coded –Work commenced on textfile based UI commands –Preliminary validation promising Optimisation –Phase space files –Kill zones –MPI for parallel processing on CPUs –Porting random number generator to GPU

Queensland University of Technology CRICOS No J AstroMed09, 14-16th December, The University of Sydney Future Directions Validation –Verify dose distributions in heterogeneous phantoms –Verify model of MLCs (irregular fields) –Develop interface to Treatment Planning System Optimisation –Re-write part of GEANT4 to run on GPU Interface –User friendly text-file based commands Treatment Plan interface –Implement DICOM-RT interface

Queensland University of Technology CRICOS No J AstroMed09, 14-16th December, The University of Sydney Acknowledgements QUT –Scott Crowe, Tanya Kairn, Andrew Fielding discussion on Varian LINAC model, Experimental data –Mark Barry, Mark O Dwyer discussion on CPU optimisation, High Performance Computing Mater Hospital, Brisbane –Radiation Oncology Group UoW –Brad Oborn Millenium MLC model GEANT4 Collaboration –Joseph Perl (SLAC) discussion on visualisation / profiling NVIDIA –Mark Harris