Search arXiv⌕ Search

arXiv · 2611.12209

Heterogeneous Acceleration of TRIMEG++ code using OpenMP for Gyrokinetic Simulations

Abstract

Turbulent transport largely determines the performance of magnetic-confinement fusion devices such as tokamaks, and gyrokinetic particle-in-cell (PIC) simulations are a principal tool to predict it. Advancing up to hundreds of millions of markers and solving large sparse field systems at every time step makes whole-device simulations among the most expensive in plasma physics. GPUs can accelerate this workload, but porting a complex code requires restructuring its parallelism and memory traffic, ideally without a separate version per vendor. In this work, the gyrokinetic code TRIMEG-C1, whose unstructured triangular mesh and high-order finite elements cover both the confined core and the open-field-line edge of the plasma, is rewritten in C++ as TRIMEG++ and fully offloaded to GPUs with OpenMP target directives, so that one portable code base runs on both AMD and NVIDIA hardware. The particle-to-grid projection is offloaded in its standard and field-aligned formulations, the PETSc-based field solver runs on the GPU through the library's backends, and, together with the previously offloaded particle pusher, every stage whose cost scales with the marker count runs on the GPU. All speedups are node-to-node comparisons against a 256-core CPU node (2x AMD EPYC 9754). On the TCV-X21 tokamak reference case, the offloaded kernels reproduce the CPU results to a relative accuracy of 1e-11, and the full simulation runs 4.1-6.1x faster on a node with two AMD MI300A and 2.1-3.0x faster on a node with four NVIDIA A100, with the speedup growing with problem size. The MI300A, with shared CPU-GPU memory, needs no explicit data transfers, whereas the A100 needs them managed by hand. These results show that directive-based offloading can accelerate a complex gyrokinetic code across GPU vendors, making whole-volume tokamak simulations with hundreds of millions of markers practical on a single GPU node.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Nicola Noventa, Giorgio Daneri, Zhixin Lu, Matthias Hoelzl. 2026-11-09. Heterogeneous Acceleration of TRIMEG++ code using OpenMP for Gyrokinetic Simulations. https://searcharxiv.org/abs/2611.12209

Citations retain the original authors and DOI and include this site’s record URL. If this discovery service contributed to your research, you can also cite Search arXiv by Indiciae: BibTeX · RIS.

KEEP EXPLORING

Related papers

How zonal states beat-driven by Alfven eigenmodes stabilize micro-turbulence in tokamak plasmas

The effects of zonal states (ZS) beat-driven by Alfven eigenmodes (AEs) on micro-turbulence stability are investigated; taking toroidal Alfven eigenmode (TAE) and ion temperature gradient mode (ITG) as an example. The analysis is carried out by deriving the nonlinear gyrokinetic equation describing particle response to ITG, in the presence of TAE beat-driven ZS. It is found that, the phase space zonal structure generated by AEs could lead to a significant reduction in the local nonuniformity drive and, thereby, stabilize the local ITG instabilities. The zonal flow induced shearing, on the other hand, contributes only to a real frequency shift and, typically, negligibly small additional stabilization.

physics.plasm-ph↗

Energy transfers in decaying three-dimensional Hall-magnetohydrodynamics turbulence: Dependence on the Ion-Inertial Length and the Magnetic Prandtl Number

We present a systematic study of energy transfers in three-dimensional (3D) decaying Hall-magnetohydrodynamics (HMHD) turbulence. Our study has been designed to investigate the dependence of these transfers on initial energy spectra, the ion-inertial length $d_{i}$, and the magnetic Prandtl number $Pr_{m}$. Using shell-to-shell decomposition, we compute the energy transfer rates for (a) kinetic-to-kinetic, (b) magnetic-to-magnetic, (c) kinetic-to-magnetic, and (d) magnetic-to-kinetic interactions by carrying out extensive pseudospectral direct numerical simulations (DNSs) of 3D HMHD and its MHD counterpart. Furthermore, we examine the magnetic-to-magnetic and current-density-to-magnetic energy transfers arising from the Hall term in this framework. Energy transfers between like fields -- namely, kinetic-to-kinetic and magnetic-to-magnetic -- are predominantly local and forward in direction, cascading energy from large to small length scales. This behavior is consistent with a self-similar flow structure in the inertial range. Cross-field transfers, between kinetic and magnetic energy, are found to be forward but non-local in character. At low and high $Pr_{m}$, the transfers become local, and the nonlinear energy transfer is significantly suppressed. Moreover, we observe that the Hall term drives both inverse and forward transfers of magnetic energy, associated with local and non-local transfer, respectively.

physics.plasm-ph↗

Dephasing-free plasma acceleration with millijoule picosecond lasers

Laser-plasma accelerators reach gradients a thousand times above radio-frequency cavities, but need joule-class femtosecond lasers firing about once per second, and electrons outrun the wave. A comb of laser lines spaced by the plasma frequency, each in its own mode of a matched channel, drives a wake moving at the speed of light. In particle-in-cell simulations a 175\,mJ, 0.5\,ps drive holds 21\,GV/m over 10\,mm with a 0.15\,rad phase drift; a test electron gains 208\,MeV, 2.6 times more than in one mode. Because the wave builds up resonantly, the required energy falls steeply with density: a 29\,mJ drive sustains 20\,GV/m, and a 10\,mJ drive, within reach of kilohertz industrial lasers, gives a test electron 170\,MeV over 30\,mm. A simulated stage transfers 5\,\% of the laser energy to the wake; the Manley--Rowe limit is about 18\,\% for five lines.

physics.plasm-ph↗