]> git.ipfire.org Git - thirdparty/gcc.git/commit
Move gcn-run heap into GPU memory.
authorAndrew Stubbs <ams@codesourcery.com>
Wed, 13 Nov 2019 12:37:44 +0000 (12:37 +0000)
committerAndrew Stubbs <ams@gcc.gnu.org>
Wed, 13 Nov 2019 12:37:44 +0000 (12:37 +0000)
commite3d0ee4acf2bc84a3e081442ba022ab148958a7b
treedc7b37e290a51a82d5c0a53b97e6eda34d57614b
parent2dbad62da9a2b1734aa74b2b0fcf6fb3ff52a4ac
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
gcc/ChangeLog
gcc/config/gcn/gcn-run.c