[gomp4] Move libgomp plugins into subdirectory

Julian Brown julian@codesourcery.com
Wed Nov 5 17:57:00 GMT 2014


Hi,

This patch moves plugin-nvptx.c and plugin-host.c (from oacc-host.c)
into a new "plugin" subdirectory, as requested by Jakub, and to match
more closely the layout of the Intel MIC pieces. This also moves the
autotools bits to enable the NVPTX plugin and locate CUDA libraries
into the plugin directory's (new) configury bits.

So far this only changes the location of the source files: the plugins
themselves are still installed to the same place as before (alongside
libgomp itself).

Test results look reasonable with my (patched for PTX support) version
of the gomp4 branch. I'll apply it there shortly.

Thanks,

Julian

ChangeLog

    libgomp/
    * Makefile.am (SUBDIRS): Add plugin.
    (DIST_SUBDIRS): Define.
    (libgomp_plugin_nvptx_*): Remove nvptx support from here.
    (libgomp_plugin_host_nonshm_*): Likewise.
    * Makefile.in: Regenerate.
    * configure: Regenerate.
    * oacc-host.c: Replace with #include of plugin/plugin-host.c code,
    move implementation to the latter.
    * plugin/plugin-host.c: New file.
    * plugin-nvptx.c: Move to...
    * plugin/plugin-nvptx.c: New file.
    * plugin/Makefile.am: New.
    * plugin/Makefile.in: Regenerate.
    * plugin/aclocal.m4: Regenerate.
    * plugin/configure: Regenerate.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: plugin-subdir-1-gomp4.diff
Type: text/x-patch
Size: 138726 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20141105/673810e6/attachment.bin>


More information about the Gcc-patches mailing list