[libc-commits] [PATCH] D154519: [libc] Support fopen / fclose on the GPU
Joseph Huber via Phabricator via libc-commits
libc-commits at lists.llvm.org
Wed Jul 5 09:12:23 PDT 2023
jhuber6 created this revision.
jhuber6 added reviewers: JonChesterfield, sivachandra, lntue, michaelrj.
Herald added projects: libc-project, All.
Herald added a subscriber: libc-commits.
jhuber6 requested review of this revision.
This patch adds the necessary support for the fopen and fclose functions
to work on the GPU via RPC. I added a new test that enables testing this
with the minimal features we have on the GPU. I will update it once we
have `fread` and `fwrite` to actually check the outputted strings. For
now I just relied on checking manually via the outpuot temp file.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D154519
Files:
libc/config/gpu/entrypoints.txt
libc/include/llvm-libc-types/rpc_opcodes_t.h
libc/src/__support/File/gpu/file.cpp
libc/test/src/stdio/CMakeLists.txt
libc/test/src/stdio/fopen_test.cpp
libc/utils/gpu/server/rpc_server.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D154519.537387.patch
Type: text/x-patch
Size: 6205 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20230705/d7b60b65/attachment.bin>
More information about the libc-commits
mailing list