[libc-commits] [PATCH] D157622: [libc] Implement fopen, fclose, and fread on the GPU
Joseph Huber via Phabricator via libc-commits
libc-commits at lists.llvm.org
Thu Aug 10 07:49:03 PDT 2023
jhuber6 created this revision.
jhuber6 added reviewers: sivachandra, lntue, michaelrj, jdoerfert, tianshilei1992, JonChesterfield.
Herald added projects: libc-project, All.
Herald added a subscriber: libc-commits.
jhuber6 requested review of this revision.
This patch implements the `fopen`, `fclose`, and `fread` functions on
the GPU. These are pretty much re-implemented from what existed but
using the new interface. Having this subset allows us to test the
interface a bit more strenuously since we can write and read to a file.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D157622
Files:
libc/config/gpu/entrypoints.txt
libc/docs/gpu/support.rst
libc/src/stdio/CMakeLists.txt
libc/src/stdio/fclose.cpp
libc/src/stdio/fopen.cpp
libc/src/stdio/fread.cpp
libc/src/stdio/fread_unlocked.cpp
libc/src/stdio/generic/CMakeLists.txt
libc/src/stdio/generic/fclose.cpp
libc/src/stdio/generic/fopen.cpp
libc/src/stdio/generic/fread.cpp
libc/src/stdio/generic/fread_unlocked.cpp
libc/src/stdio/gpu/CMakeLists.txt
libc/src/stdio/gpu/fclose.cpp
libc/src/stdio/gpu/file.h
libc/src/stdio/gpu/fopen.cpp
libc/src/stdio/gpu/fread.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D157622.549042.patch
Type: text/x-patch
Size: 11452 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20230810/2793e687/attachment-0001.bin>
More information about the libc-commits
mailing list