Re: [gomp] constify device data & fix cleanup

2015-07-15 Thread Nathan Sidwell
On 07/15/15 04:42, Ilya Verbin wrote: 2015-07-15 2:59 GMT+03:00 Nathan Sidwell : The other thing this does is change the interface between libgommp and the plugin's load_image and unload_image routines. I've added the ability to return a pointer to target-specific connection data, and have it

Re: [gomp] constify device data & fix cleanup

2015-07-15 Thread Thomas Schwinge
Hi! On Tue, 14 Jul 2015 19:59:17 -0400, Nathan Sidwell wrote: > This patch turned out a little larger than expected as I ran into an API > limitation between libgomp and the plugins. > > The patch changes GOMP_offload_{,un}register to take a pointer to constant > target data. I've fixed up th

Re: [gomp] constify device data & fix cleanup

2015-07-15 Thread Ilya Verbin
2015-07-15 2:59 GMT+03:00 Nathan Sidwell : > The other thing this does is change the interface between libgommp and the > plugin's load_image and unload_image routines. I've added the ability to > return a pointer to target-specific connection data, and have it provided to > the unload function

[gomp] constify device data & fix cleanup

2015-07-14 Thread Nathan Sidwell
This patch turned out a little larger than expected as I ran into an API limitation between libgomp and the plugins. The patch changes GOMP_offload_{,un}register to take a pointer to constant target data. I've fixed up the two mkoffloads to constify their target data. The other thing this do