X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=libgomp%2Foacc-plugin.c;h=b4f71a11c18b1f9e84a92e480fb305949f40ba10;hb=5feffd51c51c0ca461c3819db9ff364ed2eec1c5;hp=5480c1db56eea49b0681047c4e90c296d44f6305;hpb=33dacef99912c0fb7aa832fb241ac32f7130a1e8;p=thirdparty%2Fgcc.git diff --git a/libgomp/oacc-plugin.c b/libgomp/oacc-plugin.c index 5480c1db56ee..b4f71a11c18b 100644 --- a/libgomp/oacc-plugin.c +++ b/libgomp/oacc-plugin.c @@ -29,6 +29,7 @@ #include "libgomp.h" #include "oacc-plugin.h" #include "oacc-int.h" +#include "acc_prof.h" /* This plugin function is now obsolete. */ void @@ -38,6 +39,14 @@ GOMP_PLUGIN_async_unmap_vars (void *ptr __attribute__((unused)), gomp_fatal ("invalid plugin function"); } +/* Return the TLS data for the current thread. */ + +struct goacc_thread * +GOMP_PLUGIN_goacc_thread (void) +{ + return goacc_thread (); +} + /* Return the target-specific part of the TLS data for the current thread. */ void * @@ -57,3 +66,11 @@ GOMP_PLUGIN_acc_default_dim (unsigned int i) } return goacc_default_dims[i]; } + +void +GOMP_PLUGIN_goacc_profiling_dispatch (acc_prof_info *prof_info, + acc_event_info *event_info, + acc_api_info *api_info) +{ + goacc_profiling_dispatch (prof_info, event_info, api_info); +}