[libc-commits] [libc] [libc] Rework the RPC interface to accept runtime wave sizes (PR #80914)

Matt Arsenault via libc-commits libc-commits at lists.llvm.org
Tue Feb 6 20:59:57 PST 2024


================
@@ -351,15 +361,24 @@ struct Client {
   LIBC_INLINE Client(uint32_t port_count, void *buffer)
       : process(port_count, buffer) {}
 
-  using Port = rpc::Port<false, Packet<gpu::LANE_SIZE>>;
+#if defined(LIBC_TARGET_ARCH_IS_AMDGPU)
+  // The AMDGPU wavefront size is only known at runtime. We indicate this to the
+  // process using a value of UINT32_MAX.
----------------
arsenm wrote:

this isn't really accurate. it's known at compile time of the kernel 

https://github.com/llvm/llvm-project/pull/80914


More information about the libc-commits mailing list