r278131 - in /trunk/gcc: ChangeLog config/gcn/g...

ams@gcc.gnu.org ams@gcc.gnu.org
Wed Nov 13 12:37:00 GMT 2019


Author: ams
Date: Wed Nov 13 12:37:44 2019
New Revision: 278131

URL: https://gcc.gnu.org/viewcvs?rev=278131&root=gcc&view=rev
Log:
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.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/gcn/gcn-run.c



More information about the Gcc-cvs mailing list