File tree Expand file tree Collapse file tree 7 files changed +21
-7
lines changed Expand file tree Collapse file tree 7 files changed +21
-7
lines changed Original file line number Diff line number Diff line change @@ -97,6 +97,9 @@ if ("${CMAKE_RAY_LANG_PYTHON}" STREQUAL "YES")
97
97
add_custom_target (copy_ray ALL
98
98
DEPENDS ${build_ray_file_list} )
99
99
100
+ # Make sure redis-server is ready before copying.
101
+ add_dependencies (copy_ray copy_redis)
102
+
100
103
# Make sure that the Python extensions are built before copying the files.
101
104
if ("${CMAKE_RAY_LANG_PYTHON} " STREQUAL "YES" )
102
105
get_local_scheduler_library("python" LOCAL_SCHEDULER_LIBRARY_LANG)
Original file line number Diff line number Diff line change @@ -7,4 +7,8 @@ include(${CMAKE_CURRENT_LIST_DIR}/../common/cmake/Common.cmake)
7
7
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror -Wall" )
8
8
9
9
add_executable (global_scheduler global_scheduler.cc global_scheduler_algorithm.cc)
10
+
11
+ # Make sure ${HIREDIS_LIB} is ready before linking.
12
+ add_dependencies (global_scheduler hiredis)
13
+
10
14
target_link_libraries (global_scheduler common ${HIREDIS_LIB} ray_static ${PLASMA_STATIC_LIB} ${ARROW_STATIC_LIB} ${Boost_SYSTEM_LIBRARY} pthread)
Original file line number Diff line number Diff line change @@ -61,7 +61,8 @@ add_dependencies(gen_local_scheduler_fbs flatbuffers_ep)
61
61
62
62
add_library (local_scheduler_client STATIC local_scheduler_client.cc)
63
63
64
- add_dependencies (local_scheduler_client gen_local_scheduler_fbs)
64
+ # local_scheduler_shared.h includes ray/gcs/client.h which requires gen_gcs_fbs & gen_node_manager_fbs.
65
+ add_dependencies (local_scheduler_client gen_local_scheduler_fbs ${COMMON_FBS_OUTPUT_FILES} gen_gcs_fbs gen_node_manager_fbs)
65
66
66
67
add_executable (local_scheduler local_scheduler.cc local_scheduler_algorithm.cc)
67
68
target_link_libraries (local_scheduler local_scheduler_client common ${HIREDIS_LIB} ${PLASMA_STATIC_LIB} ray_static ${ARROW_STATIC_LIB} -lpthread ${Boost_SYSTEM_LIBRARY} )
Original file line number Diff line number Diff line change @@ -77,6 +77,8 @@ install(
77
77
78
78
ADD_RAY_LIB(ray
79
79
SOURCES ${RAY_SRCS} ${AE_SRCS} ${HIREDIS_SRCS} ${UTIL_SRCS}
80
- DEPENDENCIES gen_gcs_fbs gen_object_manager_fbs gen_node_manager_fbs gen_local_scheduler_fbs
80
+ # TODO: When raylet replaces the old backend, please remove the dependency gen_local_scheduler_fbs.
81
+ # TODO: When remove the included Task.h from table.h, please remove the dependency gen_common_python_fbs.
82
+ DEPENDENCIES gen_gcs_fbs gen_object_manager_fbs gen_node_manager_fbs gen_local_scheduler_fbs ${COMMON_FBS_OUTPUT_FILES}
81
83
SHARED_LINK_LIBS ""
82
84
STATIC_LINK_LIBS ${PLASMA_STATIC_LIB} ${ARROW_STATIC_LIB} )
Original file line number Diff line number Diff line change 15
15
#include " ray/raylet/format/node_manager_generated.h"
16
16
17
17
// TODO(pcm): Remove this
18
+ // TODO: While removing "task.h", remove the dependency gen_common_python_fbs
19
+ // from src/ray/CMakeLists.txt.
18
20
#include " task.h"
19
21
20
22
struct redisAsyncContext ;
Original file line number Diff line number Diff line change 1
1
#include " ray/raylet/node_manager.h"
2
2
3
3
#include " common_protocol.h"
4
+ // TODO: While removing "local_scheduler_generated.h", remove the dependency
5
+ // gen_local_scheduler_fbs from src/ray/CMakeLists.txt.
4
6
#include " local_scheduler/format/local_scheduler_generated.h"
5
7
#include " ray/raylet/format/node_manager_generated.h"
6
8
#include " ray/util/util.h"
Original file line number Diff line number Diff line change @@ -26,6 +26,11 @@ echo "Build language is $LANGUAGE."
26
26
27
27
unamestr=" $( uname) "
28
28
29
+ # #############################################
30
+ # boost
31
+ # #############################################
32
+ bash " $TP_SCRIPT_DIR /build_boost.sh"
33
+
29
34
# #############################################
30
35
# redis
31
36
# #############################################
@@ -36,11 +41,6 @@ bash "$TP_SCRIPT_DIR/build_redis.sh"
36
41
# #############################################
37
42
bash " $TP_SCRIPT_DIR /build_credis.sh"
38
43
39
- # #############################################
40
- # boost
41
- # #############################################
42
- bash " $TP_SCRIPT_DIR /build_boost.sh"
43
-
44
44
# #############################################
45
45
# flatbuffers if necessary
46
46
# #############################################
You can’t perform that action at this time.
0 commit comments