r231011 - in /branches/hsa: gcc/ChangeLog.hsa g...
marxin@gcc.gnu.org
marxin@gcc.gnu.org
Fri Nov 27 12:57:00 GMT 2015
Author: marxin
Date: Fri Nov 27 12:57:53 2015
New Revision: 231011
URL: https://gcc.gnu.org/viewcvs?rev=231011&root=gcc&view=rev
Log:
HSA: implement omp_get_level
* plugin/plugin-hsa.c (struct hsa_kernel_description):
Add field gridified_kernel_p.
(struct kernel_info): Likewise.
(GOMP_OFFLOAD_load_image): Fill-up the field.
(init_single_kernel): Dump value of the field.
(create_kernel_dispatch): Set-up omp_level for kernel
packet dispatch structure.
* hsa-brig.c (hsa_output_kernels): Append gridified_kernel_p
to kernel_info structure.
* hsa-gen.c (gen_get_level): Generate call of the builtin.
(gen_hsa_insns_for_known_library_call): Call the aforementioned
function.
(generate_hsa):Output gridified_kernel_p from HSA summary.
* hsa.c (struct hsa_decl_kernel_map_element): Add
gridified_kernel_p field.
(hsa_add_kern_decl_mapping): Add argument for the field.
(hsa_get_decl_kernel_mapping_gridified): New function.
(hsa_summary_t::link_functions): Add new argument for
gridified_kernel_p.
(hsa_register_kernel): Mark gridified kernel within HSA summary.
* hsa.h (struct hsa_function_summary): Declare new field
in HSA summary.
* ipa-hsa.c (process_hsa_functions): Use modified signature of
link_functions.
* gomp-constants.h (struct GOMP_hsa_kernel_dispatch): Declare
new field in kernel dispatch structure.
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/gcc/ipa-hsa.c
branches/hsa/include/ChangeLog.hsa
branches/hsa/include/gomp-constants.h
branches/hsa/libgomp/ChangeLog.hsa
branches/hsa/libgomp/plugin/plugin-hsa.c
More information about the Gcc-cvs
mailing list