From patchwork Thu Aug 8 16:53:05 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julian Brown X-Patchwork-Id: 1144120 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-506529-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="PP6T+pWx"; 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 464Dwr64whz9sBF for ; Fri, 9 Aug 2019 02:54:04 +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:in-reply-to:references :mime-version:content-type:content-transfer-encoding; q=dns; s= default; b=wMDdzzfEMlD6HjhiJ06R2QP4T1aU7iOREdQAwv1pHZGgrnsHA7h2f 1lnyXYOkkvd+bsGToOAsUowint9RTh5eZuJUtcyR1oT2ewoTVbZfHSoVR1PiKIaT Vie0yMZS4fW5Dh6JGcQY7HT2NfpbFcIj8+sQL/20FyOWa/8jiG+TxM= 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:in-reply-to:references :mime-version:content-type:content-transfer-encoding; s=default; bh=UNoxo2/ToQLZ/MSAdHx8HCnljxg=; b=PP6T+pWx2MnOMB1SSPAZ6vqkPaGs VpSq9HaGBY5tQNSuclGCi9aNuNbhCyY4JOgF2X0258v/wg/uRiAfT55YVLnEVSRk 9npGlGDYIznfmFCqjOXf92zH34ptImNFz5/5Tss/J6EGBi9PtpxWRXFBMXaSL4Lm Aih1tpdR0+rDiB4= Received: (qmail 71532 invoked by alias); 8 Aug 2019 16:53:46 -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 71476 invoked by uid 89); 8 Aug 2019 16:53:45 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-14.2 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3 autolearn=ham version=3.3.1 spammy=20190731, *aq, device, 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; Thu, 08 Aug 2019 16:53:44 +0000 IronPort-SDR: 7ON8+hK6U/hXJdUmDSJTPqjFb7P2vSIeMvOC9q8aiMublaXrcTpD0XS8LxcEM61kAXjrqkDG8r 3y7CxsrpBbH3dzj7qBHWaUSUU5JOAw9jXXX6dqSE3w2WLxVZ2I3o5Z/NiZxfIwXA8A6jwVxsQJ 9VmfQWXcxzzGCMNnOp9rCoibSmresady02X4MzpDIpN6KluMxnz+rkyF1WM0eoxq4hsMKe5suV XRUY9S31qnaFtpJTQXksYWs7vZ9s6IWF7fx4NwJ2qcDUdHFClByqEPoRLXZ6iHAoQ/JOsH289q eX8= Received: from orw-gwy-02-in.mentorg.com ([192.94.38.167]) by esa2.mentor.iphmx.com with ESMTP; 08 Aug 2019 08:53:24 -0800 IronPort-SDR: +MUWyNy3mxS8XUp4PxpgvLTLRa1RPWYUOrd+eG201va11AJLngTtmihG9xNOVX2LWRxUZV5mDl AVndbP2vPzO93GzlfbQcCO92Psrk01dnKOFvVexl/i/Uw/VNYhFVi1veQRqmITljkUbokbilIq KRYH2v/WQaKthBrVu58bqXwUF+qD2qF9GN5SpEoSzieyUz8eVRWKVHUlLJBvuup+LusgrRstpm aizL9EHROBLm4h+eFGsmAOVgZMWLirKEl/PRefjRgUgLRbLqI+dKqviMltwncvW9efdoHsWnHF j5A= From: Julian Brown To: CC: Andrew Stubbs , Jakub Jelinek Subject: [PATCH 1/3] [og9] Add missing exec_params libgomp plugin entry points Date: Thu, 8 Aug 2019 09:53:05 -0700 Message-ID: <20190808165307.56375-2-julian@codesourcery.com> In-Reply-To: <20190808165307.56375-1-julian@codesourcery.com> References: <20190808165307.56375-1-julian@codesourcery.com> MIME-Version: 1.0 X-IsSubscribed: yes This patch adds two missing (dummy) entry points to the GCN libgomp plugin. These are not used at present, because we have not enabled the function parameter flattening transformation that uses these entry points on GCN. Julian ChangeLog libgomp/ * plugin/plugin-gcn.c (GOMP_OFFLOAD_openacc_exec_params, GOMP_OFFLOAD_openacc_async_exec_params): New functions. --- libgomp/ChangeLog.openacc | 5 +++++ libgomp/plugin/plugin-gcn.c | 17 +++++++++++++++++ 2 files changed, 22 insertions(+) diff --git a/libgomp/ChangeLog.openacc b/libgomp/ChangeLog.openacc index a187ebb7295..80d089f49e2 100644 --- a/libgomp/ChangeLog.openacc +++ b/libgomp/ChangeLog.openacc @@ -1,3 +1,8 @@ +2019-08-08 Julian Brown + + * plugin/plugin-gcn.c (GOMP_OFFLOAD_openacc_exec_params, + GOMP_OFFLOAD_openacc_async_exec_params): New functions. + 2019-07-31 Julian Brown * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Use relative diff --git a/libgomp/plugin/plugin-gcn.c b/libgomp/plugin/plugin-gcn.c index b059348c7bf..6eaae66c1a9 100644 --- a/libgomp/plugin/plugin-gcn.c +++ b/libgomp/plugin/plugin-gcn.c @@ -3291,6 +3291,14 @@ GOMP_OFFLOAD_openacc_exec (void (*fn_ptr) (void *), size_t mapnum, NULL); } +void +GOMP_OFFLOAD_openacc_exec_params (void (*fn_ptr) (void *), size_t mapnum, + void **hostaddrs, void **devaddrs, + unsigned *dims, void *targ_mem_desc) +{ + GOMP_PLUGIN_fatal ("OpenACC exec params unimplemented."); +} + void GOMP_OFFLOAD_openacc_async_exec (void (*fn_ptr) (void *), size_t mapnum, void **hostaddrs, void **devaddrs, @@ -3303,6 +3311,15 @@ GOMP_OFFLOAD_openacc_async_exec (void (*fn_ptr) (void *), size_t mapnum, aq); } +void +GOMP_OFFLOAD_openacc_async_exec_params (void (*fn) (void *), size_t mapnum, + void **hostaddrs, void **devaddrs, + unsigned *dims, void *targ_mem_desc, + struct goacc_asyncqueue *aq) +{ + GOMP_PLUGIN_fatal ("OpenACC async exec params unimplemented."); +} + struct goacc_asyncqueue * GOMP_OFFLOAD_openacc_async_construct (int device) {