[libc-commits] [libc] [libc] Export the RPC interface from `libc` (PR #71432)

via libc-commits libc-commits at lists.llvm.org
Mon Nov 6 14:06:29 PST 2023


================
@@ -0,0 +1,26 @@
+//===---------- GPU implementation of the external RPC port interface -----===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+#include "src/gpu/rpc_open_port.h"
+
+#include "src/__support/CPP/bit.h"
+#include "src/__support/GPU/utils.h"
+#include "src/__support/RPC/rpc_client.h"
+#include "src/__support/common.h"
+
+namespace LIBC_NAMESPACE {
+
+static_assert(sizeof(rpc_port_t) == sizeof(rpc::Client::Port), "ABI mismatch");
----------------
michaelrj-google wrote:

would it make sense to have these checks in a more centralized place? Maybe in `rpc_client.h`?

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


More information about the libc-commits mailing list