[all-commits] [llvm/llvm-project] 7ac8e2: [libc] Implement `fseek`, `fflush`, and `ftell` on...
Joseph Huber via All-commits
all-commits at lists.llvm.org
Tue Sep 26 07:46:59 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 7ac8e26fc7985c7b7a8e7f7ffd09984b12433cc2
https://github.com/llvm/llvm-project/commit/7ac8e26fc7985c7b7a8e7f7ffd09984b12433cc2
Author: Joseph Huber <35342157+jhuber6 at users.noreply.github.com>
Date: 2023-09-26 (Tue, 26 Sep 2023)
Changed paths:
M libc/config/gpu/entrypoints.txt
M libc/docs/gpu/support.rst
M libc/include/llvm-libc-types/rpc_opcodes_t.h
M libc/src/stdio/CMakeLists.txt
R libc/src/stdio/fflush.cpp
R libc/src/stdio/fseek.cpp
R libc/src/stdio/ftell.cpp
M libc/src/stdio/generic/CMakeLists.txt
A libc/src/stdio/generic/fflush.cpp
A libc/src/stdio/generic/fseek.cpp
A libc/src/stdio/generic/ftell.cpp
M libc/src/stdio/gpu/CMakeLists.txt
A libc/src/stdio/gpu/fflush.cpp
A libc/src/stdio/gpu/fseek.cpp
A libc/src/stdio/gpu/ftell.cpp
M libc/utils/gpu/server/rpc_server.cpp
Log Message:
-----------
[libc] Implement `fseek`, `fflush`, and `ftell` on the GPU (#67160)
Summary:
This patch adds the necessary entrypoints to handle the `fseek`,
`fflush`, and `ftell` functions. These are all very straightfoward, we
simply make RPC calls to the associated function on the other end.
Implementing it this way allows us to more or less borrow the state of
the stream from the server as we intentionally maintain no internal
state on the GPU device. However, this does not implement the `errno`
functinality so that must be ignored.
More information about the All-commits
mailing list