"...git@developer.sourcefind.cn:renzhc/diffusers_dcu.git" did not exist on "922c5f5c3c2e887ac9832a9e460619005e0af8ae"
Unverified Commit 9d425315 authored by Rhett Ying's avatar Rhett Ying Committed by GitHub
Browse files

[Dist] enable USE_EPOLL in default (#4167)

* [Dist] enable USE_EPOLL in default

* fix build issue on windows

* fix build issue on windows

* fix build issue on windows

* fix build issue on windows

* fix build issue on windows

* fix build issue
parent d1f6f3a8
...@@ -35,7 +35,7 @@ dgl_option(LIBCXX_ENABLE_PARALLEL_ALGORITHMS "Enable the parallel algorithms lib ...@@ -35,7 +35,7 @@ dgl_option(LIBCXX_ENABLE_PARALLEL_ALGORITHMS "Enable the parallel algorithms lib
dgl_option(USE_S3 "Build with S3 support" OFF) dgl_option(USE_S3 "Build with S3 support" OFF)
dgl_option(USE_HDFS "Build with HDFS support" OFF) # Set env HADOOP_HDFS_HOME if needed dgl_option(USE_HDFS "Build with HDFS support" OFF) # Set env HADOOP_HDFS_HOME if needed
dgl_option(REBUILD_LIBXSMM "Clean LIBXSMM build cache at every build" OFF) # Set env HADOOP_HDFS_HOME if needed dgl_option(REBUILD_LIBXSMM "Clean LIBXSMM build cache at every build" OFF) # Set env HADOOP_HDFS_HOME if needed
dgl_option(USE_EPOLL "Build with epoll for socket communicator" OFF) dgl_option(USE_EPOLL "Build with epoll for socket communicator" ON)
dgl_option(TP_BUILD_LIBUV "Build libuv together with tensorpipe (only impacts Linux)" ON) dgl_option(TP_BUILD_LIBUV "Build libuv together with tensorpipe (only impacts Linux)" ON)
# Set debug compile option for gdb, only happens when -DCMAKE_BUILD_TYPE=DEBUG # Set debug compile option for gdb, only happens when -DCMAKE_BUILD_TYPE=DEBUG
...@@ -122,7 +122,8 @@ if(USE_AVX) ...@@ -122,7 +122,8 @@ if(USE_AVX)
endif(USE_LIBXSMM) endif(USE_LIBXSMM)
endif(USE_AVX) endif(USE_AVX)
if (USE_EPOLL) if ((NOT MSVC) AND USE_EPOLL)
INCLUDE(CheckIncludeFile)
check_include_file("sys/epoll.h" USE_EPOLL) check_include_file("sys/epoll.h" USE_EPOLL)
if (USE_EPOLL) if (USE_EPOLL)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DUSE_EPOLL") set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DUSE_EPOLL")
......
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