[all-commits] [llvm/llvm-project] 1e573f: [libc] Implement fopen, fclose, and fread on the GPU

Joseph Huber via All-commits all-commits at lists.llvm.org
Wed Aug 16 07:14:55 PDT 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1e573f378c52c69231a4e0fc3d06af3aaaedf5b8
  Author: Joseph Huber <jhuber6 at vols.utk.edu>
  Date:   2023-08-16 (Wed, 16 Aug 2023)

  Changed paths:
    M libc/config/gpu/entrypoints.txt
    M libc/docs/gpu/support.rst
    M libc/src/stdio/CMakeLists.txt
    R libc/src/stdio/fclose.cpp
    R libc/src/stdio/fopen.cpp
    R libc/src/stdio/fread.cpp
    R libc/src/stdio/fread_unlocked.cpp
    M libc/src/stdio/generic/CMakeLists.txt
    A libc/src/stdio/generic/fclose.cpp
    A libc/src/stdio/generic/fopen.cpp
    A libc/src/stdio/generic/fread.cpp
    A libc/src/stdio/generic/fread_unlocked.cpp
    M libc/src/stdio/gpu/CMakeLists.txt
    A libc/src/stdio/gpu/fclose.cpp
    M libc/src/stdio/gpu/file.h
    A libc/src/stdio/gpu/fopen.cpp
    A libc/src/stdio/gpu/fread.cpp

  Log Message:
  [libc] Implement fopen, fclose, and fread on the GPU

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.

Reviewed By: sivachandra

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

More information about the All-commits mailing list