Computer Physics Communications 186 (2015) 71–80 Contents lists available at ScienceDirect Computer Physics Communications journal homepage: www.elsevier.com/locate/cpc AstroPhi: A code for complex simulation of the dynamics of astrophysical objects using hybrid supercomputers I.M. Kulikov a,b , I.G. Chernykh a,b, , A.V. Snytnikov a , B.M. Glinskiy a,b , A.V. Tutukov c a Institute of Computational Mathematics and Mathematical Geophysics SB RAS, Lavrentjeva Ave. 6, Novosibirsk 630090, Russia b Novosibirsk State University, Pirogova Str. 2, Novosibirsk 630090, Russia c Institute of Astronomy of the Russian Academy of Sciences, 48 Pyatnitskaya St. 48, Moscow, 119017, Russia article info Article history: Received 5 September 2013 Received in revised form 7 July 2014 Accepted 6 September 2014 Available online 17 September 2014 Keywords: Numerical astrophysics Astrophysical objects Dynamics simulation Hybrid supercomputers abstract We propose a new code named AstroPhi for simulation of the dynamics of astrophysical objects on hybrid supercomputers equipped with Intel Xenon Phi computation accelerators. The details of parallel implementation are described, as well as changes to the computational algorithm that facilitate efficient parallel implementation. A single Xeon Phi accelerator yielded 27-fold acceleration. The use of 32 Xeon Phi accelerators resulted in 94% parallel efficiency. Several collapse problems are simulated using the AstroPhi code. Program summary Program title: AstroPhi Catalogue identifier: AEUM_v1_0 Program summary URL: http://cpc.cs.qub.ac.uk/summaries/AEUM_v1_0.html Program obtainable from: CPC Program Library, Queen’s University, Belfast, N. Ireland Licensing provisions: Standard CPC licence, http://cpc.cs.qub.ac.uk/licence/licence.html No. of lines in distributed program, including test data, etc.: 99604 No. of bytes in distributed program, including test data, etc.: 305433 Distribution format: tar.gz Programming language: C++. Computer: MVS-10P - RSC Tornado, Xeon E5-2690 8C 2.900 GHz, Infiniband FDR, Intel Xeon Phi SE10X. Operating system: Linux. Has the code been vectorized or parallelized?: Parallelized on MPI + OpenMP for Intel MIC architecture, 32 Intel Xeon Phi (60 cores per 1 Intel Xeon Phi = 1920 cores of Intel Xeon Phi). RAM: 137438953472 bytes (128 GB) bytes Classification: 1.9. External routines: MPI, OpenMP for Intel Xeon Phi, FFTW 2.1.5 Nature of problem: Complex numerical simulation of dynamics of astrophysical objects plays an important role due to significant growth of observational astronomic data. The new astrophysical models and codes need to be developed for detailed simulation of different physical effects in astrophysics with the use of modern supercomputers with hybrid architecture. Solution method: This paper and its associated computer program are available via the Computer Physics Communication homepage on ScienceDirect (http://www.sciencedirect.com/ science/journal/00104655). Corresponding author at: Institute of Computational Mathematics and Mathematical Geophysics SB RAS, Lavrentjeva Ave. 6, Novosibirsk 630090, Russia. Tel.: +7 383 3309665; fax: +7 383 3308783. E-mail address: chernykh@ssd.sscc.ru (I.G. Chernykh). http://dx.doi.org/10.1016/j.cpc.2014.09.004 0010-4655/© 2014 Elsevier B.V. All rights reserved.