Skip to content

Commit 172c825

Browse files
authored
rpc : fix ggml_backend_rpc_supports_buft() (#7918)
1 parent a55eb1b commit 172c825

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ggml-rpc.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -624,12 +624,12 @@ GGML_CALL static enum ggml_status ggml_backend_rpc_graph_compute(ggml_backend_t
624624
GGML_CALL static bool ggml_backend_rpc_supports_op(ggml_backend_t backend, const ggml_tensor * op) {
625625
UNUSED(backend);
626626
UNUSED(op);
627-
GGML_ASSERT(false && "not implemented");
628-
return false;
627+
//TODO: call the remote backend and cache the results
628+
return true;
629629
}
630630

631631
GGML_CALL static bool ggml_backend_rpc_supports_buft(ggml_backend_t backend, ggml_backend_buffer_type_t buft) {
632-
if (buft->iface.get_name == ggml_backend_rpc_buffer_type_name) {
632+
if (buft->iface.get_name != ggml_backend_rpc_buffer_type_name) {
633633
return false;
634634
}
635635
ggml_backend_rpc_buffer_type_context * buft_ctx = (ggml_backend_rpc_buffer_type_context *)buft->context;

0 commit comments

Comments
 (0)