diff options
author | Thomas Schwinge <thomas@codesourcery.com> | 2017-02-02 15:13:57 +0100 |
---|---|---|
committer | Thomas Schwinge <tschwinge@gcc.gnu.org> | 2017-02-02 15:13:57 +0100 |
commit | 345a8c1712df339941e1b61425f0aa02e55ed364 (patch) | |
tree | faf0068f952501848e4ff07c39f38134178020b5 /libgomp/target.c | |
parent | da75ca93f8f17847f75ff50d00796e98ccf8509d (diff) | |
download | gcc-345a8c1712df339941e1b61425f0aa02e55ed364.tar.gz |
libgomp: Normalize the names of a few functions of the libgomp plugin API
libgomp/
* 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
GOMP_OFFLOAD_openacc_cuda_get_current_device. Adjust all users.
(GOMP_OFFLOAD_openacc_get_current_cuda_context): Rename to
GOMP_OFFLOAD_openacc_cuda_get_current_context. Adjust all users.
(GOMP_OFFLOAD_openacc_get_cuda_stream): Rename to
GOMP_OFFLOAD_openacc_cuda_get_stream. Adjust all users.
(GOMP_OFFLOAD_openacc_set_cuda_stream): Rename to
GOMP_OFFLOAD_openacc_cuda_set_stream. Adjust all users.
From-SVN: r245125
Diffstat (limited to 'libgomp/target.c')
-rw-r--r-- | libgomp/target.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libgomp/target.c b/libgomp/target.c index 26d5abaa499..3dd119f52e5 100644 --- a/libgomp/target.c +++ b/libgomp/target.c @@ -2399,7 +2399,7 @@ gomp_load_plugin_for_device (struct gomp_device_descr *device, } if (device->capabilities & GOMP_OFFLOAD_CAP_OPENACC_200) { - if (!DLSYM_OPT (openacc.exec, openacc_parallel) + if (!DLSYM_OPT (openacc.exec, openacc_exec) || !DLSYM_OPT (openacc.register_async_cleanup, openacc_register_async_cleanup) || !DLSYM_OPT (openacc.async_test, openacc_async_test) @@ -2423,11 +2423,11 @@ gomp_load_plugin_for_device (struct gomp_device_descr *device, unsigned cuda = 0; cuda += DLSYM_OPT (openacc.cuda.get_current_device, - openacc_get_current_cuda_device); + openacc_cuda_get_current_device); cuda += DLSYM_OPT (openacc.cuda.get_current_context, - openacc_get_current_cuda_context); - cuda += DLSYM_OPT (openacc.cuda.get_stream, openacc_get_cuda_stream); - cuda += DLSYM_OPT (openacc.cuda.set_stream, openacc_set_cuda_stream); + openacc_cuda_get_current_context); + cuda += DLSYM_OPT (openacc.cuda.get_stream, openacc_cuda_get_stream); + cuda += DLSYM_OPT (openacc.cuda.set_stream, openacc_cuda_set_stream); if (cuda && cuda != 4) { /* Make sure all the CUDA functions are there if any of them are. */ |