Skip to content

Commit 0b9eb00

Browse files
committed
Fix compilation error
Signed-off-by:Tianxiang Wang<[email protected]>, Contributed under MetaX Integrated Circuits (Shanghai) Co., Ltd.
1 parent 7945a36 commit 0b9eb00

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

source/source_base/module_device/memory_op.cpp

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -249,8 +249,7 @@ struct synchronize_memory_op<FPTYPE, base_device::DEVICE_CPU, base_device::DEVIC
249249
template <typename FPTYPE>
250250
struct synchronize_memory_2d_op<FPTYPE, base_device::DEVICE_GPU, base_device::DEVICE_GPU>
251251
{
252-
void operator()(const Device_in* dev_in,
253-
FPTYPE* arr_out,
252+
void operator()(FPTYPE* arr_out,
254253
const size_t dpitch,
255254
const FPTYPE* arr_in,
256255
const size_t spitch,
@@ -263,8 +262,7 @@ struct synchronize_memory_2d_op<FPTYPE, base_device::DEVICE_GPU, base_device::DE
263262
template <typename FPTYPE>
264263
struct synchronize_memory_2d_op<FPTYPE, base_device::DEVICE_GPU, base_device::DEVICE_CPU>
265264
{
266-
void operator()(const Device_in* dev_in,
267-
FPTYPE* arr_out,
265+
void operator()(FPTYPE* arr_out,
268266
const size_t dpitch,
269267
const FPTYPE* arr_in,
270268
const size_t spitch,
@@ -277,8 +275,7 @@ struct synchronize_memory_2d_op<FPTYPE, base_device::DEVICE_GPU, base_device::DE
277275
template <typename FPTYPE>
278276
struct synchronize_memory_2d_op<FPTYPE, base_device::DEVICE_CPU, base_device::DEVICE_GPU>
279277
{
280-
void operator()(const Device_in* dev_in,
281-
FPTYPE* arr_out,
278+
void operator()(FPTYPE* arr_out,
282279
const size_t dpitch,
283280
const FPTYPE* arr_in,
284281
const size_t spitch,

0 commit comments

Comments
 (0)