File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ cc_library(lod_rank_table SRCS lod_rank_table.cc DEPS lod_tensor)
84
84
cc_library (feed_fetch_method SRCS feed_fetch_method.cc DEPS lod_tensor scope glog )
85
85
86
86
if (WITH_DISTRIBUTE )
87
- cc_library (executor SRCS executor.cc DEPS op_registry device_context scope framework_proto glog lod_rank_table feed_fetch_method sendrecvop_grpc grpc++_unsecure grpc_unsecure gpr )
87
+ cc_library (executor SRCS executor.cc DEPS op_registry device_context scope framework_proto glog lod_rank_table feed_fetch_method sendrecvop_grpc cares grpc++_unsecure grpc_unsecure gpr )
88
88
set (DISTRIBUTE_COMPILE_FLAGS "-Wno-non-virtual-dtor -Wno-error=non-virtual-dtor -Wno-error=delete-non-virtual-dtor" )
89
89
set_source_files_properties (executor.cc PROPERTIES COMPILE_FLAGS ${DISTRIBUTE_COMPILE_FLAGS} )
90
90
else ()
Original file line number Diff line number Diff line change @@ -59,9 +59,10 @@ inline size_t CpuTotalPhysicalMemory() {
59
59
size_t CpuMaxAllocSize () {
60
60
// For distributed systems, it requires configuring and limiting
61
61
// the fraction of memory to use.
62
- return std::min (static_cast <size_t >(FLAGS_fraction_of_cpu_memory_to_use *
63
- CpuTotalPhysicalMemory ()),
64
- FLAGS_initial_cpu_memory_in_mb * 1 << 20 );
62
+ return std::min (
63
+ static_cast <size_t >(FLAGS_fraction_of_cpu_memory_to_use *
64
+ CpuTotalPhysicalMemory ()),
65
+ static_cast <size_t >(FLAGS_initial_cpu_memory_in_mb * 1 << 20 ));
65
66
}
66
67
67
68
size_t CpuMinChunkSize () {
You can’t perform that action at this time.
0 commit comments