fix gomp offload routine unloading

Nathan Sidwell nathan@acm.org
Tue Jul 21 13:39:00 GMT 2015


On 07/21/15 09:20, Ilya Verbin wrote:
> On Tue, Jul 21, 2015 at 08:15:41 -0400, Nathan Sidwell wrote:
>> On 07/21/15 05:51, Jakub Jelinek wrote:
>>> On Mon, Jul 20, 2015 at 07:08:55PM -0400, Nathan Sidwell wrote:
>>>> 2015-07-20  Nathan Sidwell  <nathan@codesourcery.com>
>>>>
>>>> 	libgomp/
>>>> 	* target.c (gomp_offload_image_to_device): Rename to ...
>>>> 	(gomp_load_image_to_device): ... here.
>>>> 	(GOMP_offload_register): Adjust call.
>>>> 	(gomp_init_device): Likewise.
>>>> 	(gomp_unload_image_from_device): New.  Broken out of ...
>>>> 	(GOMP_offload_unregister): ... here.  Call it.
>>>> 	(gomp_unload_device): New.
>>>> 	* libgomp.h (gomp_unload_device): Declare.
>>>> 	* oacc-init.c (acc_shutdown_1): Unload from device before deleting
>>>> 	mem maps.
>>>>
>>>> 	gcc/
>>>> 	* config/nvptx/mkoffload.c (process): Add destructor call.
>>>
>>> Ok if also tested on Intel MIC, with a few changes:
>>
>> Ilya, are you able to test Intel MIC for me?
>
> I don't see any regressions on MIC.

thanks!



More information about the Gcc-patches mailing list