File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66extern "C" {
77#endif
88
9- #define RPC_PROTO_MAJOR_VERSION 3
10- #define RPC_PROTO_MINOR_VERSION 6
11- #define RPC_PROTO_PATCH_VERSION 1
9+ #define RPC_PROTO_MAJOR_VERSION 4
10+ #define RPC_PROTO_MINOR_VERSION 0
11+ #define RPC_PROTO_PATCH_VERSION 0
1212
1313#ifdef __cplusplus
1414static_assert (GGML_OP_COUNT == 96 , "GGML_OP_COUNT has changed - update RPC_PROTO_PATCH_VERSION" );
Original file line number Diff line number Diff line change @@ -7,3 +7,26 @@ ggml_add_backend_library(ggml-rpc
77if (WIN32 )
88 target_link_libraries (ggml-rpc PRIVATE ws2_32 )
99endif ()
10+
11+ # RDMA auto-detection (Linux only, requires libibverbs)
12+ if (NOT WIN32 AND NOT APPLE )
13+ find_library (IBVERBS_LIB ibverbs )
14+ if (IBVERBS_LIB)
15+ option (GGML_RPC_RDMA "ggml: enable RDMA transport for RPC" ON )
16+ else ()
17+ option (GGML_RPC_RDMA "ggml: enable RDMA transport for RPC" OFF )
18+ endif ()
19+ else ()
20+ set (GGML_RPC_RDMA OFF CACHE BOOL "RDMA not available on this platform" FORCE )
21+ endif ()
22+
23+ if (GGML_RPC_RDMA)
24+ if (NOT IBVERBS_LIB)
25+ find_library (IBVERBS_LIB ibverbs REQUIRED )
26+ endif ()
27+ target_compile_definitions (ggml-rpc PRIVATE GGML_RPC_RDMA )
28+ target_link_libraries (ggml-rpc PRIVATE ${IBVERBS_LIB} )
29+ message (STATUS " RDMA transport enabled (auto-detected)" )
30+ else ()
31+ message (STATUS " RDMA transport disabled" )
32+ endif ()
You can’t perform that action at this time.
0 commit comments