]> git.ipfire.org Git - thirdparty/gcc.git/commit
Add OpenACC acc_get_property support for AMD GCN
authorFrederik Harwath <frederik@codesourcery.com>
Wed, 29 Jan 2020 09:19:50 +0000 (10:19 +0100)
committerFrederik Harwath <frederik@codesourcery.com>
Wed, 29 Jan 2020 10:54:56 +0000 (11:54 +0100)
commit2e5ea57959183bd5bd0356739bb5167417401a31
treef491075db14d24fde5d83ad025913e63456a3c0c
parentf57ccb55cdaeabd099618622b6ddee3d03cc4fbf
Add OpenACC acc_get_property support for AMD GCN

Add full support for the OpenACC 2.6 acc_get_property and
acc_get_property_string functions to the libgomp GCN plugin.

libgomp/
* plugin-gcn.c (struct agent_info): Add fields "name" and
"vendor_name" ...
(GOMP_OFFLOAD_init_device): ... and init from here.
(struct hsa_context_info): Add field "driver_version_s" ...
(init_hsa_contest): ... and init from here.
(GOMP_OFFLOAD_openacc_get_property): Replace stub with a proper
implementation.
* testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
Enable test execution for amdgcn and host offloading targets.
* testsuite/libgomp.oacc-fortran/acc_get_property.f90: Likewise.
* testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
(expect_device_properties): Split function into ...
(expect_device_string_properties): ... this new function ...
(expect_device_memory): ... and this new function.
* testsuite/libgomp.oacc-c-c++-common/acc_get_property-gcn.c:
Add test.
libgomp/ChangeLog
libgomp/plugin/plugin-gcn.c
libgomp/testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
libgomp/testsuite/libgomp.oacc-c-c++-common/acc_get_property-gcn.c [new file with mode: 0644]
libgomp/testsuite/libgomp.oacc-c-c++-common/acc_get_property.c
libgomp/testsuite/libgomp.oacc-fortran/acc_get_property.f90