Skip to content
Preprint

Meganeura: Portable GPU Training and Inference through Vulkan and Metal

Aug 2026 · 0 citations · 27 references
Computer Science

TL;DR

The results show that general consumer graphics APIs can support a compact shared train-to-deploy stack at useful, sometimes vendor-competitive performance and measured gaps point to kernel coverage, scheduling, and arithmetic policy rather than an identified API limitation.

Abstract

Training and deployed inference often cross export, conversion, and platform-specific runtime boundaries. Meganeura asks whether one compact native compiler can span both phases on consumer GPUs. Its typed static graph, automatic differentiation, optimizer, checkpoint, memory planner, and runtime lower specialized programs through Vulkan and Metal. We compare five matched workloads with PyTorch on NVIDIA and AMD discrete GPUs, an AMD APU, Apple silicon, and an Intel iGPU. The protocol separates strict f32 from validated fast paths and gates forward and backward independently. Forty-eight of 50 device-workload-mode cells pass both gates; the other two share one unresolved backward-reference disagreement on a newly supported APU. In strict f32, Meganeura wins 12 of 20 GPU-referenced minimal-latency cells and has a median valid training gap of 1.8x. On the discrete AMD GPU, four of five inference workloads are within 1.10x of compiled ROCm PyTorch and three training workloads are faster. Under accelerated contracts, the worst training gap is 4.6x. Compilation takes 0.1-2.4 seconds versus 6-96 seconds for torch.compile on supported GPU paths; the stripped binary is 13 MiB. Dispatch profiles localize the largest gaps to convolution derivatives and attention backward. A physical Android XR case study transfers a Meganeura-trained decoder into an Adreno/OpenXR application sharing the graphics queue. The results show that general consumer graphics APIs can support a compact shared train-to-deploy stack at useful, sometimes vendor-competitive performance. The measured gaps point to kernel coverage, scheduling, and arithmetic policy rather than an identified API limitation.

View source

Similar papers

#machine learning Preprint Sep 2026

Accelerating the Mitigation of LLM Inference Nondeterminism Across GPU Architectures

Large language model (LLM) outputs are expected to be reproducible under greedy decoding, yet in practice the same model, prompt, and software stack produce different outputs on different GPUs. The root cause is floating-point non-associativity combined with hardware-dependent kernel selection. Inference frameworks sel...

L. Cooper, Shinnung Jeong, Hyeran Jeon et al. · 1 citation
Preprint Oct 2026

SyclKittens: A Tile Programming Model for Programmers and Coding Agents on Intel GPUs

New AI accelerators arrive before the kernels that make them fast, because peak kernel performance requires architecture-specific expertise in operand pipelines and data-movement techniques. Coding agents can now write, compile, and tune kernels on their own, so they could greatly accelerate kernel development and opti...

Ye-Hong Jiang, Sheng Chen, Fang-Wen Fu et al. · 0 citations
#machine learning Preprint Sep 2026

AttnFuse: A Composable DSL for Compiling Attentions to Fused GPU Kernels

Modern AI systems are built on the Transformer architecture, whose core operation, attention, accounts for the majority of computation and memory cost. Researchers continually propose new attention variants to improve quality, efficiency, or context length, but each variant currently requires expert-written GPU code to...

Varun Kumar Dasoju, Tian Zhao · 0 citations
#natural language process... Preprint Sep 2026

AMDKernelVault: Large-Scale Datasets and Agentic Training for AMD GPU Kernel Optimization

We introduce AMDKernelVault, an open HIP and Triton kernel corpus and training framework for recent AMD CDNA GPUs. Existing LLM-based kernel agents are largely CUDA/NVIDIA-centric and often depend on repeated frontier-LLM calls for generation, reflection, and optimization. To address this gap, we develop HIPKernelGen a...

Ji Liu, S. Majumder, Yi-Qing Huang et al. · 0 citations
Preprint Aug 2026

How Weight Encoding Affects Language Model Placement and Performance on the Apple Neural Engine

This work combines compiler device plans, synchronized memory-controller measurements, and compute-unit exclusion controls for a fixed single-token forward workload and establishes encoding-dependent placement in the measured deployment stack and shows that compression comparisons require joint measurement of backend s...

A. ShahirM · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.