[libc-commits] [PATCH] D147238: [libc] Support suspending threads during RPC spin loops

Joseph Huber via Phabricator via libc-commits libc-commits at lists.llvm.org
Thu Mar 30 08:04:23 PDT 2023


jhuber6 added a comment.

In D147238#4233699 <https://reviews.llvm.org/D147238#4233699>, @tianshilei1992 wrote:

> It looks like the two platforms are using different sleep duration? Other than that, LGTM.

The documentation is a little different. The AMDGCN implementation states that a value of `2` will sleep between 64 and 128 cycles so assuming a 2 GHz clock it'll sleep ~60 ns in the worst case. These numbers are just guesses, we could probably refine them. I think PCI(e) atomic access is in the order of microseconds.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D147238/new/

https://reviews.llvm.org/D147238



More information about the libc-commits mailing list