std::string host;
int port;
if (!parse_endpoint(endpoint, host, port)) {
+ GGML_LOG_ERROR("Failed to parse endpoint: %s\n", endpoint.c_str());
return nullptr;
}
#ifdef _WIN32
static uint32_t ggml_backend_rpc_get_device_count(const char * endpoint) {
auto sock = get_socket(endpoint);
+ if (sock == nullptr) {
+ GGML_LOG_ERROR("Failed to connect to %s\n", endpoint);
+ return 0;
+ }
rpc_msg_device_count_rsp response;
bool status = send_rpc_cmd(sock, RPC_CMD_DEVICE_COUNT, nullptr, 0, &response, sizeof(response));
RPC_STATUS_ASSERT(status);