代码拉取完成,页面将自动刷新
同步操作将从 anolis/Fuyao 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
cmake_minimum_required(VERSION 3.16)
project(Fuyao)
set(CMAKE_CXX_STANDARD 17)
set(BASE_DIR ${CMAKE_CURRENT_SOURCE_DIR})
# add_compile_options(-D__DEBUG)
add_compile_options(-D__ENABLE_RDMA)
# enable build library
set(PYTHON_LIBRARY_BUILD OFF)
set(CPP_LIBRARY_BUILD ON)
# header
include_directories(${BASE_DIR}/lib)
include_directories(${BASE_DIR}/src)
add_compile_options(-fPIC)
add_compile_options(-fexceptions)
# deps
add_subdirectory(${BASE_DIR}/deps/abseil-cpp abseil)
add_subdirectory(${BASE_DIR}/deps/fmt fmt)
add_subdirectory(${BASE_DIR}/deps/GSL gsl)
add_subdirectory(${BASE_DIR}/deps/json json)
add_subdirectory(${BASE_DIR}/deps/libuv libuv)
add_subdirectory(${BASE_DIR}/deps/nghttp2 nghttp2)
# rdma verbs
set(ENV{PKG_CONFIG_PATH} /usr/lib/x86_64-linux-gnu/pkgconfig)
set(ENV{PKG_CONFIG_EXECUTABLE} /usr/bin/pkg-config)
find_package(PkgConfig REQUIRED)
pkg_check_modules(LIBIBVERBS REQUIRED IMPORTED_TARGET libibverbs)
# dpu submodule
add_subdirectory(${BASE_DIR}/src/dpu/gateway gateway)
add_subdirectory(${BASE_DIR}/src/dpu/agent agent)
# host submodule
add_subdirectory(${BASE_DIR}/src/host/engine engine)
add_subdirectory(${BASE_DIR}/src/host/launcher launcher)
# cpp runtime library
if (CPP_LIBRARY_BUILD)
set(FUNC_WORKER_CPP_LIBRARIES_NAME worker_cpp)
add_subdirectory(${BASE_DIR}/src/host/worker/cpp/ worker_cpp)
endif ()
# python runtime library
if (PYTHON_LIBRARY_BUILD)
add_subdirectory(${BASE_DIR}/deps/pybind11 pybind11)
# Replace it based on the actual situation
set(PYTHON_INCLUDE_DIR /usr/include/python3.8)
set(LIBRARY_OUTPUT_PATH ${BASE_DIR}/src/host/worker/python/faas)
set(FUNC_WORKER_PYTHON_OUTPUT_NAME _faas_native)
add_subdirectory(${BASE_DIR}/src/host/worker/python/ worker_python)
endif ()
# examples
add_subdirectory(${BASE_DIR}/examples examples)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。