[ add gcc-patches@ ]

On 15-01-19 11:38, Tom de Vries wrote:
> Hi
> 
> Copied from here (
> https://gcc.gnu.org/ml/gcc-patches/2015-05/msg00532.html ):
>> This too. Retested for libgomp/NVPTX.
>>
>> OK for trunk now?
>>
> 
> The plugin-nvptx.c part looks ok to me, for stage 1.
> 
> Thanks,
> - Tom
> 
>> Thanks,
>>
>> Julian
>>
>> ChangeLog
>>
>>     PR libgomp/65904
>>
>>     libgomp/
>>     * libgomp.h (gomp_free_memmap): Update prototype.
>>     * oacc-init.c (acc_shutdown_1): Pass device descriptor to
>>     gomp_free_memmap. Don't lock device around call.
>>     * target.c (gomp_map_vars): Initialise tgt->array to NULL before
>>     early exit.
>>     (GOMP_offload_unregister): Split out and call...
>>     (gomp_deoffload_image_from_device): This new function.
>>     (gomp_free_memmap): Call gomp_deoffload_image_from_device.
>>     * plugin/nvptx.c (struct ptx_image_data): Add ord, fn_descs fields.
>>     (nvptx_init): Tweak comment.
>>     (nvptx_attach_host_thread_to_device): Add locking with ptx_dev_lock
>>     around ptx_devices accesses.
>>     (GOMP_OFFLOAD_load_image): Populate new ptx_image_data fields.
>>     (GOMP_OFFLOAD_unload_image): Switch to ORD'th device before freeing
>>     images, and use fn_descs field from ptx_image_data instead of
>>     incorrectly using a pointer derived from target_data.
>>     (GOMP_OFFLOAD_openacc_create_thread_data): Add locking around
>>     ptx_devices accesses.
> 

Reply via email to