diff options
author | Kwok Cheung Yeung <kcy@codesourcery.com> | 2020-01-31 06:53:30 -0800 |
---|---|---|
committer | Kwok Cheung Yeung <kcy@codesourcery.com> | 2020-01-31 07:13:05 -0800 |
commit | 5a28e2727f718f14a2afccf16c4dda814af5b6f8 (patch) | |
tree | 0d286ca3d9f96a1418b9792a72ce2a4f4a54421b /libgomp/ChangeLog | |
parent | 6a97d9eae4543a995f895e6739530f55f5d039a7 (diff) | |
download | gcc-5a28e2727f718f14a2afccf16c4dda814af5b6f8.zip gcc-5a28e2727f718f14a2afccf16c4dda814af5b6f8.tar.gz gcc-5a28e2727f718f14a2afccf16c4dda814af5b6f8.tar.bz2 |
[amdgcn] Scale number of threads/workers with VGPR usage
2020-01-31 Kwok Cheung Yeung <kcy@codesourcery.com>
gcc/
* config/gcn/mkoffload.c (process_asm): Add sgpr_count and vgpr_count
to definition of hsa_kernel_description. Parse assembly to find SGPR
and VGPR count of kernel and store in hsa_kernel_description.
libgomp/
* plugin/plugin-gcn.c (struct hsa_kernel_description): Add sgpr_count
and vgpr_count fields.
(struct kernel_info): Add a field for a hsa_kernel_description.
(run_kernel): Reduce the number of threads/workers if the requested
number would require too many VGPRs.
(init_basic_kernel_info): Initialize description field with
the hsa_kernel_description entry for the kernel.
Diffstat (limited to 'libgomp/ChangeLog')
-rw-r--r-- | libgomp/ChangeLog | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libgomp/ChangeLog b/libgomp/ChangeLog index 0970724..557bec34 100644 --- a/libgomp/ChangeLog +++ b/libgomp/ChangeLog @@ -1,3 +1,13 @@ +2020-01-31 Kwok Cheung Yeung <kcy@codesourcery.com> + + * plugin/plugin-gcn.c (struct hsa_kernel_description): Add sgpr_count + and vgpr_count fields. + (struct kernel_info): Add a field for a hsa_kernel_description. + (run_kernel): Reduce the number of threads/workers if the requested + number would require too many VGPRs. + (init_basic_kernel_info): Initialize description field with + the hsa_kernel_description entry for the kernel. + 2020-01-29 Tobias Burnus <tobias@codesourcery.com> PR bootstrap/93409 |