From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.ispras.ru (mail.ispras.ru [83.149.199.84]) by sourceware.org (Postfix) with ESMTPS id B3FF43857C4A for ; Fri, 12 Nov 2021 21:08:51 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org B3FF43857C4A Received: from [10.10.3.121] (unknown [10.10.3.121]) by mail.ispras.ru (Postfix) with ESMTPS id 38EA840D403D; Fri, 12 Nov 2021 21:08:49 +0000 (UTC) Date: Sat, 13 Nov 2021 00:08:48 +0300 (MSK) From: Alexander Monakov To: Jakub Jelinek cc: Tom de Vries , Tobias Burnus , gcc-patches@gcc.gnu.org Subject: Re: [PATCH] libgomp, nvptx, v3: Honor OpenMP 5.1 num_teams lower bound In-Reply-To: <20211112175804.GJ2710@tucnak> Message-ID: <1e76e918-1668-fd6e-9ffb-4da71e931f2d@ispras.ru> References: <20211112132023.GC2710@tucnak> <20211112132716.GD2710@tucnak> <20211112175804.GJ2710@tucnak> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Nov 2021 21:08:53 -0000 On Fri, 12 Nov 2021, Jakub Jelinek via Gcc-patches wrote: > --- libgomp/config/nvptx/team.c.jj 2021-05-25 13:43:02.793121350 +0200 > +++ libgomp/config/nvptx/team.c 2021-11-12 17:49:02.847341650 +0100 > @@ -32,6 +32,7 @@ > #include > > struct gomp_thread *nvptx_thrs __attribute__((shared,nocommon)); > +int __gomp_team_num __attribute__((shared)); It's going to be weird to have two declarations next to each other, one with 'nocommon', one without. Could you have 'nocommon' also on the new one, and then, if you like, to add extern declarations for both variables and drop the attribute (in a separate patch)? Alexander