提交 be594439 编写于 作者: 李寅

Merge branch 'fix_sgemm' into 'master'

fix 'sysconf(_SC_PAGESIZE)' to get page size, instead of 'getpagesize()' (which…

See merge request !897
......@@ -30,7 +30,7 @@
namespace {
inline void AdviseFree(void *addr, size_t length) {
int page_size = getpagesize();
int page_size = sysconf(_SC_PAGESIZE);
void *addr_aligned =
reinterpret_cast<void *>(
(reinterpret_cast<uintptr_t>(addr) + page_size - 1)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册