From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 72108 invoked by alias); 2 Feb 2017 14:38:24 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 72091 invoked by uid 89); 2 Feb 2017 14:38:23 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_PASS,URIBL_RED autolearn=ham version=3.3.2 spammy=10417, U*julian, sk:julian, sk:julian@ 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; Thu, 02 Feb 2017 14:38:13 +0000 Received: from svr-orw-fem-04.mgc.mentorg.com ([147.34.97.41]) by relay1.mentorg.com with esmtp id 1cZIWZ-0001tq-Hs from Thomas_Schwinge@mentor.com for gcc-patches@gcc.gnu.org; Thu, 02 Feb 2017 06:38:11 -0800 Received: from tftp-cs (147.34.91.1) by svr-orw-fem-04.mgc.mentorg.com (147.34.97.41) with Microsoft SMTP Server id 14.3.224.2; Thu, 2 Feb 2017 06:38:11 -0800 Received: by tftp-cs (Postfix, from userid 49978) id A79FFC1FE9; Thu, 2 Feb 2017 06:38:10 -0800 (PST) From: Thomas Schwinge To: Subject: libgomp, nvptx plugin: Make "nvptx_exec" static (was: [PATCH 7/10] OpenACC 2.0 support for libgomp - OpenACC runtime, NVidia PTX/CUDA plugin) In-Reply-To: <20140923191931.2177e60f@octopus> References: <20140923191931.2177e60f@octopus> User-Agent: Notmuch/0.9-125-g4686d11 (http://notmuchmail.org) Emacs/24.5.1 (x86_64-pc-linux-gnu) Date: Thu, 02 Feb 2017 14:38:00 -0000 Message-ID: <8760ksbquu.fsf@euler.schwinge.homeip.net> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-SW-Source: 2017-02/txt/msg00160.txt.bz2 Hi! On Tue, 23 Sep 2014 19:19:31 +0100, Julian Brown = wrote: > This patch contains the bulk of the OpenACC 2.0 runtime support, [...] > --- /dev/null > +++ b/libgomp/plugin-nvptx.c > +void > +PTX_exec (void (*fn), size_t mapnum, void **hostaddrs, void **devaddrs, > + size_t *sizes, unsigned short *kinds, int num_gangs, int num_workers, > + int vector_length, int async, void *targ_mem_desc) > +{ As obvious, committed to trunk in r245127: commit fbfa5aaf7537a8d4a86873dd993fdd20aaed0298 Author: tschwinge Date: Thu Feb 2 14:35:30 2017 +0000 libgomp, nvptx plugin: Make "nvptx_exec" static =20=20=20=20 libgomp/ * plugin/plugin-nvptx.c (nvptx_exec): Make it static. =20=20=20=20 git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@245127 138bc75d-0d04-04= 10-961f-82ee72b054a4 --- libgomp/ChangeLog | 2 ++ libgomp/plugin/plugin-nvptx.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git libgomp/ChangeLog libgomp/ChangeLog index 5f05cdb..56dc5bb 100644 --- libgomp/ChangeLog +++ libgomp/ChangeLog @@ -1,5 +1,7 @@ 2017-02-02 Thomas Schwinge =20 + * plugin/plugin-nvptx.c (nvptx_exec): Make it static. + * libgomp-plugin.h (GOMP_OFFLOAD_openacc_parallel): Rename to GOMP_OFFLOAD_openacc_exec. Adjust all users. (GOMP_OFFLOAD_openacc_get_current_cuda_device): Rename to diff --git libgomp/plugin/plugin-nvptx.c libgomp/plugin/plugin-nvptx.c index 0284c7f..36d447c 100644 --- libgomp/plugin/plugin-nvptx.c +++ libgomp/plugin/plugin-nvptx.c @@ -1041,7 +1041,7 @@ event_add (enum ptx_event_type type, CUevent *e, void= *h, int val) pthread_mutex_unlock (&ptx_event_lock); } =20 -void +static void nvptx_exec (void (*fn), size_t mapnum, void **hostaddrs, void **devaddrs, int async, unsigned *dims, void *targ_mem_desc) { Backported to gomp-4_0-branch in r245128: commit 18ebacbb8d4a978eee356d6bfb5051a431e6400b Author: tschwinge Date: Thu Feb 2 14:36:31 2017 +0000 libgomp, nvptx plugin: Make "nvptx_exec" static =20=20=20=20 Backport from trunk r245127: =20=20=20=20 libgomp/ * plugin/plugin-nvptx.c (nvptx_exec): Make it static. =20=20=20=20 git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gomp-4_0-branch@2451= 28 138bc75d-0d04-0410-961f-82ee72b054a4 --- libgomp/ChangeLog.gomp | 5 +++++ libgomp/plugin/plugin-nvptx.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git libgomp/ChangeLog.gomp libgomp/ChangeLog.gomp index 17b10ef..062103e 100644 --- libgomp/ChangeLog.gomp +++ libgomp/ChangeLog.gomp @@ -1,5 +1,10 @@ 2017-02-02 Thomas Schwinge =20 + Backport from trunk r245127: + 2017-02-02 Thomas Schwinge + + * plugin/plugin-nvptx.c (nvptx_exec): Make it static. + Backport from trunk r245125: 2017-02-02 Thomas Schwinge =20 diff --git libgomp/plugin/plugin-nvptx.c libgomp/plugin/plugin-nvptx.c index 79c58c6..15018e5 100644 --- libgomp/plugin/plugin-nvptx.c +++ libgomp/plugin/plugin-nvptx.c @@ -888,7 +888,7 @@ event_add (enum ptx_event_type type, CUevent *e, void *= h, int val) pthread_mutex_unlock (&ptx_event_lock); } =20 -void +static void nvptx_exec (void (*fn), size_t mapnum, void **hostaddrs, void **devaddrs, int async, unsigned *dims, void *targ_mem_desc) { Gr=C3=BC=C3=9Fe Thomas