ARCHER logo ARCHER banner

The ARCHER Service is now closed and has been superseded by ARCHER2.

  • ARCHER homepage
  • About ARCHER
    • About ARCHER
    • News & Events
    • Calendar
    • Blog Articles
    • Hardware
    • Software
    • Service Policies
    • Service Reports
    • Partners
    • People
    • Media Gallery
  • Get Access
    • Getting Access
    • TA Form and Notes
    • kAU Calculator
    • Cost of Access
  • User Support
    • User Support
    • Helpdesk
    • Frequently Asked Questions
    • ARCHER App
  • Documentation
    • User Guides & Documentation
    • Essential Skills
    • Quick Start Guide
    • ARCHER User Guide
    • ARCHER Best Practice Guide
    • Scientific Software Packages
    • UK Research Data Facility Guide
    • Knights Landing Guide
    • Data Management Guide
    • SAFE User Guide
    • ARCHER Troubleshooting Guide
    • ARCHER White Papers
    • Screencast Videos
  • Service Status
    • Detailed Service Status
    • Maintenance
  • Training
    • Upcoming Courses
    • Online Training
    • Driving Test
    • Course Registration
    • Course Descriptions
    • Virtual Tutorials and Webinars
    • Locations
    • Training personnel
    • Past Course Materials Repository
    • Feedback
  • Community
    • ARCHER Community
    • ARCHER Benchmarks
    • ARCHER KNL Performance Reports
    • Cray CoE for ARCHER
    • Embedded CSE
    • ARCHER Champions
    • ARCHER Scientific Consortia
    • HPC Scientific Advisory Committee
    • ARCHER for Early Career Researchers
  • Industry
    • Information for Industry
  • Outreach
    • Outreach (on EPCC Website)

You are here:

  • ARCHER

Can't list the navigation items at the moment. Please try again later.

  • ARCHER Community
  • ARCHER Benchmarks
  • ARCHER KNL Performance Reports
  • Cray CoE for ARCHER
  • Embedded CSE
  • ARCHER Champions
  • ARCHER Scientific Consortia
  • HPC Scientific Advisory Committee
  • ARCHER for Early Career Researchers

Contact Us

support@archer.ac.uk

Twitter Feed

Tweets by @ARCHER_HPC

ISO 9001 Certified

ISO 27001 Certified

Optimising Field Solves in GS2 plasma physics simulation code

eCSE02-08

Key Personnel

PI/Co-I: Dr. David Dickinson - University of York; Dr Colin Roach - Culham Centre for Fusion Energy

Technical: Dr. Adrian Jackson - EPCC

Relevant Documents

eCSE Technical Report: Improved load balancing and nonblocking communications for maximal efficiency at high core counts

Project summary

This project worked on the plasma physics simulation code GS2, which is used to simulate plasma both from astronomical simulations (i.e. simulating the sun) and for fusion science. The aim was to reduce the computational cost of parallelising the code using large numbers of cores on ARCHER, thereby reducing the time required to run a given simulation.

GS2 is an open source gyrokinetic simulation code that is extensively used in plasma physics research internationally to study the linear and non-linear dynamics of magnetically confined plasma in laboratory and astrophysical situations.

GS2 solves the gyrokinetic system of equations for the evolution of the perturbed distribution function, g, and the perturbed electromagnetic fields, Φ, B. GS2 is parallelised with MPI, and can scale well to thousands of processes, depending on the simulation being run.

However, there is part of the code, the part that calculates and updates the data on the plasma's electromagnetic fields, which is not efficient when using large numbers of cores. The purpose of this project was to optimise the electromagnetic field-solve algorithm that had been limiting scalability.

The optimisation of the field-solve algorithm has successfully improved the scalability of GS2 at high process counts. This is illustrated by the fact that a representative short simulation on 4096 cores (at the upper limit to the code's scalability) now runs approximately 5 times faster than the original code, and a representative long simulation runs approximately twice as fast as the original code.

Such improved performance means that we can use GS2 for much more detailed plasma simulations, examining the behaviour of both electron and ion scale phenomena in the plasma, and can thereby gain a better understanding of the turbulence features in the plasma.

Understanding, and controlling, turbulence in plasma is one of the key requirements for building a usable fusion reactor, and codes like GS2 can help in the design and understanding of such reactors. Fusion energy has the potential to provide a clean source of electricity for future generations.

Shape of a GS2 flux tube in MAST
Shape of a GS2 flux tube in the spherical tokamak, MAST

Summary of the software

The GS2 source code is available at sourceforge: https://sourceforge.net/projects/gyrokinetics/.

Code development was performed in an SVN branch on the main GS2 repository, and has now been integrated back into the GS2 trunk.

There is a centrally installed version of GS2 on ARCHER (a package version) which has been updated with the most recent version of the source code providing the functionality implemented in the eCSE to users on ARCHER.

Copyright © Design and Content 2013-2019 EPCC. All rights reserved.

EPSRC NERC EPCC