From patchwork Tue Aug 13 21:37:12 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julian Brown X-Patchwork-Id: 1146675 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-506857-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=codesourcery.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="q9e915xm"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 467Qzr2dLJz9sML for ; Wed, 14 Aug 2019 07:37:42 +1000 (AEST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id:mime-version :content-transfer-encoding:content-type; q=dns; s=default; b=VqU 4aJRrrHT+dIqUQm+IHRu8wZCPzPcpH/VtUOm0TrWaCbgfU0HfeN7Nu4/pXBP1Thu WhZ5Q4GLHv45JWBea5nrk5LspBAxz73xN6bURfa7j8R1PEEwA8h49XxCYTKw2MU4 oyc5SZM/dalT0XhNiT+41jduUl8c0tJinL9Or3T0= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id:mime-version :content-transfer-encoding:content-type; s=default; bh=c83T1Nz45 dEG7y1wa0XSds7p0As=; b=q9e915xmCkBHC6kcP9WtsPYHGZocU0Pfgh1vr05c9 Kylxl9Mz97TcbF+FljQe6d00HVwlTpXHqVbRRX5k/+45RWC/RKtQXDAtzlwIzkOh T2VFOm459N0syvCkHAmydWdqTSXtMLDAx2cP97ukDwKl+2NkiQsNjwtuoK95FGf3 lk= Received: (qmail 47737 invoked by alias); 13 Aug 2019 21:37:34 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 47723 invoked by uid 89); 13 Aug 2019 21:37:34 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-8.9 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_2, GIT_PATCH_3, SPF_PASS autolearn=ham version=3.3.1 spammy=sk:changel, sk:ChangeL, HContent-Transfer-Encoding:8bit X-HELO: esa2.mentor.iphmx.com Received: from esa2.mentor.iphmx.com (HELO esa2.mentor.iphmx.com) (68.232.141.98) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 13 Aug 2019 21:37:33 +0000 IronPort-SDR: Rq9uLaI8Wivk8GtC4Q/4kxemXHnTokAo0kfTDL3ZhAC9uBAMFiWHIpqJ7mFi9FwNz6fMg3szFn DmnM2IvnHUkq4hUStaQoRQKpfuK7JhvXKu+LBT0gaY/K50qdd3kE8Cu8ShgxaEHzRwDQg1W459 SMHw/uX8QxoMtDLYpqT7Pt2/15XINZOGHL2nS7Vlpq4poSuxzvwwxT3uFnpnIGjL0nHWck9Bxq dzbx2TVHr6gHUu3/ZRaurQ5zPmHfTsgljw/A7ay99r5slOYc4kcJdyjKyH7GV8EBlM7mqBE0fj Amo= Received: from orw-gwy-02-in.mentorg.com ([192.94.38.167]) by esa2.mentor.iphmx.com with ESMTP; 13 Aug 2019 13:37:31 -0800 IronPort-SDR: Cz2yrDdh0Uk7FXrRB24MJ/v2w0XaCaIlyJWME/Jij5IMzN51/DrcTAyOfJvKfkXH+tDutcJZoM mdXGB7z1cPUbnZskyr/hFb5foM9DP3OQQygarmS10/Qgh79uot5/6QlliJVq8Smv9pmC4qlb2B fGBi3c7jAFU5S0iWZnauqj2k1TgJ3m8Rb5V2QHtPzBSgtu4Qcg2X4PO5oz0zLgjOti44L7zXRE sdy8gh6YB//xBQgJ9j+eAvoBGsY5ffDulqBLdGSQTE27hZXaxLNk+f4CIng3uOLkWYC2h42Kz1 Bhk= From: Julian Brown To: CC: Andrew Stubbs , Jakub Jelinek Subject: [PATCH 0/3] [og9] OpenACC async fixes for AMD GCN Date: Tue, 13 Aug 2019 14:37:12 -0700 Message-ID: MIME-Version: 1.0 X-IsSubscribed: yes These patches stabilise async support for AMD GCN. Several tests that previously failed (some intermittently) now work. Further commentary is provided alongside each patch. Tested with offloading to AMD GCN. I will apply shortly to the openacc-gcc-9-branch. Thanks, Julian Julian Brown (3): [og9] Wait at end of OpenACC asynchronous kernels regions [og9] Use temporary buffers for async host2dev copies [og9] Wait on queue-full condition in AMD GCN libgomp offloading plugin gcc/ChangeLog.openacc | 7 +++++ gcc/omp-oacc-kernels.c | 28 ++++++++++++++----- libgomp/ChangeLog.openacc | 19 +++++++++++++ libgomp/plugin/plugin-gcn.c | 31 ++++++++++++++++---- libgomp/target.c | 56 +++++++++++++++---------------------- 5 files changed, 94 insertions(+), 47 deletions(-)