Search arXiv⌕ Search

arXiv · 2610.12585

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

Abstract

Semi-Lagrangian (SL) schemes advect a distribution function along characteristics and remap it to a fixed grid. They are unconditionally stable without a global solve, and with discontinuous Galerkin (DG) integration the transfer along a magnetic field line conserves mass exactly. 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. Transport follows magnetic field lines across the planes, and each velocity channel advances a fixed distance per step, proportional to its parallel speed, so the halo depth a channel needs grows with its speed. Velocity-dependent ragged halos exploit this, sending each channel only its own upwind depth. The 4D decomposition includes the toroidal angle, the 2D poloidal plane and the magnetic moment, and leaves the parallel velocity whole: no stage transports across the magnetic moment, while a parallel-velocity partition would put a halo inside the acceleration stage. On NVIDIA A100s the design strong-scales over the magnetic-moment axis from one to 12 four-GPU nodes, and a weak series of three points refining all five phase-space dimensions together, 16x in total per series point, holds a weak-scaling efficiency of 75% on 16 GPUs and 57% on 256, from a one-GPU base case. The pointwise interpolations within the poloidal plane do not conserve mass, and the full step's mass drift stays below 2.1x10^-5 at every series point. The design was implemented with an AI code assistant under a machine-checked regression discipline, in which every change is held to one of four exactness classes, from bit-identical to a physics rate within a stated tolerance.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Mark F. Adams. 2026-12-01. Parallel Design of a GPU-Resident Semi-Lagrangian Drift-Kinetic Solver on Unstructured Extruded Tokamak Meshes. https://searcharxiv.org/abs/2610.12585

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 Much Precision Does FHRR Need? Hardware-Efficient Vector Symbolic Computing with Quantized Phases

Fourier Holographic Reduced Representations (FHRR) encode symbols of unit phasors, however conventional implementations store and manipulate them with complex floating-point arithmetic. We investigate how much precision FHRR requires through quantized-phase FHRR (qFHRR) that represents each component as an $N$-bit integer phase. We compare qFHRR against complex, Cartesian, and modular composite representations across associative retrieval, factorization, and path integration tasks. At matched dimensionality, quantization introduces a predictable capacity penalty proportional to $\operatorname{sinc}^{2}(π/2^{N})$. However, under equal storage budgets, 2-bit qFHRR stores $\approx26\times$ more key--value associations than complex FP32. Resonator factorization is more sensitive to precision, and path integration loses displacements smaller than one phase bin regardless of dimensionality. Because these storage advantages do not translate into faster execution when phase indices are decoded into floating point for standard operations, we introduce HyPack, a hybrid-precision packed qFHRR implementation that combines 2-bit Gray-coded phase storage and native bitwise operations with wider integer accumulation. Compared with complex FP32 and Cartesian FP16 fused kernels, HyPack retrieves $3.3\times$ faster per query with $4.3\times$ less energy on a CPU and $1.4\times$ faster with $2.6\times$ less energy on a GPU. In path integration, its integer kernel matches fused floating-point integration on the CPU, while its $32\times$ smaller state and codebook cut the cost of decoding. Therefore, integration with decoding is $4.4\times$ faster with $5.0\times$ less energy on the CPU and $1.3\times$ faster on the GPU. Separating representation precision from intermediate precision therefore enables more efficient phase-based vector symbolic computation on conventional processors.

physics.comp-ph↗

Knowledge Transfer from a Universal Interatomic Potential to a Universal Electron Density Model

Energies and forces are available for far more atomic configurations than are reference electron densities. Can representations learned by a universal interatomic potential from this broader range of environments help a density model predict both static charge densities and where charge moves under perturbation? We connect a frozen EqV3 OMat-G encoder to the EdenGNN-Uni electron-density decoder through a dual-parity $O(3)$-equivariant bridge, the Potential-Density Bridge (PxD-Bridge). EdenGNN-Uni supplies all teacher hidden states and density targets on 50,000 bulk structures, so transfer requires no new density-functional-theory density labels. Evaluated without calibration, the PxD-Bridge model gives the lower mean total-density error on 965 held-out bulk crystals, on all four held-out MoS$_2$ nanotubes, and for both the unstrained and strained structures in the 100-crystal test. The decisive test is the density response: normalized by the total valence-electron count, the mean strain-induced charge-redistribution error decreases from 0.739% for EdenGNN-Uni to 0.594% for PxD-Bridge, with the PxD-Bridge model more accurate on 85 of the 100 crystals. Across an expanded 579-crystal benchmark spanning 79 elements under lattice strain and atomic rattling, the mean redistribution error decreases from 0.467% to 0.384%, with PxD-Bridge more accurate on 543 of the 579 crystals. In a matched control using the identical bridge architecture, randomly initialized EqV3 fails to surpass EdenGNN-Uni, whereas pretrained EqV3 gives a lower redistribution error than random EqV3 on 95 of the 100 strained crystals and 549 of the 579 full-periodic-table crystals. Energy-and-force pretraining can change how a distilled density model generalizes across structures and perturbations, allowing a student trained only to imitate its teacher to exceed that teacher on both static densities and electronic response.

physics.comp-ph↗

Two-Channel Transmission Conditions for Fast and Robust Domain Decomposition in Finite-Element Maxwell Solvers

A new dual-primal finite element tearing and interconnecting (FETI-DP) domain decomposition method (DDM) exhibiting unprecedented convergence rates is introduced for the solution of large-scale electromagnetic problems. The proposed DDM transmission condition (TC) enforces tangential-field and normal-flux continuity simultaneously across subdomain interfaces. Two channels are constructed from Faraday and Ampère-Maxwell equations discretized based on a mixed $\mathbf{E}$-$\mathbf{B}$ finite-element setting with Whitney edge and face elements. The two-sided enforcement of the transmission conditions yields four Lagrange multipliers per interface, retains the dual-primal corner treatment, and requires no auxiliary surface currents or charges. Evanescent interface modes, which are problematic for the conventional TCs, are strongly suppressed by the proposed TC. The convergence of the global interface equation improves accordingly, most markedly on large multiscale problems where the conventional TCs converge slowly or stagnate. In addition, a double-sweep preconditioner acting on the interface blocks complements the proposed TC. Several numerical experiments, with different domain partitioning strategies, subdomain counts, and geometries, demonstrate rapid convergence, robustness with respect to the number of subdomains. Improved field continuity is also observed on DDM interfaces.

physics.comp-ph↗