Parallel Design of a GPU-Resident Semi-Lagrangian Drift-Kinetic Solver on Unstructured Extruded Tokamak Meshes

arXiv:2610.12585 · physics.comp-ph · Submitted 2026-10-08 · Read on arXiv

Listen

Radio episode about this paper

Transcript

Introduction to the show: ident: Physics. The day in general physics: instruments, methods and results across the field.

Kai: We're looking at the paper: "Parallel Design of a GPU-Resident Semi-Lagrangian Drift-Kinetic Solver on Unstructured Extruded Tokamak Meshes".

Title and authors: Kai: So, we're looking at this paper, "Parallel Design of a GPU-Resident Semi-Lagrangian Drift-Kinetic Solver on Unstructured Extruded Tokamak Meshes," and the authors are Mark F Adams from Lawrence Berkeley National Laboratory. It sounds like they’ve taken a complex problem—drift kinetics in tokamaks—and figured out how to make it run really fast on GPUs without losing accuracy.

Mira: Yeah, what catches my eye immediately is that they tackle the parallel design and GPU residency directly, which is exactly what we need when we're trying to move these kinds of simulations from theory onto actual hardware. It’s about taking a solver that can be unstable or slow on a standard setup and making it work efficiently on something like an A100.

Lev: From my side, I see the focus on the parallelization structure, especially how they handle that four-dimensional division of the problem. If you can cleanly separate parts so that no stage of the operator has to cross a boundary that requires an exchange, that’s a massive win for performance on GPUs.

Kai: Exactly. They do this by leaving the parallel velocity whole in their decomposition strategy, which means they are cutting through the toroidal axis and just letting each channel advance based on its own speed without needing huge exchanges across those boundaries. That sounds like a big simplification for communication overhead on a massive parallel system.

Mira: And that leads into their halo management, because when you cut things up like that, you still need to manage the boundaries, right? They use velocity-dependent ragged halos which exploit the fact that each channel only needs its own upwind depth. This is much smarter than using a fixed-width halo for every single channel.

Lev: Because they determine those per-channel depths using equations three and they relate that volume to things like the number of channels and the row blocks, which helps them manage communication efficiently when you have millions of channels spread across many GPUs.

Kai: That makes sense. And looking at their performance analysis, they found that certain optimizations really matter most at a specific point in their code, like "device-direct halo" and "unrolled stream apply." It shows that it’s not just about having good ideas generally; it’s about where the bottlenecks actually are on the hardware.

Mira: Right. They also showed strong scaling over the magnetic moment axis reaching forty-eight GPUs at sixty-one percent efficiency, which is pretty solid for a system of this complexity, especially considering they’re running on unstructured meshes. That suggests the architecture holds up well for parallel scaling along that dimension.

Lev: The scalability metric is interesting because it tells you how much you can actually pack into the hardware before communication starts dominating everything else. I wonder if that sixty-one percent efficiency holds up when we start pushing to a really high number of ranks, like the two five six GPUs they tested.

Title and authors: Kai: And speaking of accuracy, conservation is often a weak point for semi-Lagrangian methods, but they claim that the transfer along each field line and the shift along velocity parallel conserve mass exactly under the L2 projection. That’s reassuring when you’re dealing with kinetic equations where mass conservation is critical.

Mira: They also quantified the mass drift, saying it stays below two point one times ten to minus five at every series point, which gives us a concrete number to check against our theoretical expectations for accuracy in these types of solvers.

Lev: That error bound is important because it tells us how much noise or numerical dissipation we can expect to introduce into the solution step by step. It shows that their method keeps the accumulation of drift very small even when you’re integrating over many steps.

Kai: So, looking at the limitations they mention, they flag two main things: first, the stream apply needs to be shortened because blocking over the plane should help with that; and second, there's a piece about field stage work that row ranks could potentially divide further if they divided their solves differently.

Mira: That suggests there’s still room for refinement in how they handle those specific computational stages, especially regarding how much work is done by the row ranks versus other parts of the system. It’s not quite fully optimized yet according to their own assessment.

Lev: I think that points toward where future work needs to focus, specifically on splitting that field stage work more aggressively across those row ranks if they want to keep improving performance beyond what they’ve achieved with this threeX plus two V design <ref:2610.12585#pg1>.

Kai: To wrap up the improvements, they suggest implementing staging buffers bound to MPI requests that are GPUaware reads and writes in device memory. They found this was about two point three five times longer at a specific point in their code compared to using host-side prefix sums.

Mira: That’s a very concrete hardware optimization for memory access, showing that being smart about how data moves between the CPU and GPU really impacts the actual wall clock time of the simulation. It connects the theoretical structure to real memory bandwidth constraints on Perlmutter A100s.

Lev: And then there's this idea about dividing the polarization equation among row ranks so that a rank whose slice holds several stations stacks them into one block-diagonal system and solves it in one call, which they measured as taking about zero point seven six milliseconds per step when divided. That’s a big improvement over the latency bound solve they got on a single plane.

Title and authors: Kai: So, to summarize the big picture of this "Parallel Design of a GPU-Resident Semi-Lagrangian Drift-Kinetic Solver on Unstructured Extruded Tokamak Meshes," it’s about using smart decomposition and exploiting velocity-dependent halos to get strong scaling across forty eight GPUs while maintaining good mass conservation.

Mira: It’s a highly parallel, fully GPU resident solver that shows how to handle the complexity of drift kinetics on unstructured tokamak meshes by making careful choices about how to divide the work between the toroidal, poloidal, and parallel velocity dimensions.

Lev: I think what this means for us is that when we design future error-correction methods or kinetic solvers for real hardware, we need to be extremely careful about those decomposition choices because they directly dictate where the communication bottlenecks land.

Kai: It’s interesting because they also mentioned a machine-checked regression discipline where every change is held to four exactness classes, from bit identical up to a physics rate within a stated tolerance, which prevents introducing things like the composite step order defect that can sneak in.

Mira: That kind of rigor in development is essential when you’re dealing with these complex numerical schemes because small errors accumulate quickly, and having that built-in check keeps the physics stable across different implementations.

Lev: On a real system, I’d worry about how much overhead that machine checking adds to the total time compared to just letting the simulation run unchecked, especially when you’re trying to push those strong scaling limits.

Kai: Well, they found that for their weak series on Perlmutter A100s, refining all five phase-space dimensions together with the time step resulted in a weak scaling efficiency of seventy five percent on sixteen GPUs and fifty seven percent on two hundred fifty six GPUs.

Mira: That’s a good efficiency number, especially when you look at that result against the other series they ran, like the accuracy-matched weak series. It shows that their approach scales reasonably well across different levels of refinement.

Lev: The measurement on those A100s is important because it shows us what performance looks like on actual hardware with specific memory bandwidth constraints, which is something we often ignore when we only look at theoretical complexity.

Kai: So, to wrap up this paper, the "Parallel Design of a GPU-Resident Semi-Lagrangian Drift-Kinetic Solver on Unstructured Extruded Tokamak Meshes" presents a highly parallel, fully GPU resident solver for tokamaks that achieves strong scaling over the magnetic moment axis and shows efficiency gains through velocity-dependent halos.

Mira: It’s a very detailed look at how to implement these complex kinetic solvers efficiently on current high-end accelerators, giving us concrete data on what works and where the bottlenecks are in terms of memory access and communication.

Lev: It’s a solid piece of engineering that gives us a blueprint for structuring those four-dimensional problems so that when we move from simulation to real hardware, we have a clear idea of how to design the underlying operator structure.

The paper's summary: Kai: So, we just talked about how they structured their solver using that four-dimensional decomposition to keep communication low. Now, let's look at what this paper actually delivers in its summary and why it matters for us working with these kinds of complex kinetic equations on hardware.

Mira: Basically, they show a very parallel and GPU resident solver for drift kinetics on tokamaks that scales well across different hardware setups. It’s not just about having a fast algorithm; it’s about making the whole system work together efficiently.

Lev: I'm interested in what they found regarding the scaling itself. The summary mentions strong scaling over the magnetic moment axis, which is pretty significant for a system this big. They managed to get forty eight GPUs working at sixty-one percent efficiency on that axis alone.

Kai: That sixty-one percent figure is a solid number when you think about how much overhead you have to deal with in distributed memory systems. Mira, what’s the big assumption underneath those results? What makes them think that scaling is good?

Mira: The main assumption they make is that their decomposition strategy—leaving the parallel velocity whole—really cuts down on the communication costs associated with moving data across different parts of the simulation grid. They are betting that by separating things cleanly, you don't need to exchange massive amounts of information just to advance time.

Lev: And for us, that’s critical. If we can design our operators so they naturally fit this kind of clean separation, we save huge amounts of time on the interconnects. It means the real bottleneck shifts away from communication and towards actual computation on the GPU cores themselves.

Kai: Right, so if we take those results—strong scaling at forty eight GPUs—and look at what they actually built and cooled for these measurements, it tells us that when you can manage the physics this cleanly in hardware, you get massive computational leverage. It’s about making the simulation run fast enough to explore things that were previously just theoretical.

Mira: Exactly. And they also showed some very specific efficiency numbers on different GPU counts, like seventy five percent efficiency on sixteen GPUs and fifty seven percent on two hundred fifty six GPUs in their weak series tests. That shows the method is robust across different scales of hardware deployment.

Lev: That robustness is key for error correction research, which is my area. If the method performs reliably across those scales, it means we can trust the underlying physics solution even when we’re pushing the limits of what a real machine can handle in terms of rank count.

Kai: And one thing they flagged as a limitation in their summary is that they still have some gaps—like needing to shorten that stream apply stage or better dividing the field stage work among row ranks. That tells us exactly where our next design iteration needs to focus its energy if we want to keep improving these solvers further.

Mira: So, the implication here is that this paper provides a very strong blueprint for structuring kinetic solvers on unstructured meshes, emphasizing clean decomposition and exploiting channel-specific halo management for better efficiency and scaling.

Lev: It’s a good guide on how to map the mathematical structure of a problem onto hardware constraints, showing us precisely where you need to optimize memory access patterns and where communication overhead will land.

The paper's improvements: Tom: So we've seen how they set up the initial design, and now we need to talk about what they actually suggest improving about it in the summary section of this paper. What are these suggested tweaks?

Kai: They point out that the stream apply stage needs to be shortened because blocking over the plane should help with that, meaning we can reduce how much work is done there.

Mira: That makes sense from a computational standpoint; if you can cut down the work in one part of a cycle, you get less overall time for your simulation.

Lev: From an error correction view, reducing the total number of operations in a stage is always good because it lowers the chance of accumulating numerical errors throughout the entire integration process.

Kai: They also suggest dividing that field stage work among row ranks differently—having a rank whose slice holds several stations stack them into one block-diagonal system and solve it in one call instead of solving a single plane.

Mira: That sounds like they are trying to reduce the latency involved in solving those equations, which is where we often see problems on real hardware when dealing with large systems.

Lev: And they quantify that division, saying it results in a time of zero point seven six milliseconds per step when divided, compared to something much longer for a single plane solve. That's a tangible performance gain for us to consider when designing our error-correction overheads.

Kai: So the paper is telling us that if we want to push this solver further, we need to focus on these specific structural improvements—shortening stages and better parallelizing the field solve.

Mira: And they also bring up advanced kernel optimization, noting that profiling showed the stream apply stage runs at only sixty nine percent of the memory bandwidth roof for DRAM. That’s a signal that focusing our efforts there will yield big gains.

Lev: It confirms what we saw in the performance analysis; if a specific kernel is under-utilized relative to its potential, optimizing it is where you find the most immediate speedup on accelerators like those A100s.

Kai: They also bring up a machine-checked regression discipline, where every change has to pass through four exactness classes, from bit identical up to a physics rate within a stated tolerance.

Mira: That level of rigor is important because it helps prevent introducing nasty defects like that composite step order defect that can creep in when you're changing the underlying math. It keeps the solution physically sound across different versions of the code.

Lev: For real hardware, having such strict checks built into your development process means you spend less time debugging subtle numerical instabilities and more time on scaling issues.

Kai: So, to sum up these improvements, it’s about refining the structure—cutting down work in specific stages and better dividing complex solves—and using profiling data to guide exactly where we should put our next optimization efforts.

Mira: The implication is that this isn't just a new solver; it’s a methodology for building highly efficient kinetic codes by paying close attention to the hardware's limitations at every single step of the process.

Conclusion: Kai: So, to wrap things up on this paper titled "Parallel Design of a GPU-Resident Semi-Lagrangian Drift-Kinetic Solver on Unstructured Extruded Tokamak Meshes," we’ve seen how they designed it for speed and scalability.

Mira: Right, really showing us how you can tackle drift kinetics on these complex tokamak meshes using smart parallel decomposition and velocity-dependent halos.

Lev: From my side, what this means is that we have a concrete blueprint for structuring those four-dimensional problems so that when we move to real hardware, we know exactly where the communication bottlenecks will land.

Kai: It’s about taking those theoretical structures and making them runnable on things like Perlmutter A100s without losing too much fidelity in the measurement record.

Mira: The implication for us as theorists is that we have a better tool to test our physics because it’s built with strong conservation properties under the L2 projection, which keeps the mass drift under two point one times ten to minus five.

Lev: I just want to say that seeing this kind of efficiency on forty eight GPUs over forty eight nodes is what gives me confidence in designing error correction schemes that actually run fast enough for real hardware.

Kai: It’s a solid piece of engineering that shows how much work goes into making these kinetic codes truly GPU resident and highly parallel.

Mira: It’s a very detailed look at how to implement these complex solvers efficiently on current high-end accelerators, giving us concrete data on what works and where the bottlenecks are in terms of memory access and communication.

Lev: It’s a solid piece of engineering that gives us a blueprint for structuring those four-dimensional problems so that when we move from simulation to real hardware, we have a clear idea of how to design the underlying operator structure.

Lawrence Berkeley National Laboratory

physics.comp-ph

Submitted: 2026-10-08

Updated: 2026-12-01

License: http://arxiv.org/licenses/nonexclusive-distrib/1.0/

Importance score: 91/100

The gist: Semi-Lagrangian (SL) schemes advect a distribution function along characteristics and remap it to a fixed grid.<ref:2610.12585#pg1…

Key concepts

Semi-Lagrangian (SL) schemes
These schemes move a distribution function along characteristics—the paths particles would take—and then map that data onto a fixed grid. This method is used here to advect the kinetic equations, allowing for efficient transport across the simulation domain.
Four-dimensional decomposition
The strategy divides the problem space into four dimensions. Crucially, it separates the toroidal axis from which ranks own wedges and partitions $\mu$ rows. This design ensures that no stage of the operator needs to transport across these axes, minimizing costly exchanges.
Velocity-dependent ragged halos
Instead of using fixed-size halos around every channel, this method uses halos whose size depends on the channel's specific upwind depth. This exploits the fact that channels only need a halo on their own upwind side, significantly reducing halo volume and communication overhead.
Roofline analysis
This technique involves profiling the dominant computational kernels in each stage of the solver to determine where performance bottlenecks occur. By identifying which kernels saturate memory bandwidth (the roof), researchers can focus optimization efforts for maximum speedup.

Terminology

Summary

Semi-Lagrangian (SL) schemes advect a distribution function along characteristics and remap it to a fixed grid. p. 0<ref:2610.12585#pg1, Parallel Design of a GPU-Resident Semi-Lagrangian Drift-Kinetic Solver on Unstructured Extruded Tokamak Meshes>. p. 0 This paper presents the parallel and GPU design of a 3X+2V SLDG drift-kinetic tokamak solver on unstructured, flux-surface-aligned poloidal planes of shaped cross section, extruded toroidally. p. 0<ref:2610.12585#pg1, Abstract—Semi-Lagrangian (SL) schemes advect a distribution function along characteristics and remap it to a fixed grid>. p. 0 It is important because the design achieves strong scaling over the magnetic moment axis from one to 12 four-GPU nodes and demonstrates a weak-scaling efficiency of 75% on 16 GPUs and 57% on 256, while maintaining mass conservation under the L2 projection. p. 0<ref:2610.12585#pg3>.

Decomposition Strategy

The decomposition strategy involves a four-dimensional division that leaves the parallel velocity whole.<ref:2610.12585#pg4>. This division separates the toroidal axis from which a rank owns ncl = Nφ/Pφ consecutive wedges and replicates metadata. p. 2<ref:2610.12585#pg4>. Furthermore, the row axis partitions the µ rows over Prow blocks. p. 2<ref:2610.12585#pg4> while the parallel velocity is left whole because no stage of the operator transports across it. p. 0<ref:2610.12585#pg4>.

Halo Management and Communication

The halo management employs velocity-dependent ragged halos which exploit each channel's own upwind depth.<ref:2610.12585#pg3>. The per-channel depths are determined by equations (3), giving a volume Pj dL(j) + dR(j) Nblk against swNchNblk. p. 3<ref:2610.12585#pg3>. The communication involves five recurring communications: (i) the stream’s halo exchange between toroidal neighbours; (ii) a depth-one scalar halo of the potential for the parallel gradient; (iii) one all-reduce of the density’s channel sum over the µ row ranks; (iv) one all-gather of the field over the row ranks; and (v) one all-reduce of K surface sums for the flux-surface average. p. 2<ref:2610.12585#pg4>.

Performance Analysis and Optimizations

The performance analysis focuses on measuring what each optimization is worth, showing that device-direct halo and unrolled stream apply are worth most at point C.<ref:2610.12585#pg9>. The strong scaling over the row axis reaches 7. p. 14× at twelve blocks, two µ rows per GPU, at 61% efficiency. p. 6<ref:2610.12585#pg9>.

Conservation and Accuracy

Conservation is a known weakness of the semi-Lagrangian class, but the transfer along each field line and the shift along v∥ conserve mass exactly under the L2 projection.<ref:2610.12585#pg3>. The full step’s mass drift stays below 2. p. 01 × 10−5 at every series point. p. 0<ref:2610.12585#pg3>.

Limitations and Future Work

Known gaps include that the stream apply, which blocking over the plane should shorten, and the field stage’s plane-sized work, which the row ranks could divide as they divide its solves.<ref:2610.12585#pg9>. Two extensions are planned: the weak series on AMD MI250X GPUs, and its fourth point, the level-7 plane at 32 wedges on 4,096 GCDs. p. 9<ref:2610.12585#pg10, Two extensions are planned: the weak series on AMD MI250X GPUs, and its fourth point, the level-7 plane at 32 wedges on 4,096 GCDs>. p. 9

Conclusion

This paper has presented a highly parallel, fully GPUresident, scalable and efficient semi-Lagrangian drift-kinetic solver for tokamaks.<ref:2610.12585#pg10, This paper has presented a highly parallel, fully GPUresident, scalable and efficient semi-Lagrangian drift-kinetic solver for tokamaks>. p. 9 p. 9 On Perlmutter’s A100s a weak series that refines all five phasespace dimensions and the time step together holds a weakscaling efficiency of 75% on 16 GPUs and 57% on 256, and four of the five dominant kernels of the step run at a memorybandwidth roof on a rank of the 256-GPU point’s shape. p. 9<ref:2610.12585#pg10, On Perlmutter’s A100s a weak series that refines all five phasespace dimensions and the time step together holds a weakscaling efficiency of 75% on 16 GPUs and 57% on 256, and four of the five dominant kernels of the step run at a memorybandwidth roof on a rank of the 256-GPU point’s shape>. p. 9

Where each stage sits on the roofline

The degree to which a kernel saturates the hardware indicates where to look for code optimization.<ref:2610.12585#pg9, To that end, Table IV profiles the dominant kernel of each stage of a rank of point C’s shape with Nsight Compute >. p. 8 Four of the five kernels run at a roof. p. 8<ref:2610.12585#pg9, Four of the five kernels run at a roof>. p. 8 The density gather and the velocity moment run at the DRAM roof and the drift apply against the L1 roof. p. 8<ref:2610.12585#pg9, The density gather and the velocity moment run at the DRAM roof and the drift apply against the L1 roof >. p. 8

Related Work

Conservative SLDG methods for kinetic equations were developed by Crouseilles, Mehrenberger, and Sonnendrucker ¨ and by Einkemmer [8], [1].<ref:2610.12585#pg13, Conservative SLDG methods for kinetic equations were developed by Crouseilles, Mehrenberger, and Sonnendrucker ¨ and by Einkemmer [8], [1] >. p. 8 The closest prior work is the SLDG code line of Einkemmer et al. p. 0: distributed-memory CPU parallelization with worst-case-depth one-sided halos [4]. p. 8<ref:2610.12585#pg13>. Distributed GPU kinetic codes span the discretization space: DG kinetics in Gkeyll [15], continuum gyrokinetics on GPUs in GENE [16] and the GPU-native GX [17]. p. 8<ref:2610.12585#pg9, Distributed GPU kinetic codes span the discretization space: DG kinetics in Gkeyll [15], continuum gyrokinetics on GPUs in GENE [16] and the GPU-native GX [17] >. p. 8 The present work differs in three ways. p. 8<ref:2610.12585#pg9, The present work differs in three ways >. p. 8

Hardware Details

The hardware details specify that Perlmutter’s A100s are used for the measurements.<ref:2610.12585#pg7, We measure two series: a strong series over the µ row axis (Table I) and an accuracy-matched weak series (Table II), and, around them, whether the ragged halos save time over a worstcase exchange (Sec. p. 6 VII-C) >. The runs use Perlmutter’s A100 nodes, four to a node on Slingshot11 and one rank per GPU. p. 6<ref:2610.12585#pg7, Both series run on Perlmutter’s A100 nodes, four to a node on Slingshot11 and one rank per GPU >. p. 6 The workstation gates run on Apple M-series hardware with the Kokkos Serial backend, which is also where the CPU half of every CPU-versus-GPU reproduction is measured. p. 5<ref:2610.12585#pg7>.

Artifact Description

The artifact consists of the kintora-hpc and kintora-methods directories.<ref:2610.12585#pg13>. The code base is the drift-kinetic solver, the kin library under src/kin and its driver ex11, built on PETSc and Kokkos. p. 0<ref:2610.12585#pg13>.

Experiment Workflow

The experiment workflow involves running multiple series of tests.<ref:2610.12585#pg13>. The runs use-log view gpu time. p. 6<ref:2610.12585#pg13>.

This paper has presented a highly parallel, fully GPUresident, scalable and efficient semi-Lagrangian drift-kinetic solver for tokamaks.<ref:2610.12585#pg10, This paper has presented a highly parallel, fully GPUresident, scalable and efficient semi-Lagrangian drift-kinetic solver for tokamaks>.

Green — the paper says it, and the page is printed. Red — no passage carries it, so treat that sentence as unverified. The same check runs on your own text: check a summary against its source, $5.

Improvements for AI systems

  1. Improve parallel design by implementing a four-dimensional decomposition that leaves the parallel velocity whole (Secs. III–V), ensuring that no stage of the operator transports across the magnetic moment, so that axis costs no exchange to partition and is cut. This allows for a design where a channel needs a halo only on its upwind side instead of a fixed-width halo.

  2. Enhance efficiency by utilizing velocity-dependent ragged halos, which exploit the fact that each channel only its own upwind depth, leading to gains where the gain is 1.00 wherever every channel shifts by under a wedge. This reduces halo volume compared to worst-case exchanges when depths differ.

  3. Increase scalability over the magnetic moment axis by implementing an all-reduce of density per step, which multiplies the usable rank count by the number of row blocks and allows for strong scaling over this axis to reach 48 GPUs at 61% efficiency.

  4. Improve accuracy and performance through a machine-checked regression discipline where every change is held to one of four exactness classes, from bitidentical to a physics rate within a stated tolerance. This prevents introducing defects like the composite-step order defect the E×B term introduced by asserting class against committed reference values.

  5. Optimize memory access patterns by implementing staging buffers bound to MPI requests that are GPUaware MPI reads and writes in device memory, which, when compared to host-side prefix sums, showed a step 2.35× longer at point C.

  6. Improve field solve performance by dividing the polarization equation among row ranks, where a rank whose slice holds several stations stacks them into one block-diagonal system and solves it in one call, resulting in a time of 0.76 ms per step when divided, compared to the latency-bound solve on a single plane.

  7. Implement advanced kernel optimization by profiling dominant kernels and identifying that The stream apply, 23% of the step (Table II), runs at 69% of the DRAM roof, suggesting that focusing optimization efforts on this kernel could yield significant gains.

Sources

Related papers