From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 4B32F3858C78; Thu, 18 Apr 2024 11:58:44 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4B32F3858C78 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1713441524; bh=CSbuBRLoeFOn/Qi4BXMngE4jVTDjxTO6NsIrotfzR3I=; h=From:To:Subject:Date:In-Reply-To:References:From; b=gB1Ul7vvAe2gw3Z3Cd3D09+seqjAi4jBXK8FSE2F9KjtiicofmX2pRWoTgSAGjFgB dXtOg4EOTj6LCLwRGsrqAQb/nbVDBE1i2eUuNeqzwEnAu0kNi9wT8wduo20ntPFuTz ftufnXK7FkWVPpervqDXxvP4loeEa2uFm4W7UNPQ= From: "stijn.deweirdt at ugent dot be" To: gcc-bugs@gcc.gnu.org Subject: [Bug libgomp/114765] linking to libgomp and setting CPU_PROC_BIND causes affinity reset Date: Thu, 18 Apr 2024 11:58:43 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libgomp X-Bugzilla-Version: 13.2.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: stijn.deweirdt at ugent dot be X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D114765 --- Comment #2 from Stijn De Weirdt --- hi jakub, apologies for my ignorance, but how is working as expected? i can't make th= is up from the description of the variable; and it's unexpected since there is= no openmp code being run (naively then; clearly libgomp does something). we have an environment where we set OMP_PROC_BIND=3Dtrue because openmp code clearly benefits from it; but it also affects code where libgomp is simply linked to it, but nothing else is done with it. if i would understand why or what libgomp does, i might be able to find some workaround. many thanks, stijn=