[all-commits] [llvm/llvm-project] c850ea: [libc] Support fopen / fclose on the GPU

Joseph Huber via All-commits all-commits at lists.llvm.org
Wed Jul 5 16:32:17 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c850ea1498733d4f54d501d56157270d83a4244c
      https://github.com/llvm/llvm-project/commit/c850ea1498733d4f54d501d56157270d83a4244c
  Author: Joseph Huber <jhuber6 at vols.utk.edu>
  Date:   2023-07-05 (Wed, 05 Jul 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/__support/File/gpu/file.cpp
    M libc/test/src/stdio/CMakeLists.txt
    A libc/test/src/stdio/fopen_test.cpp
    M libc/utils/gpu/server/rpc_server.cpp

  Log Message:
  -----------
  [libc] Support fopen / fclose on the GPU

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.

Reviewed By: JonChesterfield, sivachandra

Differential Revision: https://reviews.llvm.org/D154519




More information about the All-commits mailing list