未验证 提交 d9fe6669 编写于 作者: H huzhiqiang 提交者: GitHub

[Framework]Update Malloc implementation to accelerate #4187

上级 58afe45c
......@@ -21,7 +21,7 @@ namespace lite {
namespace arm {
namespace math {
const int MALLOC_ALIGN = 16;
const int MALLOC_ALIGN = 64;
void* fast_malloc(size_t size) {
size_t offset = sizeof(void*) + MALLOC_ALIGN - 1;
......
......@@ -19,7 +19,7 @@
namespace paddle {
namespace lite {
const int MALLOC_ALIGN = 16;
const int MALLOC_ALIGN = 64;
void* TargetWrapper<TARGET(kHost)>::Malloc(size_t size) {
size_t offset = sizeof(void*) + MALLOC_ALIGN - 1;
......
......@@ -21,7 +21,7 @@
namespace paddle {
namespace lite {
const int MALLOC_ALIGN = 16;
const int MALLOC_ALIGN = 64;
void* fast_malloc(size_t size) {
size_t offset = sizeof(void*) + MALLOC_ALIGN - 1;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册