How ankusht369/wiregpu works
wireGPU is a lightweight CUDA-over-IP bridge. Its intended workflow is a CUDA caller entering exported API hooks, sending a request to a remote server, and having the server receive and inspect it. The sampled code shows an important gap: only cuInit opens a TCP connection, and it sends a text line, while the server expects a binary WgPacket. Other exported CUDA calls currently return placeholder values locally. The protocol defines GPU event IDs and argument encoding, but no GPU execution or response handling is shown. The sampled evidence does not establish a functioning end-to-end workload path.
Main entry points: src/lib.rs CUDA API hooks · src/lib.rs Packet receive and decode · main.rs TCP listener
Components 7
Client API
- CUDA API hooks
libwgpu/src/lib.rs - cuInit TCP call
libwgpu/src/lib.rs - Local API stubs
libwgpu/src/lib.rs
Wire Protocol
- Packet receive and decode
protocol/src/lib.rs - GPU event and argument format
protocol/src/lib.rs
Remote Server
- TCP listener
wiregpu/src/main.rs
Other components
- CUDA caller
Connections 6
- CUDA caller → CUDA API hooks: calls exports
- CUDA API hooks → cuInit TCP call: routes cuInit
libwgpu/src/lib.rs - CUDA API hooks → Local API stubs: returns placeholders
libwgpu/src/lib.rs - cuInit TCP call → TCP listener: connects TCP
libwgpu/src/lib.rs - TCP listener → Packet receive and decode: receives packet
wiregpu/src/main.rs - Packet receive and decode → GPU event and argument format: decodes header
protocol/src/lib.rs