[libc-commits] [PATCH] D150379: [libc] Implement a generic streaming interface in the RPC

Joseph Huber via Phabricator via libc-commits libc-commits at lists.llvm.org
Thu May 11 09:13:24 PDT 2023


jhuber6 created this revision.
jhuber6 added reviewers: JonChesterfield, sivachandra, lntue, michaelrj, jdoerfert, tianshilei1992.
Herald added subscribers: libc-commits, ecnelises, tschuett.
Herald added projects: libc-project, All.
jhuber6 requested review of this revision.

Currently we provide the `send_n` and `recv_n` functions. These were
somewhat divergent and not tested on the GPU. This patch changes the
support to be more common. We do this my making the CPU provide an array
equal the to at least the lane size while the GPU can rely on the
private memory address of its stack variables. This allows us to send
data back and forth generically.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D150379

Files:
  libc/src/__support/RPC/rpc.h
  libc/src/__support/RPC/rpc_util.h
  libc/test/integration/startup/gpu/CMakeLists.txt
  libc/test/integration/startup/gpu/rpc_stream_test.cpp
  libc/utils/gpu/loader/Server.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D150379.521342.patch
Type: text/x-patch
Size: 10955 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20230511/7ab653dd/attachment-0001.bin>


More information about the libc-commits mailing list