mirror of
https://github.com/ikawrakow/ik_llama.cpp.git
synced 2026-06-28 04:30:15 -05:00
fix: initialize rpc_device endpoint and device index before parsing
This commit is contained in:
parent
5f917a64b3
commit
053202f97a
@ -176,6 +176,8 @@ static std::vector<rpc_device> extract_device_from_rpc_device(std::vector<std::
|
||||
std::vector<rpc_device> rpc_servers;
|
||||
for (auto & device : devices) {
|
||||
rpc_device rpc;
|
||||
rpc.device = 0;
|
||||
rpc.endpoint = device;
|
||||
auto value = string_split(device, "|");
|
||||
if (value.size() == 2) {
|
||||
rpc.device = std::stoi(value[1]);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user