# GSoC 2025: GPU-driven I/O with io\_uring

DevFeed: [GSoC 2025: GPU-driven I/O with io\_uring](<https://devfeed.tech/articles/gsoc-2025-gpu-driven-i-o-with-io-uring-43115.md>)

Original publisher: [Read original article](<https://blog.llvm.org/posts/2025-08-04-gpu-io-uring/>)

Author: Rodrigo Ceccato (rodrigo-ceccato)

Published: 2025-08-04T00:00:00Z

Content type: article

Language: en

Sources: [LLVM Project](<https://devfeed.tech/sources/the-llvm-project-blog.md>)

Topics: [GPU](<https://devfeed.tech/topics/gpu.md>), [io\_uring](<https://devfeed.tech/topics/io-uring.md>), [IO](<https://devfeed.tech/topics/io.md>), [Linux](<https://devfeed.tech/topics/linux.md>), [Code](<https://devfeed.tech/topics/code.md>), [implementation](<https://devfeed.tech/topics/implementation.md>), [Kernel](<https://devfeed.tech/topics/kernel.md>), [Remote Procedure Call (RPC)](<https://devfeed.tech/topics/rpc.md>), [Software Testing](<https://devfeed.tech/topics/software-testing.md>)

Tags: [asynchronous](<https://devfeed.tech/tags/asynchronous.md>), [code](<https://devfeed.tech/tags/code.md>), [gpu](<https://devfeed.tech/tags/gpu.md>), [gsoc](<https://devfeed.tech/tags/gsoc.md>), [implementation](<https://devfeed.tech/tags/implementation.md>), [io](<https://devfeed.tech/tags/io.md>), [io-uring](<https://devfeed.tech/tags/io-uring.md>), [kernel](<https://devfeed.tech/tags/kernel.md>), [linux](<https://devfeed.tech/tags/linux.md>), [llvm](<https://devfeed.tech/tags/llvm.md>), [pcie](<https://devfeed.tech/tags/pcie.md>), [rpc](<https://devfeed.tech/tags/rpc.md>), [testing](<https://devfeed.tech/tags/testing.md>)

## AI overview

A GSoC 2025 project explores GPU-initiated I/O by allowing GPU code to write directly to an io_uring submission queue backed by shared virtual memory. The prototype implements a printf-like interface and tests synchronous and kernel-level polling modes.

## Source excerpt

Hello everyone! My name is Rodrigo Ceccato, and for GSoC 2025 I've been working on GPU-driven I/O using io_uring. This 8-week project focuses on developing a prototype of a printf-like interface for the GPU, backed by Shared Virtual Memory (SVM) to directly access the io_uring submission queue. Background LLVM libc for GPUs implements libc functions that run natively on GPUs (e.g. math and printf routines). However, some operations rely on system calls, like printf(), which is done via a remote procedure call (RPC) to the CPU, like the image below shows. This approach uses a mailbox that is read by a user-level polling thread and transfer data through a shared buffer. This current implementation saturates at around 15MB/s, well below the PCIe bus speed. Our project explores io_uring to allow GPU-initiated I/O. io_uring is a Linux feature that lets the user register a submission queue for asynchronous and batched I/O operations. As the image below shows, we explore the concept of using a SVM region for the submission queue, and pass it to the GPU using a helper function that handles the print operation. What We Did We built a prototype that allows the GPU to deliver a print message using io_uring, eliminating the need to hop through a shared mailbox and a user-level polling thread. Instead, the GPU writes directly into the io_uring submission queue, which is backed by fine-grained SVM memory allocated through the HSA API. We validated the feasibility of this setup by testing whether SVM pointers could be safely passed to io_uring, and confirmed that the kernel polling thread could process submissions written entirely from GPU code. A simple print function was implemented to format messages on the device and enqueue them to the ring. We tested the system in two modes: using synchronous io_uring flushes where the CPU manually checked completions, and using kernel-level polling where no active host thread is needed. These tests confirmed not only that the GPU could issu