Lune

ASPLOS2022Top-tier venue

GPUReplay: a 50-KB GPU stack for client ML

Heejin Park, Felix Xiaozhu Lin

Abstract

GPUReplay (GR) is a novel way for deploying GPU-accelerated computation on mobile and embedded devices. It addresses high complexity of a modern GPU stack for deployment ease and security. The idea is to record GPU executions on the full GPU stack ahead of time and replay the executions on new input at run time. We address key challenges towards making GR feasible, sound, and practical to use. The resultant replayer is a drop-in replacement of the original GPU stack. It is tiny (50 KB of executable), robust (replaying long executions without divergence), portable (running in a commodity OS, in TEE, and baremetal), and quick to launch (speeding up startup by up to two orders of magnitude). We show that GPUReplay works with a variety of integrated GPU hardware, GPU APIs, ML frameworks, and 33 neural network (NN) implementations for inference or training. The code is available at https://github.com/bakhi/GPUReplay.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

8 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • STI: Turbocharge NLP Inference at the Edge via Elastic Pipelining cites Minimum viable device drivers for ARM trustzone
  • Minimum viable device drivers for ARM trustzone cites Enabling Refinable Cross-Host Attack Investigation with Efficient Data Flow Tagging and Tracking
  • Secure and Timely GPU Execution in Cyber-physical Systems cites Enabling Rack-scale Confidential Computing using Heterogeneous Trusted Execution Environment
  • Secure and Timely GPU Execution in Cyber-physical Systems cites Telekine: Secure Computing with Cloud GPUs
  • Telekine: Secure Computing with Cloud GPUs cites AvA: Accelerated Virtualization of Accelerators
  • ProvCam: A Camera Module with Self-Contained TCB for Producing Verifiable Videos cites Minimum viable device drivers for ARM trustzone
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers8

  1. STI: Turbocharge NLP Inference at the Edge via Elastic PipeliningLiwei Guo, Wonkyo Choe, Felix Xiaozhu LinASPLOS 2023 · 25 citations
  2. Minimum viable device drivers for ARM trustzoneLiwei Guo, Felix Xiaozhu LinEuroSys 2022 · 15 citations
  3. Secure and Timely GPU Execution in Cyber-physical SystemsJinwen Wang, Yujie Wang, Ning ZhangCCS 2023 · 12 citations
  4. ProvCam: A Camera Module with Self-Contained TCB for Producing Verifiable VideosYuxin (Myles) Liu, Zhihao Yao, Mingyi Chen, Ardalan Amiri Sani et al.MobiCom 2024 · 7 citations
  5. Program Environment FuzzingRuijie Meng, Gregory J. Duck, Abhik RoychoudhuryCCS 2024 · 6 citations

Builds on5

  1. Telekine: Secure Computing with Cloud GPUsTyler Hunt, Zhipeng Jia, Vance Miller, Ariel Szekely et al.NSDI 2020 · 108 citations
  2. Nimble: Lightweight and Parallel GPU Task Scheduling for Deep LearningWoosuk Kwon, Gyeong-In Yu, Eunji Jeong, Byung-Gon ChunNeurIPS 2020 · 102 citations
  3. Enabling Rack-scale Confidential Computing using Heterogeneous Trusted Execution EnvironmentJianping Zhu, Rui Hou, XiaoFeng Wang, Wenhao Wang et al.S&P 2020 · 95 citations
  4. Enabling Refinable Cross-Host Attack Investigation with Efficient Data Flow Tagging and TrackingYang Ji, Sangho Lee, Mattia Fazzini, Joey Allen et al.USENIX Security 2018 · 70 citations
  5. AvA: Accelerated Virtualization of AcceleratorsHangchen Yu, Arthur Michener Peters, Amogh Akshintala, Christopher J. RossbachASPLOS 2020 · 33 citations

Related papers

  1. Safe and Practical GPU Computation in TrustZoneHeejin Park, Felix Xiaozhu LinEuroSys 2023 · 18 citations
  2. GraCE: Unlocking CUDA Graphs with Compiler Support for ML WorkloadsAbhishek Ghosh, Ajay Nayak, Ashish Panwar, Arkaprava BasuOSDI 2026
  3. GPEmu: A GPU Emulator for Faster and Cheaper Prototyping and Evaluation of Deep Learning System ResearchMeng Wang, Gus Waldspurger, Naufal Ananda, Yuyang Huang et al.VLDB 2025 · 1 citation
  4. FlashMem: Supporting Modern DNN Workloads on Mobile with GPU Memory Hierarchy OptimizationsZhihao Shu, Md. Musfiqur Rahman Sanim, Hangyu Zheng, Kunxiong Zhu et al.ASPLOS 2026
  5. Scalable Tuning of (OpenMP) GPU Applications via Kernel Record and ReplayKonstantinos Parasyris, Giorgis Georgakoudis, Esteban Rangel, Ignacio Laguna et al.SC 2023 · 15 citations
Dusk over the sea between two cliffs drawn in fine vertical lines