[all-commits] [llvm/llvm-project] 182e5a: [libc] Check the RPC server once again after the k...

Joseph Huber via All-commits all-commits at lists.llvm.org
Fri May 12 10:49:34 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 182e5acb1172fe4c3effe518d2dac3bc3972dd09
      https://github.com/llvm/llvm-project/commit/182e5acb1172fe4c3effe518d2dac3bc3972dd09
  Author: Joseph Huber <jhuber6 at vols.utk.edu>
  Date:   2023-05-12 (Fri, 12 May 2023)

  Changed paths:
    M libc/utils/gpu/loader/amdgpu/Loader.cpp
    M libc/utils/gpu/loader/nvptx/Loader.cpp

  Log Message:
  -----------
  [libc] Check the RPC server once again after the kernel exits

We support asynchronous sends, that means that the kernel can issue a
send, then exit the kernel as we do with the `EXIT` syscall. Because of
the condition it's therefore possible for the kernel to exit and break
from the loop before we check the server again. This can potentially
cause us to ignore an `EXIT` call from the GPU.

Reviewed By: JonChesterfield, lntue

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




More information about the All-commits mailing list