We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 262ce2a commit c5ecb4fCopy full SHA for c5ecb4f
source/module_base/module_device/memory_op.cpp
@@ -22,17 +22,9 @@ struct resize_memory_op<FPTYPE, base_device::DEVICE_CPU>
22
{
23
if (arr != nullptr)
24
25
-#ifdef __DSP
26
- free_ht(arr);
27
-#else
28
free(arr);
29
-#endif
30
}
31
32
- arr = (FPTYPE*)malloc_ht(sizeof(FPTYPE) * size, GlobalV::MY_RANK);
33
34
arr = (FPTYPE*)malloc(sizeof(FPTYPE) * size);
35
36
std::string record_string;
37
if (record_in != nullptr)
38
@@ -104,11 +96,7 @@ struct delete_memory_op<FPTYPE, base_device::DEVICE_CPU>
104
96
105
97
void operator()(const base_device::DEVICE_CPU* dev, FPTYPE* arr)
106
98
107
108
109
110
99
111
112
100
113
101
};
114
102
0 commit comments