diff options
author | Andrew Stubbs <ams@codesourcery.com> | 2019-11-13 12:37:44 +0000 |
---|---|---|
committer | Andrew Stubbs <ams@gcc.gnu.org> | 2019-11-13 12:37:44 +0000 |
commit | e3d0ee4acf2bc84a3e081442ba022ab148958a7b (patch) | |
tree | dc7b37e290a51a82d5c0a53b97e6eda34d57614b /libgomp | |
parent | 2dbad62da9a2b1734aa74b2b0fcf6fb3ff52a4ac (diff) | |
download | gcc-e3d0ee4acf2bc84a3e081442ba022ab148958a7b.zip gcc-e3d0ee4acf2bc84a3e081442ba022ab148958a7b.tar.gz gcc-e3d0ee4acf2bc84a3e081442ba022ab148958a7b.tar.bz2 |
Move gcn-run heap into GPU memory.
2019-11-13 Andrew Stubbs <ams@codesourcery.com>
gcc/
* config/gcn/gcn-run.c (heap_region): New global variable.
(struct hsa_runtime_fn_info): Add hsa_memory_assign_agent_fn.
(init_hsa_runtime_functions): Initialize hsa_memory_assign_agent.
(get_kernarg_region): Move contents to ....
(get_memory_region): .... here.
(get_heap_region): New function.
(init_device): Initialize the heap_region.
(device_malloc): Add region parameter.
(struct kernargs): Move heap ....
(heap): ... to global scope.
(main): Allocate heap separate to kernargs.
From-SVN: r278131
Diffstat (limited to 'libgomp')
0 files changed, 0 insertions, 0 deletions