public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "cvs-commit at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libgomp/111024] libgomp: FAILs with oldish libnuma/libmemkind
Date: Thu, 17 Aug 2023 13:24:15 +0000	[thread overview]
Message-ID: <bug-111024-4-oegrdzWfHs@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-111024-4@http.gcc.gnu.org/bugzilla/>

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111024

--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Tobias Burnus <burnus@gcc.gnu.org>:

https://gcc.gnu.org/g:8f3c4517b1fff965f2bdedcf376dcfd91cda422b

commit r14-3287-g8f3c4517b1fff965f2bdedcf376dcfd91cda422b
Author: Tobias Burnus <tobias@codesourcery.com>
Date:   Thu Aug 17 15:20:55 2023 +0200

    libgomp: call numa_available first when using libnuma

    The documentation requires that numa_available() is called and only
    when successful, other libnuma function may be called. Internally,
    it does a syscall to get_mempolicy with flag=0 (which would return
    the default policy if mode were not NULL). If this returns -1 (and
    not 0) and errno == ENOSYS, the Linux kernel does not have the
    get_mempolicy syscall function; if so, numa_available() returns -1
    (otherwise: 0).

    libgomp/

            PR libgomp/111024
            * allocator.c (gomp_init_libnuma): Call numa_available; if
            not available or not returning 0, disable libnuma usage.

      parent reply	other threads:[~2023-08-17 13:24 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-15  8:35 [Bug libgomp/111024] New: " tschwinge at gcc dot gnu.org
2023-08-16 14:38 ` [Bug libgomp/111024] " burnus at gcc dot gnu.org
2023-08-17 11:01 ` burnus at gcc dot gnu.org
2023-08-17 13:24 ` cvs-commit at gcc dot gnu.org [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-111024-4-oegrdzWfHs@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).