Skip to content

Commit 1982a15

Browse files
committed
Fix dcu compilation error
1 parent 7838569 commit 1982a15

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
@@ -135,9 +135,7 @@ struct cast_memory_op<FPTYPE_out, FPTYPE_in, base_device::DEVICE_CPU, base_devic
135135
// No need to cast the memory if the data types are the same.
136136
if (std::is_same<FPTYPE_out, FPTYPE_in>::value)
137137
{
138-
synchronize_memory_op<FPTYPE_out, base_device::DEVICE_CPU, base_device::DEVICE_GPU>()(dev_out,
139-
dev_in,
140-
arr_out,
138+
synchronize_memory_op<FPTYPE_out, base_device::DEVICE_CPU, base_device::DEVICE_GPU>()(arr_out,
141139
reinterpret_cast<const FPTYPE_out*>(arr_in),
142140
size);
143141
return;

0 commit comments

Comments
 (0)