https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113085
颜森道 <yansendao at 126 dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #66160|0 |1
is obsolete| |
--- Comment #13 from 颜森道 <yansendao at 126 dot com> ---
Created attachment 66395
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=66395&action=edit
libgomp: Skip alloc-pinned tests when RLIMIT_MEMLOCK is too small
A fix has been posted to gcc-patches and is attached here
(Message-Id <[email protected]>, in reply to
Tobias Burnus's review).
The tests lock five pages in total (mlock charges whole pages and the
pinned allocator never munlocks), so they need RLIMIT_MEMLOCK >= 5 *
page -- 320 KiB with 64 KiB pages, above the common 64 KiB default.
The patch adds check_effective_target_omp_pinned_mem, a
check_runtime_nocache probe requiring 5 * page bytes of RLIMIT_MEMLOCK,
and requires it from the three tests, so they report UNSUPPORTED instead
of FAIL when the limit is too small. CHECK_SIZE is kept for every other
failure mode; the nvptx variant (CUDA-pinned memory) is excluded.