//===-------------- GPU implementation of IO utils --------------*- C++ -*-===// // // 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 "io.h" #include "src/__support/CPP/string_view.h" #include "src/__support/RPC/rpc_client.h" #include "src/string/memory_utils/memcpy_implementations.h" namespace __llvm_libc { void write_to_stderr(cpp::string_view msg) { rpc::Client::Port port = rpc::client.open(); port.send_n(msg.data(), msg.size()); port.close(); } } // namespace __llvm_libc