[libc-commits] [libc] [libc] Rework the RPC interface to accept runtime wave sizes (PR #80914)
Joseph Huber via libc-commits
libc-commits at lists.llvm.org
Wed Feb 7 05:13:31 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.
----------------
jhuber6 wrote:
Compile time has a slightly different meaning in terms of C++, it more or less means it's not `constexpr`. However, it's definitely not correct to say it's a runtime value.
https://github.com/llvm/llvm-project/pull/80914
More information about the libc-commits
mailing list