Physik der Elementarteilchen und Felder

Dokumente 1 - 20 von 23
Seite 1 von 2 Nächste Seite Letzte Seite

Synergia: Driving Massively Parallel Particle Accelerator Simulations with Python

(0,25 MB)

Simulations of beam dynamics in particle accelerators have a wide range of computational requirements. The simplest calculations involve independent-particle tracking of a few thousand particles which can easily be accomplished on modern desktop computers. Calculations involving collective effects may require millions or even billions of particles and push the limits of modern supercomputers. We describe Synergia, a hybrid Python/C++ accelerator simulation package capable of dealing with the entire spectrum of beam dynamics simulations. We describe the motivations for the hybrid language design and discuss the issues that arise in the implementation. We also describe the most novel feature of our code, a hybrid C++/Python object serialization system, in detail. The same techniques are of general use in any domain by providing data and computationally intensive C++ frameworks with the advanced programming and user-friendly features of Python.
Verwandte Themen: Physik der Elementarteilchen und Felder Strukturmechanik Elektronik und Elektrotechnik Einrichtungen und Anlagen (Raumfahrt) Energieproduktion und Konversion

Doubling the Performance of Python/NumPy with less than 100 SLOC

(0,38 MB)

A very simple, and outside NumPy, commonly used trick of buffer-reuse is introduced to the NumPy library to speed up the performance of scientific applications in Python/NumPy. The implementation, which we name software victim-caching, is very simple. The code itself consists of less than 100 lines of code, and took less than one day to add to NumPy, though it should be noted that the programmer was very familiar with the inner workings of NumPy. The result is an improvement of as much as 2.29 times speedup, on average 1.32 times speedup across a benchmark suite of 15 applications, and at no time did the modification perform worse than unmodified NumPy.
Verwandte Themen: Physik der Elementarteilchen und Felder Numerische Analyse
Nächste Seite Letzte Seite