From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from esa1.mentor.iphmx.com (esa1.mentor.iphmx.com [68.232.129.153]) by sourceware.org (Postfix) with ESMTPS id 5D8C33848012 for ; Tue, 23 Feb 2021 21:44:00 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 5D8C33848012 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=codesourcery.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=Kwok_Yeung@mentor.com IronPort-SDR: NiPqb04aJM7quX7TdpT6E4eKc6xVd/aDk8rbBUv17VA4z8zDcmIQjMr0AW+u0t1B3yz1kYyDSM vNhxZoGLIaFTSZOwgBbiPeAWL+z6J7VjBJ0PyUsZ0D0hwpaqTwiv8tBzLAJXAIRueGuQYWK5Ju xVD7LRb/ZVMKxzR1xT2cLVZc0BISPhjbJzm6WPA6nl7VZiok5tSh+v5QRjvMdu05Jz9XALkC8R tmWjSdddMGpAFw88Z1fqRopgsOUOYZHwD/vXoMG0eAh7dZBLwsFgz5U4Cu5ZYYvhEphTeeNyIB +yc= X-IronPort-AV: E=Sophos;i="5.81,201,1610438400"; d="scan'208";a="60734786" Received: from orw-gwy-01-in.mentorg.com ([192.94.38.165]) by esa1.mentor.iphmx.com with ESMTP; 23 Feb 2021 13:43:59 -0800 IronPort-SDR: axRrCyv592xsWQlm7bI1a3ziuKXeMho7ICpYcJ6wWe7Qhz5Pv2+EpKn1RXamBqc7PeWggaWAf5 CH6MM/8MebRH/2FYqGBlng7+SWz5vvcN1PsoeFh0Md9cJDaz2gdSFSt7fhWTO/1GNU4jdWGb6m t8AXGoXhmFiOM6ihfjVOv7WMhW6uK7SIu5nNAL031Kl1B0/ImNyKCwTOfZAorhIIVuSy9b/THK xb2pyqhTG3uSO+S0Y39cYVXWUFThLwjT9K7UgsbGvx6X+CqsBfiBGfo8zafRsrZqM1icZU7eFm AMo= Subject: Re: [WIP] Re: [PATCH] openmp: Fix intermittent hanging of task-detach-6 libgomp tests [PR98738] From: Kwok Cheung Yeung To: Jakub Jelinek CC: GCC Patches References: <20210129150317.GN4020736@tucnak> <0aca6daf-356a-7b03-c007-e33c35114356@codesourcery.com> Message-ID: Date: Tue, 23 Feb 2021 21:43:51 +0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 MIME-Version: 1.0 In-Reply-To: <0aca6daf-356a-7b03-c007-e33c35114356@codesourcery.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 7bit X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: SVR-IES-MBX-04.mgc.mentorg.com (139.181.222.4) To svr-ies-mbx-01.mgc.mentorg.com (139.181.222.1) X-Spam-Status: No, score=-6.5 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, NICE_REPLY_A, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) 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: Tue, 23 Feb 2021 21:44:01 -0000 On 19/02/2021 7:12 pm, Kwok Cheung Yeung wrote: > I have included the current state of my patch. All task-detach-* tests pass when > executed without offloading or with offloading to GCN, but with offloading to > Nvidia, task-detach-6.* hangs consistently but everything else passes (probably > because of the missing gomp_team_barrier_done?). > It looks like the hang has nothing to do with the detach patch - this hangs consistently for me when offloaded to NVPTX: #include int main (void) { #pragma omp target #pragma omp parallel #pragma omp task ; } This doesn't hang when offloaded to GCN or the host device, or if num_threads(1) is specified on the omp parallel. Kwok