← Lab /Security & privacy

Portable GPU offloading speeds up LWE KEMs without vendor lock-in

OpenMP Target offloading provides substantial acceleration of a plain LWE KEM compared to a multicore CPU baseline while remaining source-level portable across NVIDIA and AMD GPUs

Security & privacy arXiv 10 Jul 2026 Method Prototype evidence

Published as “Portable Acceleration of Learning With Errors KEMs for Post-Quantum Cryptography”

Why it matters

Portable GPU acceleration can markedly lower the computational overhead of LWE-based PQC schemes while avoiding vendor lock-in, facilitating broader deployment of quantum-resistant cryptography.

Summary

OpenMP Target offloading of a plain LWE-KEM yields up to ~41× speedup over a 72-thread CPU baseline and shows the best performance on NVIDIA GH200, with AMD MI300X close behind; however, the paper’s claim of >100× speedup is not reflected in the reported Table 2 numbers. The implementation is portable across NVIDIA and AMD GPUs via a single source code base and HIP-enabled RNGonGPU, and energy-to-solution analysis shows GH200’s lower power consumption gives it an advantage.

What they found 2

  1. GPU offloading becomes increasingly advantageous as lattice dimension grows, eventually achieving speedups exceeding two orders of magnitude for large problem sizes.

    “The results show that GPU offloading becomes increasingly advantageous as the lattice dimension grows, eventually achieving speedups exceeding two orders of magnitude for large problem sizes.”

  2. Among the evaluated GPUs, NVIDIA GH200 delivers the fastest execution times, with AMD MI300X close behind and MI300A lagging due to CPU-GPU memory contention.

    “The results show that at large values of n, GH200 provides the fastest execution times. The other platforms exhibit progressively larger performance degradation with respect to the GH200 baseline.”

Caveats 5

  • Table 2 reports measured speedups of at most 13.2× (e.g., 48.08 s CPU vs 3.64 s GPU for n=1024), far below the claimed >100× acceleration.
  • Dynamic memory allocations performed within the HIP runtime introduce additional latency that is absent on the NVIDIA platforms and does not originate from the cryptographic computation itself.
  • The MI300A therefore highlights an important limitation of unified CPU-GPU memory architectures for memory-bound cryptographic workloads: eliminating explicit host-device transfers does not necessarily improve performance when CPU and GPU compete for the same memory bandwidth.
  • OpenMP constructs such as teams distribute parallel for, reductions, and simd loops are mapped through different backend heuristics for occupancy, scheduling, and register use, leading to performance-portability limits.
  • source-level OpenMP portability does not automatically cover all behavior of external device libraries: allocations internal to the HIP RNG adapter can still introduce approximately 30-50 ms of additional overhead per iteration on AMD systems.

What’s new here 4

  • A single-source OpenMP Target implementation that runs on both NVIDIA and AMD GPUs without CUDA-specific code.
  • Extension of the RNGonGPU library with HIP support to keep cryptographically secure random number generation fully GPU-resident on heterogeneous accelerators.
  • Comprehensive energy-to-solution and power/temperature profiling across four high-end GPUs, highlighting memory-system effects.
  • Open-source release of both the OpenACC and OpenMP Target versions for reproducibility.