From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id DFFB83858D20; Sun, 21 May 2023 18:44:35 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DFFB83858D20 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1684694675; bh=Vz0ODK9jIjDsH2qxyj6RvcdVRsV7eFjGFRJrmtXF7NI=; h=From:To:Subject:Date:In-Reply-To:References:From; b=TOjGtj9nGA9u89NCthAsPQ78mBRSjecZ59LEXRaOFiIh//WqPZ6oE1hlYoabJbxix dFfzCuRyMivWGE9l6Ms3DCknyKre39vkTp15Vuw74vj3+MlzJC6jFA4wN4jTEcHKHs 0lv1xK4uukbvqMlcgpHpcg51jpYPLa0wqsOFFpaE= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: =?UTF-8?B?W0J1ZyBsaWJnb21wLzEwOTg3NV0gW09wZW5NUF0gbnRlYW1zLXZh?= =?UTF-8?B?ciAvIE9NUF9OVU1fVEVBTVMg4oaSIElDViBub3QgcGFzc2VkIHRvIHRoZSBk?= =?UTF-8?B?ZXZpY2UgLyBkZWZhdWx0IHZhbHVl?= Date: Sun, 21 May 2023 18:44:35 +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.0 X-Bugzilla-Keywords: openmp X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org 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=3D109875 --- Comment #3 from CVS Commits --- The master branch has been updated by Tobias Burnus : https://gcc.gnu.org/g:ad0f80d945cc36fbb60fd1e04d90681d4302de8b commit r14-1026-gad0f80d945cc36fbb60fd1e04d90681d4302de8b Author: Tobias Burnus Date: Sun May 21 20:36:19 2023 +0200 libgomp: Honor OpenMP's nteams-var ICV as upper limit on num teams [PR109875] The nteams-var ICV exists per device and can be set either via the rout= ine omp_set_num_teams or as environment variable (OMP_NUM_TEAMS with option= al _ALL/_DEV/_DEV_ suffix); it is default-initialized to zero. The nu= mber of teams created is described under the num_teams clause. If the clause= is absent, the number of teams is implementation defined but at least one team must exist and, if nteams-var is positive, at most nteams-var teams may exist. The latter condition was not honored in a target region before this commit, such that too many teams were created. Already before this commit, both the num_teams([lower:]upper) clause (on the host and in target regions) and, only on the host, the nteams-v= ar ICV were honored. And as only one teams is created for host fallback, unless the clause specifies otherwise, the nteams-var ICV was and is effectively honored. libgomp/ChangeLog: PR libgomp/109875 * config/gcn/target.c (GOMP_teams4): Honor nteams-var ICV. * config/nvptx/target.c (GOMP_teams4): Likewise. * testsuite/libgomp.c-c++-common/teams-nteams-icv-1.c: New test. * testsuite/libgomp.c-c++-common/teams-nteams-icv-2.c: New test. * testsuite/libgomp.c-c++-common/teams-nteams-icv-3.c: New test. * testsuite/libgomp.c-c++-common/teams-nteams-icv-4.c: New test= .=