[PATCH 2/10] OpenACC 2.0 support for libgomp - initial plugin support

Julian Brown julian@codesourcery.com
Tue Sep 23 18:18:00 GMT 2014

This patch is by Michael Zolotukhin and was originally posted here:


It contains an initial implementation of plugin support for libgomp,
for implementing different hardware devices for pieces of accelerated
code to be offloaded to.

I also merged a minor follow-up fix by Thomas Schwinge.


xxxx-xx-xx  Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
            Thomas Schwinge  <thomas@codesourcery.com>

       * configure.ac: Add checks for plugins support.
       * config.h.in: Regenerated.
       * configure: Regenerated.
       * target.c (struct target_mem_desc): Add device_descr field.
       (devices): New.
       (num_devices): New.
       (struct gomp_device_descr): New.
       (gomp_get_num_devices): Call gomp_target_init.
       (resolve_device): Return device_descr instead of int.
       (gomp_map_vars): Add devicep argument and update the function
       (gomp_unmap_tgt): Likewise.
       (gomp_unmap_vars): Likewise.
       (gomp_update): Likewise.
       (GOMP_target): Use device_descr struct.
       (GOMP_target_data): Likewise.
       (GOMP_target_update): Likewise.
       (gomp_check_plugin_file_name): New.
       (gomp_load_plugin_for_device): New.
       (gomp_find_available_plugins): New.
       (gomp_target_init): New.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 02-initial-plugin-support-1.diff
Type: text/x-patch
Size: 19779 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20140923/6926aed5/attachment.bin>

More information about the Gcc-patches mailing list