Hi!

On Tue, 23 Sep 2014 19:19:31 +0100, Julian Brown <jul...@codesourcery.com> 
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 <tschwinge@138bc75d-0d04-0410-961f-82ee72b054a4>
Date:   Thu Feb 2 14:35:30 2017 +0000

    libgomp, nvptx plugin: Make "nvptx_exec" static
    
            libgomp/
            * plugin/plugin-nvptx.c (nvptx_exec): Make it static.
    
    git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@245127 
138bc75d-0d04-0410-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  <tho...@codesourcery.com>
 
+       * 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);
 }
 
-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 <tschwinge@138bc75d-0d04-0410-961f-82ee72b054a4>
Date:   Thu Feb 2 14:36:31 2017 +0000

    libgomp, nvptx plugin: Make "nvptx_exec" static
    
    Backport from trunk r245127:
    
            libgomp/
            * plugin/plugin-nvptx.c (nvptx_exec): Make it static.
    
    git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gomp-4_0-branch@245128 
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  <tho...@codesourcery.com>
 
+       Backport from trunk r245127:
+       2017-02-02  Thomas Schwinge  <tho...@codesourcery.com>
+
+       * plugin/plugin-nvptx.c (nvptx_exec): Make it static.
+
        Backport from trunk r245125:
        2017-02-02  Thomas Schwinge  <tho...@codesourcery.com>
 
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);
 }
 
-void
+static void
 nvptx_exec (void (*fn), size_t mapnum, void **hostaddrs, void **devaddrs,
            int async, unsigned *dims, void *targ_mem_desc)
 {


Grüße
 Thomas

Reply via email to