This is the mail archive of the gcc-cvs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

r226492 - in /branches/hsa: gcc/ChangeLog.hsa g...


Author: marxin
Date: Mon Aug  3 09:05:32 2015
New Revision: 226492

URL: https://gcc.gnu.org/viewcvs?rev=226492&root=gcc&view=rev
Log:
HSA: introduce more pure kernel information emission.

	* plugin/plugin-hsa.c (struct hsa_kernel_description): New structure.
	(struct brig_image_desc): Use it.
	(struct kernel_info): Add omp_data_size member.
	(struct module_info): Remove unused field.
	(GOMP_OFFLOAD_load_image): Load the newly added format.
	(create_kernel_dispatch): Allocate exactly ammount of memory needed
	for OMP data passing.
	(init_single_kernel): Print the OMP memory.
	hsa.c (init_hsa_image): Use new structure.

        * hsa-brig.c (hsa_output_kernel_mapping): Serialize new data structure.
	* hsa-gen.c (hsa_function_representation::hsa_function_representation):
	Add new field.
	(gen_hsa_insns_for_kernel_call): Calculate maximum amount of memory
	needed for OMP data.
	(generate_hsa): Likewise.
	* hsa.c (hsa_add_kern_decl_mapping): New function.
	(hsa_get_decl_kernel_mapping_omp_size): Likewise.
	* hsa.h: Add declaration of these functions.


Modified:
    branches/hsa/gcc/ChangeLog.hsa
    branches/hsa/gcc/hsa-brig.c
    branches/hsa/gcc/hsa-gen.c
    branches/hsa/gcc/hsa.c
    branches/hsa/gcc/hsa.h
    branches/hsa/libgomp/ChangeLog.hsa
    branches/hsa/libgomp/hsa.c
    branches/hsa/libgomp/plugin/plugin-hsa.c


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]