Skip to content

Commit 57cea20

Browse files
committed
Fix
1 parent 0076b34 commit 57cea20

File tree

17 files changed

+28
-71
lines changed

17 files changed

+28
-71
lines changed

paddle/fluid/distributed/collective/CMakeLists.txt

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ if(WITH_NCCL OR WITH_RCCL)
2222
DEPS process_group
2323
phi
2424
common
25-
place
2625
enforce
2726
collective_helper
2827
device_context
@@ -31,21 +30,15 @@ if(WITH_NCCL OR WITH_RCCL)
3130
cc_library(
3231
async_load
3332
SRCS async_load.cc
34-
DEPS device_context place ${DEVICE_EVENT_LIBS})
33+
DEPS device_context phi common ${DEVICE_EVENT_LIBS})
3534

3635
endif()
3736

3837
if(WITH_XPU_BKCL)
3938
cc_library(
4039
process_group_bkcl
4140
SRCS process_group_bkcl.cc bkcl_tools.cc common.cc
42-
DEPS process_group
43-
phi
44-
common
45-
place
46-
enforce
47-
collective_helper
48-
device_context)
41+
DEPS process_group phi common enforce collective_helper device_context)
4942
endif()
5043

5144
if(WITH_MPI)
@@ -59,13 +52,7 @@ if(WITH_CUSTOM_DEVICE)
5952
cc_library(
6053
process_group_custom
6154
SRCS process_group_custom.cc custom_ccl_tools.cc common.cc
62-
DEPS process_group
63-
phi
64-
common
65-
place
66-
enforce
67-
collective_helper
68-
device_context)
55+
DEPS process_group phi common enforce collective_helper device_context)
6956
endif()
7057

7158
set(COMM_UTILS_DEPS process_group)

paddle/fluid/eager/api/utils/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
cc_library(
22
global_utils
33
SRCS global_utils.cc
4-
DEPS place tracer)
4+
DEPS phi common tracer)
55

66
if(NOT (NOT WITH_PYTHON AND ON_INFER))
77
cc_library(

paddle/fluid/framework/CMakeLists.txt

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -123,12 +123,12 @@ cc_library(
123123
cc_library(
124124
tensor
125125
SRCS tensor_util.cc
126-
DEPS place fluid_memory data_type device_context phi common)
126+
DEPS fluid_memory data_type device_context phi common)
127127

128128
cc_library(
129129
lod_tensor
130130
SRCS lod_tensor.cc
131-
DEPS phi common place tensor framework_proto version)
131+
DEPS phi common tensor framework_proto version)
132132

133133
cc_library(
134134
garbage_collector
@@ -290,15 +290,14 @@ cc_library(
290290
cc_library(
291291
op_kernel_type
292292
SRCS op_kernel_type.cc
293-
DEPS device_context place)
293+
DEPS device_context phi common)
294294

295295
if(WITH_XPU)
296296
cc_library(
297297
phi_utils
298298
SRCS phi_utils.cc
299299
DEPS lod_tensor
300300
selected_rows_utils
301-
place
302301
phi
303302
common
304303
var_type_traits
@@ -308,13 +307,7 @@ else()
308307
cc_library(
309308
phi_utils
310309
SRCS phi_utils.cc
311-
DEPS lod_tensor
312-
selected_rows_utils
313-
place
314-
phi
315-
common
316-
var_type_traits
317-
op_info)
310+
DEPS lod_tensor selected_rows_utils phi common var_type_traits op_info)
318311
endif()
319312

320313
if(WITH_XPU)
@@ -920,7 +913,6 @@ cc_library(
920913
DEPS lod_tensor
921914
selected_rows_utils
922915
attribute
923-
place
924916
var_type_traits
925917
phi
926918
common

paddle/fluid/framework/details/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ set(op_handle_srcs
1111
set(op_handle_deps
1212
pass
1313
operator
14-
place
14+
phi
15+
common
1516
framework_proto
1617
node
1718
device_context

paddle/fluid/imperative/CMakeLists.txt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ if(WITH_XPU)
2222
phi
2323
common
2424
var_helper
25-
profiler
26-
place)
25+
profiler)
2726
else()
2827
cc_library(
2928
prepared_operator
@@ -39,8 +38,7 @@ else()
3938
phi
4039
common
4140
var_helper
42-
profiler
43-
place)
41+
profiler)
4442
endif()
4543
cc_library(
4644
layer

paddle/fluid/memory/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ if(WITH_ONEDNN)
77
else()
88
set(ONEDNN_CTX_DEPS)
99
endif()
10-
set(fluid_memory_deps place enforce common allocator ${ONEDNN_CTX_DEPS})
10+
set(fluid_memory_deps phi enforce common allocator ${ONEDNN_CTX_DEPS})
1111

1212
cc_library(
1313
fluid_memory

paddle/fluid/memory/allocation/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
include(ExternalProject)
22

3-
set(ALLOCATOR_DEPS place profiler phi common device_context)
3+
set(ALLOCATOR_DEPS profiler phi common device_context)
44
set(ALLOCATOR_SRCS
55
allocator.cc
66
cpu_allocator.cc

paddle/fluid/platform/CMakeLists.txt

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,10 @@ cc_test(
3232
SRCS os_info_test.cc
3333
DEPS phi common)
3434

35-
cc_library(
36-
place
37-
SRCS place.cc
38-
DEPS enforce phi common)
3935
cc_test(
4036
place_test
4137
SRCS place_test.cc
42-
DEPS place glog phi common)
38+
DEPS glog phi common)
4339

4440
if(WITH_ONEDNN)
4541
set(ONEDNN_CTX_DEPS onednn)
@@ -120,7 +116,6 @@ cc_library(
120116
allocator
121117
xxhash
122118
${STREAM_CALLBACK_DEPS}
123-
place
124119
eigen3
125120
cpu_helper
126121
framework_proto
@@ -160,7 +155,7 @@ set(DEVICE_EVENT_LIBS)
160155
cc_library(
161156
device_event_base
162157
SRCS device_event_base.cc
163-
DEPS place enforce device_context op_registry common)
158+
DEPS enforce device_context op_registry phi common)
164159
set(DEVICE_EVENT_LIBS
165160
device_event_base
166161
CACHE INTERNAL "device event libs")
@@ -247,7 +242,6 @@ cc_library(
247242
SRCS lodtensor_printer.cc
248243
DEPS phi
249244
common
250-
place
251245
tensor
252246
scope
253247
lod_tensor

paddle/fluid/platform/device/xpu/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ cc_library(
1818
enforce
1919
xpulib
2020
device_context
21-
place
2221
phi
2322
common
2423
dynload_xpti)

paddle/fluid/platform/place.cc

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)