]> git.ipfire.org Git - people/ms/gcc.git/commit
Detect number of GPU compute units.
authorAndrew Stubbs <ams@codesourcery.com>
Thu, 25 Jul 2019 10:26:45 +0000 (11:26 +0100)
committerThomas Schwinge <thomas@codesourcery.com>
Tue, 3 Mar 2020 11:51:25 +0000 (12:51 +0100)
commit7f925450379fe7fcaecafd38d6fa67aaa499cd6d
treef893167cc2e5390339330b96e4e22fa688bc8cd6
parent993d229d9afc275a5f44023d74098bbf03200d97
Detect number of GPU compute units.

2019-09-10  Andrew Stubbs  <ams@codesourcery.com>

libgomp/
* plugin/plugin-gcn.c (HSA_AMD_AGENT_INFO_COMPUTE_UNIT_COUNT): Define.
(dump_hsa_agent_info): Dump compute unit count.
(get_cu_count): New function.
(parse_target_attributes): Use get_cu_count for default gdims.
(gcn_exec): Likewise.

(cherry picked from openacc-gcc-9-branch commit
4bc3e873bcaa3b671dc7c6afbfaa02a4459daae6)
libgomp/ChangeLog.omp
libgomp/plugin/plugin-gcn.c