Fix host-to-device copies from rodata for AMD GCN
authorJulian Brown <julian@codesourcery.com>
Wed, 20 Nov 2019 17:53:31 +0000 (17:53 +0000)
committerJulian Brown <jules@gcc.gnu.org>
Wed, 20 Nov 2019 17:53:31 +0000 (17:53 +0000)
commit8d2f4ddfd70f2ad9829cdc404e9c382f6fc9b072
treef0c07d7c1a154a3c4799f63986997bc0d7e1d559
parent56e0452513b38110a711c402e32b34ad3a2354aa
Fix host-to-device copies from rodata for AMD GCN

libgomp/
* plugin/plugin-gcn.c (hsa_memory_copy_wrapper): New.
(copy_data, GOMP_OFFLOAD_host2dev): Use above function.
(GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_dev2dev): Check hsa_memory_copy
return code.

Reviewed-by: Andrew Stubbs <ams@codesourcery.com>
From-SVN: r278516
libgomp/ChangeLog
libgomp/plugin/plugin-gcn.c