[libc-commits] [libc] [libc] Change the starting port index to use the SMID (PR #79200)

Joseph Huber via libc-commits libc-commits at lists.llvm.org
Tue Jan 23 13:19:41 PST 2024


================
@@ -57,7 +57,7 @@ template <uint32_t lane_size = gpu::LANE_SIZE> struct alignas(64) Packet {
 };
 
 /// The maximum number of parallel ports that the RPC interface can support.
-constexpr uint64_t MAX_PORT_COUNT = 512;
+constexpr uint64_t MAX_PORT_COUNT = 4096;
----------------
jhuber6 wrote:

I'm unsure if it's worthwhile to have such a thing. The only reason we define this in multiple places is because the original discussions with Siva indicated that we didn't want to simply provide access to the `rpc.h` header. So, the compromise was to define it twice and have a static assert in the impl to ensure they always match. I just can't imagine a situation where a user would want to set this manually (maybe save 128 bytes of GPU memory?) so it's probably best not to bloat the options.

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


More information about the libc-commits mailing list