MagneX: A High-Performance, GPU-Enabled, Data-Driven Micromagnetics Solver for Spintronics
Andy Nonaka, Yingheng Tang, Julian C. LePelch, Prabhat Kumar, Weiqun Zhang, Jorge A. Munoz, Christian Fernandez-Soria, Cesar Diaz, David J. Gardner, Zhi Jackie Yao
TL;DR
MagneX introduces a GPU-accelerated, AMReX-based micromagnetics solver that integrates multirate time integration (MRI) via SUNDIALS and a data-driven demagnetization surrogate using a Fourier Neural Operator. The framework supports detailed physics including Zeeman, demagnetization, anisotropy, exchange, and DMI, with a modular architecture that can swap the demagnetization calculation for a neural surrogate, all validated against μMAG standard problems and skyrmion benchmarks. Key findings show that MRI can reduce time-to-solution by about 48% compared to RK4 in stiff regimes while preserving accuracy, and that NN-based demagnetization can reproduce essential dynamical features with high fidelity. The work demonstrates scalable performance on modern HPC systems and offers open-source tools for integrating high-fidelity micromagnetic simulations with data-driven surrogates, enabling efficient exploration of multiphysics spintronic devices.
Abstract
In order to comprehensively investigate the multiphysics coupling in spintronic devices, it is essential to parallelize and utilize GPU-acceleration to address the spatial and temporal disparities inherent in the relevant physics. Additionally, the use of cutting-edge time integration libraries as well as machine learning (ML) approaches to replace and potentially accelerate expensive computational routines are attractive capabilities to enhance modeling capabilities moving forward. Leveraging the Exascale Computing Project software framework AMReX, as well as SUNDIALS time-integration libraries and python-based ML workflows, we have developed an open-source micromagnetics modeling tool called MagneX. This tool incorporates various crucial magnetic coupling mechanisms, including Zeeman coupling, demagnetization coupling, crystalline anisotropy interaction, exchange coupling, and Dzyaloshinskii-Moriya interaction (DMI) coupling. We demonstrate the GPU performance and scalability of the code and rigorously validate MagneX's functionality using the mumag standard problems and widely-accepted DMI benchmarks. Furthermore, we demonstrate the data-driven capability of MagneX by replacing the computationally-expensive demagnetization physics with neural network libraries trained from our simulation data. With the capacity to explore complete physical interactions, this innovative approach offers a promising pathway to better understand and develop fully integrated spintronic and electronic systems.
