This is the mail archive of the gcc-cvs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

r208657 - in /branches/gomp-4_0-branch/libgomp:...


Author: kyukhin
Date: Tue Mar 18 16:58:37 2014
New Revision: 208657

URL: http://gcc.gnu.org/viewcvs?rev=208657&root=gcc&view=rev
Log:
Add offload register, device init and host-target mapping to libgomp.

libgomp/
  * libgomp.map (GOMP_4.0.1): New symbol version.
  Add GOMP_offload_register.
  * plugin-host.c (device_available): Replace with:
  (get_num_devices): This.
  (get_type): New.
  (offload_register): Ditto.
  (device_init): Ditto.
  (device_get_table): Ditto.
  (device_run): Ditto.
  * target.c (target_type): New enum.
  (offload_image_descr): New struct.
  (offload_images, num_offload_images): New globals.
  (struct gomp_device_descr): Remove device_available_func.
  Add type, is_initialized, get_type_func, get_num_devices_func,
  offload_register_func, device_init_func, device_get_table_func,
  device_run_func.
  (mapping_table): New struct.
  (GOMP_offload_register): New function.
  (gomp_init_device): Ditto.
  (GOMP_target): Add device initialization and lookup for target fn.
  (GOMP_target_data): Add device initialization.
  (GOMP_target_update): Ditto.
  (gomp_load_plugin_for_device): Take handles for get_type,
  get_num_devices, offload_register, device_init, device_get_table,
  device_run functions.
  (gomp_register_images_for_device): New function.
  (gomp_find_available_plugins): Add registration of offload images.


Modified:
    branches/gomp-4_0-branch/libgomp/ChangeLog.gomp
    branches/gomp-4_0-branch/libgomp/libgomp.map
    branches/gomp-4_0-branch/libgomp/plugin-host.c
    branches/gomp-4_0-branch/libgomp/target.c


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]