Skip to content

Commit c5ecb4f

Browse files
committed
Temporarily remove memory_op porting
1 parent 262ce2a commit c5ecb4f

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

source/module_base/module_device/memory_op.cpp

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,9 @@ struct resize_memory_op<FPTYPE, base_device::DEVICE_CPU>
2222
{
2323
if (arr != nullptr)
2424
{
25-
#ifdef __DSP
26-
free_ht(arr);
27-
#else
2825
free(arr);
29-
#endif
3026
}
31-
#ifdef __DSP
32-
arr = (FPTYPE*)malloc_ht(sizeof(FPTYPE) * size, GlobalV::MY_RANK);
33-
#else
3427
arr = (FPTYPE*)malloc(sizeof(FPTYPE) * size);
35-
#endif
3628
std::string record_string;
3729
if (record_in != nullptr)
3830
{
@@ -104,11 +96,7 @@ struct delete_memory_op<FPTYPE, base_device::DEVICE_CPU>
10496
{
10597
void operator()(const base_device::DEVICE_CPU* dev, FPTYPE* arr)
10698
{
107-
#ifdef __DSP
108-
free_ht(arr);
109-
#else
11099
free(arr);
111-
#endif
112100
}
113101
};
114102

0 commit comments

Comments
 (0)