offload data version number
Nathan Sidwell
nathan@acm.org
Tue Jul 21 13:28:00 GMT 2015
This trunk patch implements new register and unregister entry points to allow
specifying data version information. (I'll shortly be posting patches changing
the PTX offload data format.)
We now have GOMP_offload_{,un}register_2, which take an additional unsigned int
version number. The version number is composed of two parts. 16 bits for the
libgomp version and 16 bits for the device-specific plugin. Currently both are
zero. When the PTX data changes, that device-specific value will increment.
The existing register/unregister calls forward to the new ones, providing zero
for the version information.
On the plugin side I've added 2 new entry points GOMP_OFFLOAD_{,un}load_image_2,
which also take an additional version number argument. These entry points are
optional, and only added to the PTX plugin. The existing plugin entrypoints
forward to the new ones.
libgomp will use these new entry points if they exist, otherwise use the
original entry points, provided the incoming version is zero.
I added the GOMP_offload_{,un}register_2 routines to the libgomp map file as
version 4.0.2 -- I wasn't sure whether to increment it more than that. Advice
sought.
ok?
nathan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: trunk-version.patch
Type: text/x-patch
Size: 12696 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20150721/49a5f736/attachment.bin>
More information about the Gcc-patches
mailing list