"...text-generation-inference.git" did not exist on "e6bb3ff81fd670ad2f54904676f8165367dd47f8"
Unverified Commit f7fef600 authored by Hongzhi (Steve), Chen's avatar Hongzhi (Steve), Chen Committed by GitHub
Browse files

[Misc] Support build option: "all". (#6102)


Co-authored-by: default avatarUbuntu <ubuntu@ip-172-31-28-63.ap-northeast-1.compute.internal>
parent 7b308dc6
...@@ -47,33 +47,33 @@ else() ...@@ -47,33 +47,33 @@ else()
python3 python3
) )
# Options for building DGL features. # Options for building DGL features, supported: "none", "dev", "test", "release", "all".
# NOTE: do not modify this file to change option values. # NOTE: do not modify this file to change option values.
# Use bash script/build_dgl.sh -e '-DFEATURE_NAME=ON/OFF' through command-line. # Use bash script/build_dgl.sh -e '-DFEATURE_NAME=ON/OFF' through command-line.
dgl_feature_option( dgl_feature_option(
BUILD_SPARSE BUILD_SPARSE
"Build DGL sparse library" "Build DGL sparse library"
"dev" "test" "release" "all"
) )
dgl_feature_option( dgl_feature_option(
BUILD_TORCH BUILD_TORCH
"Build the PyTorch plugin" "Build the PyTorch plugin"
"dev" "test" "release" "all"
) )
dgl_feature_option( dgl_feature_option(
USE_EPOLL USE_EPOLL
"Build with epoll for socket communicator" "Build with epoll for socket communicator"
"dev" "test" "release" "all"
) )
dgl_feature_option( dgl_feature_option(
USE_LIBXSMM USE_LIBXSMM
"Build with LIBXSMM library optimization" "Build with LIBXSMM library optimization"
"dev" "test" "release" "all"
) )
dgl_feature_option( dgl_feature_option(
USE_OPENMP USE_OPENMP
"Build with OpenMP" "Build with OpenMP"
"dev" "test" "release" "all"
) )
dgl_feature_option( dgl_feature_option(
......
...@@ -11,7 +11,9 @@ endmacro() ...@@ -11,7 +11,9 @@ endmacro()
macro(dgl_feature_option variable description) macro(dgl_feature_option variable description)
set(__value "") set(__value "")
foreach(arg ${ARGN}) foreach(arg ${ARGN})
if(arg STREQUAL "dev" OR arg STREQUAL "test" OR arg STREQUAL "release") if(arg STREQUAL "all")
__dgl_option(${variable} "${description}" ON)
elseif(arg STREQUAL "dev" OR arg STREQUAL "test" OR arg STREQUAL "release")
list(APPEND __value ${arg}) list(APPEND __value ${arg})
endif() endif()
endforeach() endforeach()
......
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