diff --git a/libc/src/__support/OSUtil/gpu/io.cpp b/libc/src/__support/OSUtil/gpu/io.cpp index 0d8c9acc5211..eb074a479dea 100644 --- a/libc/src/__support/OSUtil/gpu/io.cpp +++ b/libc/src/__support/OSUtil/gpu/io.cpp @@ -15,7 +15,7 @@ namespace __llvm_libc { void write_to_stderr(cpp::string_view msg) { - rpc::Client::Port port = rpc::client.open(); + rpc::Client::Port port = rpc::client.open(); port.send_n(msg.data(), msg.size()); port.recv([](rpc::Buffer *) { /* void */ }); port.close(); diff --git a/libc/src/__support/RPC/rpc.h b/libc/src/__support/RPC/rpc.h index 8e8fbd586000..8be4e5dfb8ac 100644 --- a/libc/src/__support/RPC/rpc.h +++ b/libc/src/__support/RPC/rpc.h @@ -39,10 +39,9 @@ enum Opcode : uint16_t { WRITE_TO_STREAM = 4, MALLOC = 5, FREE = 6, - PRINT_TO_STDERR = 7, - TEST_INCREMENT = 8, - TEST_INTERFACE = 9, - TEST_STREAM = 10, + TEST_INCREMENT = 7, + TEST_INTERFACE = 8, + TEST_STREAM = 9, }; /// A fixed size channel used to communicate between the RPC client and server. diff --git a/libc/utils/gpu/loader/Server.h b/libc/utils/gpu/loader/Server.h index a2bce068407b..9286e55604c3 100644 --- a/libc/utils/gpu/loader/Server.h +++ b/libc/utils/gpu/loader/Server.h @@ -58,19 +58,6 @@ void handle_server(Alloc allocator, Dealloc deallocator) { } break; } - case rpc::Opcode::PRINT_TO_STDERR: { - uint64_t sizes[rpc::MAX_LANE_SIZE] = {0}; - void *strs[rpc::MAX_LANE_SIZE] = {nullptr}; - port->recv_n(strs, sizes, [&](uint64_t size) { return new char[size]; }); - port->send([](rpc::Buffer *) { /* void */ }); - for (uint64_t i = 0; i < rpc::MAX_LANE_SIZE; ++i) { - if (strs[i]) { - fwrite(strs[i], sizes[i], 1, stderr); - delete[] reinterpret_cast(strs[i]); - } - } - break; - } case rpc::Opcode::EXIT: { port->recv([](rpc::Buffer *buffer) { exit(reinterpret_cast(buffer->data)[0]);