add rpc backend
This commit is contained in:
parent
8768c7c45a
commit
bf79cb3972
2 changed files with 18 additions and 13 deletions
|
@ -275,19 +275,6 @@ if (GGML_SYCL)
|
|||
endif()
|
||||
endif()
|
||||
|
||||
if (GGML_RPC)
|
||||
message(STATUS "RPC found")
|
||||
|
||||
list(APPEND GGML_CDEF_PUBLIC GGML_USE_RPC)
|
||||
|
||||
if (WIN32)
|
||||
list(APPEND GGML_EXTRA_LIBS_PRIVATE ws2_32)
|
||||
endif()
|
||||
|
||||
set(GGML_HEADERS_RPC ../include/ggml-rpc.h)
|
||||
set(GGML_SOURCES_RPC ggml-rpc.cpp)
|
||||
endif()
|
||||
|
||||
if (GGML_VULKAN)
|
||||
find_package(Vulkan COMPONENTS glslc REQUIRED)
|
||||
|
||||
|
@ -822,6 +809,11 @@ if (GGML_BLAS)
|
|||
target_link_libraries(ggml PUBLIC ggml-blas)
|
||||
endif()
|
||||
|
||||
if (GGML_RPC)
|
||||
add_subdirectory(ggml-rpc)
|
||||
target_link_libraries(ggml PUBLIC ggml-rpc)
|
||||
endif()
|
||||
|
||||
if (EMSCRIPTEN)
|
||||
set_target_properties(ggml PROPERTIES COMPILE_FLAGS "-msimd128")
|
||||
endif()
|
||||
|
|
13
ggml/src/ggml-rpc/CMakeLists.txt
Normal file
13
ggml/src/ggml-rpc/CMakeLists.txt
Normal file
|
@ -0,0 +1,13 @@
|
|||
message(STATUS "Using RPC backend")
|
||||
|
||||
set(GGML_CDEF_PUBLIC ${GGML_CDEF_PUBLIC} GGML_USE_RPC PARENT_SCOPE)
|
||||
|
||||
add_library(ggml-rpc
|
||||
ggml-rpc.cpp)
|
||||
|
||||
target_link_libraries(ggml-rpc PRIVATE ggml-base)
|
||||
target_include_directories(ggml-rpc PRIVATE . ..)
|
||||
|
||||
if (WIN32)
|
||||
target_link_libraries(ggml-rpc PRIVATE ws2_32)
|
||||
endif()
|
Loading…
Add table
Add a link
Reference in a new issue