未验证 提交 d53d8fdc 编写于 作者: engineer1109's avatar engineer1109 提交者: GitHub

remove CopyWithContext limitation (#53771)

上级 fb4a6ecf
...@@ -56,7 +56,8 @@ inline void CopyWithContext(const Context& ctx, ...@@ -56,7 +56,8 @@ inline void CopyWithContext(const Context& ctx,
const Place& src_place, const Place& src_place,
const void* src, const void* src,
size_t num) { size_t num) {
#if defined(PADDLE_WITH_CUDA) || defined(PADDLE_WITH_HIP) #if defined(PADDLE_WITH_CUDA) || defined(PADDLE_WITH_HIP) || \
defined(PADDLE_WITH_CUSTOM_DEVICE)
memory_utils::Copy(dst_place, dst, src_place, src, num, ctx.stream()); memory_utils::Copy(dst_place, dst, src_place, src, num, ctx.stream());
#else #else
PADDLE_THROW( PADDLE_THROW(
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册