Skip to content

Commit 1388c96

Browse files
committed
add rpc backend
1 parent 8768c7c commit 1388c96

File tree

1 file changed

+5
-13
lines changed

1 file changed

+5
-13
lines changed

ggml/src/CMakeLists.txt

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -275,19 +275,6 @@ if (GGML_SYCL)
275275
endif()
276276
endif()
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-
291278
if (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)
823810
endif()
824811

812+
if (GGML_RPC)
813+
add_subdirectory(ggml-rpc)
814+
target_link_libraries(ggml PUBLIC ggml-rpc)
815+
endif()
816+
825817
if (EMSCRIPTEN)
826818
set_target_properties(ggml PROPERTIES COMPILE_FLAGS "-msimd128")
827819
endif()

0 commit comments

Comments
 (0)