Author: Borland, M.
Paper Title Page
MOPWO067 Beam Dynamics Simulations with a GPU-accelerated Version of Elegant 1040
  • I.V. Pogorelov, K.M. Amyx, J. Balasalle, J.R. King
    Tech-X, Boulder, Colorado, USA
  • M. Borland, R. Soliday
    ANL, Argonne, USA
  Funding: Work supported by the US DOE Office of Science, Office of Basic Energy Sciences under grant number DE-SC0004585, and by Tech-X Corporation
Large scale particle tracking and tracking-based lattice optimization simulations can derive significant benefit from efficient implementation of general-purpose particle tracking on GPUs. We present the latest results of our work on accelerating Argonne National Lab's accelerator simulation code ELEGANT*,** using CUDA-enabled GPUs. A sufficiently large number of Elegant beamline elements has been ported to GPUs to allow the GPU-accelerated simulation of realistic test lattices. We will identify some of performance-limiting factors, and briefly discuss optimization techniques for efficient utilization of the device memory space, with an emphasis on register usage. We also present a novel hardware-assisted technique for efficiently calculating a histogram from a large distribution of particle coordinates, and compare this to data-parallel implementations.
* M. Borland, Elegant: A Flexible SDDS-compliant Code for Accelerator Simulation, APS LS-287, September 2000
** Y. Wang, M. Borland, in Proc. of PAC07, THPAN095 (2007)
THPPA02 Features and Applications of the Program ELEGANT 3139
  • M. Borland
    ANL, Argonne, USA
  Funding: Work supported by the U.S. Department of Energy, Office of Science, under Contract No. DE-AC02-06CH11357.
ELEGANT is an open-source accelerator design and simulation code that has been in use and development for nearly two decades. In that time, it has evolved into a fairly general code for the design and modeling of linacs and storage rings, due in no small measure to suggestions and feedback from users world-wide. The code is best known for modeling of linacs for free electron lasers and particularly its relatively fast and straightforward modeling of coherent synchrotron radiation in magnetic bunch compression systems. This capability led to the discovery of a microbunching instability in such systems, thus helping to seed a new field of research. ELEGANT's capabilities are enhanced by the use of self-describing data files and the Self-Describing Data Sets (SDDS) toolkit. In this paper, we briefly review the features and capabilities of the code, then give a series of application examples from simulation of linear accelerators and storage rings.
slides icon Slides THPPA02 [0.477 MB]