GLASS library boosts GPU robotics math performance by up to 73 times

GLASS: Architecture-Tuned, Composable, Device-Side Linear Algebra for Edge Robotics and Beyond

RoboticsDistributed, Parallel, and Cluster ComputingMathematical Software

Summary

Robots that rely on GPUs for math calculations don't have strong, easy-to-use tools like those available for regular computer processors. The authors created GLASS, a software library that efficiently handles complex math tasks directly on the GPU, adapting to different hardware automatically. This makes robotic systems run much faster, especially on smaller edge devices like Jetson boards. The authors also found and fixed a hidden math bug in existing robotics software while testing GLASS, showing its practical benefits.

What this means in practice

  • For robotics engineers: Improve embedded robotic systems’ speed and accuracy by using GLASS for efficient GPU-side linear algebra computations.
  • For edge device developers: Enable faster linear algebra operations on edge GPUs like Jetson, enhancing performance of on-device AI and control tasks.

Authors

Brian Plancher

Abstract

GPU robotics lacks the reusable numerical infrastructure of mature CPU stacks, instead relying on compiler frameworks that introduce overhead or repeatedly reimplementing numerical libraries. To address this, we introduce GLASS (GPU Linear Algebra Simple Subroutines), a header-only CUDA C++ library that provides thread-, warp-, block-, and NVIDIA-backed implementations of robotics-scale linear algebra and geometric computations under one composable device API. GLASS treats implementation choice, execution scope, and launch packing as architecture-specific placement decisions determined by offline measurement and resolved statically at compile time. This is critical as the best and worst placements differ by a median of 4.9x (max 81x), with 145 of 396 recommended placements changing between a Jetson AGX Orin and an RTX 5090, and 162 of 396 versus an AGX Xavier. These stakes are highest at the edge as GLASS's advantage over the best of PyTorch and JAX is as much as 73x on the Orin versus 12x on the RTX 5090. GLASS is released open source with independent numerical oracles and source-bound local-GPU test attestation. Finally, integrating GLASS with published robotics systems both exposed a pre-existing numerical bug and improved embedded runtimes by up to 1.5x.