From patchwork Wed Jul 17 21:02:18 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kwok Cheung Yeung X-Patchwork-Id: 1133434 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-505225-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="TVjLozmh"; 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 45pqTp566Yz9s3Z for ; Thu, 18 Jul 2019 07:02:38 +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 :subject:to:cc:message-id:date:mime-version:content-type :content-transfer-encoding; q=dns; s=default; b=Qcgn+YGEztLhL0oq 87W1yiZDAZF5IfMK/L48tQQhnr2E5euR/bRqCrYpxdpFqLFzTDgNLGKLq4Erchp3 h5he6wIUzKphxd8ukDhdNSVGAtr81G5hryardDYakXGcSuAyM9b0AXutTMTruvNJ t3bd1eeUc0Bw+9iYvvASGdzWRsA= 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 :subject:to:cc:message-id:date:mime-version:content-type :content-transfer-encoding; s=default; bh=/SCxIRoq7UbLmYZvNRh8IC iKtZ8=; b=TVjLozmhrRmxt0CtrDVeVVUr/RWOJ82Q1M6JfY/lS56UlK3x4Z8Ad2 Sn5/Lt9gl1oD4owjzXNNEBpZHMvZJSng+0PRPL8ZFL1q6etWseV1xgUob8T2rIQA xDuW4b7ID+342mtgxjQtwwqWtHH3z6RSQ5eGhQXDltllIEonEvDJM= Received: (qmail 74183 invoked by alias); 17 Jul 2019 21:02:30 -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 74173 invoked by uid 89); 17 Jul 2019 21:02:30 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-4.4 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.1 spammy=tesla, individually, HX-Languages-Length:467, Tesla X-HELO: relay1.mentorg.com Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 17 Jul 2019 21:02:28 +0000 Received: from nat-ies.mentorg.com ([192.94.31.2] helo=SVR-IES-MBX-04.mgc.mentorg.com) by relay1.mentorg.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-SHA384:256) id 1hnr4E-00008Z-Kr from Kwok_Yeung@mentor.com ; Wed, 17 Jul 2019 14:02:26 -0700 Received: from [172.30.64.32] (137.202.0.90) by SVR-IES-MBX-04.mgc.mentorg.com (139.181.222.4) with Microsoft SMTP Server (TLS) id 15.0.1320.4; Wed, 17 Jul 2019 22:02:22 +0100 From: Kwok Cheung Yeung Subject: [PATCH 00/10, OpenACC] Rework handling of OpenACC kernels regions To: , Jakub Jelinek CC: Thomas Schwinge Message-ID: <5e191259-d5d5-34ce-7fd5-fc8d2e6d982e@codesourcery.com> Date: Wed, 17 Jul 2019 22:02:18 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 This series of patches reworks the way that OpenACC kernels regions are processed by GCC. Instead of relying on the parloops pass for auto-parallelisation of the kernel region, the contents of the region are transformed into a sequence of offloaded regions, which are then processed individually. Tested on an x86_64 host, with offloading to a Nvidia Tesla K20c card. Okay for trunk? Thanks Kwok