Skip to content

Commit da115c8

Browse files
committed
fix
1 parent 9c56e8c commit da115c8

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

paddle/fluid/operators/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ endif()
167167

168168
if (WITH_ASCEND_CL)
169169
cc_test(range_op_npu_test SRCS range_op_npu_test.cc DEPS op_registry range_op scope device_context enforce executor)
170-
cc_test(expand_op_npu_test SRCS expand_op_npu_test.cc DEPS op_registry expand_op scope device_context enforce executor compare_op)
170+
cc_test(expand_op_npu_test SRCS expand_op_npu_test.cc DEPS op_registry expand_op eigen_cc_function scope device_context enforce executor compare_op)
171171
endif()
172172

173173
set(GLOB_OP_LIB ${OP_LIBRARY} CACHE INTERNAL "Global OP library")

paddle/fluid/platform/npu_info.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ void NPUMemcpySync(void *dst, const void *src, size_t count,
191191
// NOTE(zhiqiu): The default max_count is count
192192
dst_max_count = dst_max_count ? dst_max_count : count;
193193
VLOG(4) << dst << " " << dst_max_count << " " << src << " " << count << " "
194-
<< kind << " " << stream;
194+
<< kind;
195195
PADDLE_ENFORCE_NPU_SUCCESS(aclrtMemcpy(dst, dst_max_count, src, count, kind));
196196
}
197197

python/paddle/fluid/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,5 +259,5 @@ def __bootstrap__():
259259

260260
# NOTE(zhiqiu): register npu_finalize on the exit of Python,
261261
# do some clean up manually.
262-
if paddle.is_compiled_with_npu():
262+
if core.is_compiled_with_npu():
263263
atexit.register(core.npu_finalize)

0 commit comments

Comments
 (0)