Unverified Commit 0c3a4428 authored by xiangyuzhi's avatar xiangyuzhi Committed by GitHub
Browse files

[Graphbolt] Add liburing dependency (#7149)


Co-authored-by: default avatarUbuntu <ubuntu@ip-172-31-40-250.ap-northeast-1.compute.internal>
parent 73e01d6d
...@@ -25,3 +25,6 @@ ...@@ -25,3 +25,6 @@
[submodule "third_party/cccl"] [submodule "third_party/cccl"]
path = third_party/cccl path = third_party/cccl
url = https://github.com/NVIDIA/cccl.git url = https://github.com/NVIDIA/cccl.git
[submodule "third_party/liburing"]
path = third_party/liburing
url = https://github.com/axboe/liburing.git
...@@ -349,7 +349,23 @@ endif(EXTERNAL_PHMAP_PATH) ...@@ -349,7 +349,23 @@ endif(EXTERNAL_PHMAP_PATH)
target_include_directories(dgl PRIVATE "tensoradapter/include") target_include_directories(dgl PRIVATE "tensoradapter/include")
target_include_directories(dgl PRIVATE "third_party/pcg/include") target_include_directories(dgl PRIVATE "third_party/pcg/include")
if(CMAKE_SYSTEM_NAME MATCHES "Linux")
include(ExternalProject)
set(LIBURING_INSTALL_DIR ${CMAKE_BINARY_DIR}/third_party/liburing)
ExternalProject_Add(
liburing
SOURCE_DIR ${CMAKE_SOURCE_DIR}/third_party/liburing
CONFIGURE_COMMAND <SOURCE_DIR>/configure --prefix=${LIBURING_INSTALL_DIR}
BUILD_COMMAND bash -c "make -j 4"
BUILD_IN_SOURCE ON
INSTALL_COMMAND make install DESTDIR=${LIBURING_INSTALL_DIR}
BUILD_BYPRODUCTS ${LIBURING_INSTALL_DIR}/lib/liburing.a
BUILD_BYPRODUCTS ${LIBURING_INSTALL_DIR}/include
DOWNLOAD_EXTRACT_TIMESTAMP true
)
set(LIBURING_INCLUDE ${LIBURING_INSTALL_DIR}/include)
set(LIBURING ${LIBURING_INSTALL_DIR}/lib/liburing.a)
endif()
if(EXTERNAL_NANOFLANN_PATH) if(EXTERNAL_NANOFLANN_PATH)
include_directories(SYSTEM ${EXTERNAL_NANOFLANN_PATH}) include_directories(SYSTEM ${EXTERNAL_NANOFLANN_PATH})
......
...@@ -92,3 +92,5 @@ if(DEFINED MKL_LIBRARIES) ...@@ -92,3 +92,5 @@ if(DEFINED MKL_LIBRARIES)
${MKL_ROOT}/lib/${MKL_ARCH}) ${MKL_ROOT}/lib/${MKL_ARCH})
endif() endif()
target_include_directories(${LIB_GRAPHBOLT_NAME} PRIVATE ${LIBURING_INCLUDE})
target_link_libraries(${LIB_GRAPHBOLT_NAME} ${LIBURING})
Subproject commit 2e64761a07bd437ca41071e9eeec9c64342060d8
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment