File tree Expand file tree Collapse file tree 2 files changed +18
-13
lines changed Expand file tree Collapse file tree 2 files changed +18
-13
lines changed Original file line number Diff line number Diff line change @@ -275,19 +275,6 @@ if (GGML_SYCL)
275275 endif ()
276276endif ()
277277
278- if (GGML_RPC)
279- message (STATUS "RPC found" )
280-
281- list (APPEND GGML_CDEF_PUBLIC GGML_USE_RPC)
282-
283- if (WIN32 )
284- list (APPEND GGML_EXTRA_LIBS_PRIVATE ws2_32)
285- endif ()
286-
287- set (GGML_HEADERS_RPC ../include /ggml-rpc.h)
288- set (GGML_SOURCES_RPC ggml-rpc.cpp)
289- endif ()
290-
291278if (GGML_VULKAN)
292279 find_package (Vulkan COMPONENTS glslc REQUIRED)
293280
@@ -822,6 +809,11 @@ if (GGML_BLAS)
822809 target_link_libraries (ggml PUBLIC ggml-blas)
823810endif ()
824811
812+ if (GGML_RPC)
813+ add_subdirectory (ggml-rpc)
814+ target_link_libraries (ggml PUBLIC ggml-rpc)
815+ endif ()
816+
825817if (EMSCRIPTEN)
826818 set_target_properties (ggml PROPERTIES COMPILE_FLAGS "-msimd128" )
827819endif ()
Original file line number Diff line number Diff line change 1+ message (STATUS "Using RPC backend" )
2+
3+ set (GGML_CDEF_PUBLIC ${GGML_CDEF_PUBLIC} GGML_USE_RPC PARENT_SCOPE)
4+
5+ add_library (ggml-rpc
6+ ggml-rpc.cpp)
7+
8+ target_link_libraries (ggml-rpc PRIVATE ggml-base)
9+ target_include_directories (ggml-rpc PRIVATE . ..)
10+
11+ if (WIN32 )
12+ target_link_libraries (ggml-rpc PRIVATE ws2_32)
13+ endif ()
You can’t perform that action at this time.
0 commit comments