University of Cambridge > Talks.cam > RSE Seminars > Making Gravity SWIFTer: GPU offloads for gravity in the SWIFT cosmology code

Making Gravity SWIFTer: GPU offloads for gravity in the SWIFT cosmology code

Download to your calendar using vCal

  • UserSarah Johnston - Durham University
  • ClockThursday 12 February 2026, 13:00-14:00
  • HouseRoom C, West Hub.

If you have a question about this talk, please contact Jack Atkinson .

To fully utilise modern heterogeneous HPC systems and improve power efficiency, large astronomy codes must become GPU compatible. SWIFT is a versatile open-source cosmology code which is used to model a variety of astrophysical scenarios. It utilises task-based parallelism, dividing the workload into independent tasks managed by a scheduler for efficient CPU utilisation, and is highly optimised for use on memory-intensive, CPU -only clusters. A significant portion of SWIFT ’s runtime is dedicated to gravity calculations. However, the repetitive and non-interdependent nature of these interactions makes them ideal candidates for GPU acceleration.

In this talk I will explain how we have built on the existing SWIFT code by replacing CPU -based gravity with new GPU kernels, while minimising changes to the rest of the code. The GPU -accelerated kernels achieve high accuracy, with <1% deviation from the CPU results. However, we are limited by a memory transfer bottleneck in moving data between the CPU and GPU . To mitigate this, we have employed a novel ‘task-bundling’ system which allows us to group tasks in the scheduler to give higher occupancy on the GPU . This provides more work, reducing the overhead from the CPU -GPU memory transfers. To further exploit the GPU , we’re exploring a redistribution of the gravity calculations meaning more interactions can be carried out using direct particle-particle summations, rather than multipole-based approximations, which gives us more accurate results and provides more work for the GPU . Future work will focus on optimising these new GPU implementations to provide an end-to-end speedup in SWIFT on heterogeneous systems.

This talk is part of the RSE Seminars series.

This talk is included in these lists:

Note that ex-directory lists are not shown.

 

© 2006-2025 Talks.cam, University of Cambridge. Contact Us | Help and Documentation | Privacy and Publicity