Skip to content

Commit 142c71a

Browse files
authored
fix cuda117 compile error and rm useless code; test=develop (#59915)
1 parent d47d31e commit 142c71a

File tree

4 files changed

+3
-3
lines changed

4 files changed

+3
-3
lines changed

paddle/fluid/framework/fleet/heter_ps/graph_gpu_wrapper.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,12 @@
2222
#include "paddle/fluid/framework/fleet/heter_ps/gpu_graph_node.h"
2323

2424
#ifdef PADDLE_WITH_HETERPS
25+
#if defined(__NVCC__) || defined(__HIPCC__)
2526
#include <thrust/device_ptr.h>
2627
#include <thrust/execution_policy.h>
2728
#include <thrust/random.h>
2829
#include <thrust/shuffle.h>
30+
#endif
2931
#include "paddle/fluid/framework/fleet/heter_ps/mem_pool.h"
3032
#include "paddle/fluid/platform/device/gpu/gpu_info.h"
3133
#include "paddle/fluid/platform/dynload/nccl.h"

paddle/fluid/framework/tensor_util.cc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,8 +307,6 @@ void TensorCopySync(const phi::DenseTensor& src,
307307
return;
308308
}
309309

310-
VLOG(0) << "TensorCopySync " << src.dims() << " from " << src.place()
311-
<< " to " << dst_place;
312310
src.check_memory_size();
313311
dst->Resize(src.dims());
314312
dst->set_layout(src.layout());

python/paddle/distributed/fleet/base/strategy_compiler.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ def maximum_path_len_algo(optimizer_list):
9494
edge, indegree = create_graph(optimizer_list)
9595
topo_sort(edge, indegree)
9696
max_path = floyd(edge)
97-
print("max_path=", max_path)
9897
candidate = []
9998
for idx in max_path:
10099
candidate.append(optimizer_list[idx])

python/paddle/incubate/operators/unzip.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ def unzip(input, lod, len):
2525
2626
Args:
2727
input (Variable): The zipped input
28+
len(int): The second dim length of unzipped output.
2829
lod (Variable): The original lod of unzipped input, 1-D LodTensor with shape[K].
2930
3031
Returns:

0 commit comments

Comments
 (0)