On Fri, Oct 30, 2026 at 12:05:00PM +0000, Matthew Malcomson wrote:
>
> On 10/29/26 20:46, Thomas Schwinge wrote:
> > External email: Use caution opening links or attachments
> >
> > On 2026-10-29T17:22:13+0100, Jakub Jelinek <[email protected]> wrote:
> > > On Thu, Oct 29, 2026 at 05:15:11PM +0100, Thomas Schwinge wrote:
> >
> > And yes, compared to "graceful degradation", such a hard error may
> > actually be preferable for users, so that they're aware what's going
> > on/wrong. Especially so, in cases where there are performance
> > implications (as in this case here, per my understanding).
> >
> > Expectation is a clear run-time error message.
>
> I don't think that would be what we see at the moment.
>
> It's not a designed graceful degredation, but for a non-checking build an
> unavailable `futex_waitv` would return ENOSYS and return immediately into
> the busy-wait spinloop. (Acting approximately like
> GOMP_SPINCOUNT=<infinity> on barriers).
>
> @Jakub would you agree that we should emit a hard `gomp_fatal` error in this
> case?
I think working at least somehow is better than gomp_fatal for the common
case.
Maybe it could try the syscall once during initialize_env and if it fails
with ENOSYS try to make it mostly serialized unless the user tries hard
(e.g. override thread_limit_var to 1). But that is still an extra syscall
during initialization to workaround people doing unsupported things.
Jakub