Skip to content

Commit b6b87fa

Browse files
committed
Fix another part
1 parent 1982a15 commit b6b87fa

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

source/module_base/module_device/rocm/memory_op.hip.cu

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,7 @@ struct cast_memory_op<FPTYPE_out, FPTYPE_in, base_device::DEVICE_GPU, base_devic
108108
// No need to cast the memory if the data types are the same.
109109
if (std::is_same<FPTYPE_out, FPTYPE_in>::value)
110110
{
111-
synchronize_memory_op<FPTYPE_out, base_device::DEVICE_GPU, base_device::DEVICE_CPU>()(dev_out,
112-
dev_in,
113-
arr_out,
111+
synchronize_memory_op<FPTYPE_out, base_device::DEVICE_GPU, base_device::DEVICE_CPU>()(arr_out,
114112
reinterpret_cast<const FPTYPE_out*>(arr_in),
115113
size);
116114
return;

0 commit comments

Comments
 (0)