[all-commits] [llvm/llvm-project] ca10bc: [libc] Implement the 'nanosleep' function on the GPU

Joseph Huber via All-commits all-commits at lists.llvm.org
Wed Aug 30 16:35:16 PDT 2023


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

  Changed paths:
    M libc/config/gpu/api.td
    M libc/config/gpu/entrypoints.txt
    M libc/docs/gpu/support.rst
    M libc/src/time/CMakeLists.txt
    M libc/src/time/gpu/CMakeLists.txt
    A libc/src/time/gpu/nanosleep.cpp
    M libc/src/time/linux/CMakeLists.txt
    A libc/src/time/linux/nanosleep.cpp
    R libc/src/time/nanosleep.cpp
    M libc/test/src/time/CMakeLists.txt

  Log Message:
  -----------
  [libc] Implement the 'nanosleep' function on the GPU

The GPU has the ability to sleep for very short periods of time. We can
map this to the existing `nanosleep` utility. This patch maps the
nanosleep utility to the existing hardware instructions as best as
possible.

Depends on D159118

Reviewed By: JonChesterfield, sivachandra

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




More information about the All-commits mailing list