Following the TODO comment in kmp_alloc.cpp line 1723, I replaced the usage of said macro (in kmp_runtime.c) by a call to getpagesize() when KMP_OS_LINUX is true.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
Inside kmp_os.h (around the PAGE_SIZE code), could you have:
#if KMP_OS_LINUX # define KMP_GET_PAGE_SIZE() getpagesize() #else # define KMP_GET_PAGE_SIZE() PAGE_SIZE #endif
And then const int page_size = KMP_GET_PAGE_SIZE() inside kmp_alloc.c and kmp_runtime.c