aboutsummaryrefslogtreecommitdiff
path: root/libgomp
diff options
context:
space:
mode:
authorAndrew Stubbs <ams@codesourcery.com>2020-11-23 16:27:59 +0000
committerAndrew Stubbs <ams@codesourcery.com>2020-12-09 11:10:40 +0000
commit85f0a4d98229203181014fb84a1e4f74813aab9e (patch)
treea99494730010035bc8b5a1c93b4ad464f4f4f40a /libgomp
parent42bdf814493c2c39e7a6bd3fb2dd4491352ce5d9 (diff)
downloadgcc-85f0a4d98229203181014fb84a1e4f74813aab9e.zip
gcc-85f0a4d98229203181014fb84a1e4f74813aab9e.tar.gz
gcc-85f0a4d98229203181014fb84a1e4f74813aab9e.tar.bz2
Import HSA header files from AMD
These are the same header files that exist in the Radeon Open Compute Runtime project (as of October 2020), but they have been specially relicensed by AMD for use in GCC. The header files retain AMD copyright. include/ChangeLog: * hsa.h: Replace whole file. * hsa_ext_amd.h: New file. * hsa_ext_image.h: New file. libgomp/ChangeLog: * plugin/plugin-gcn.c: Include hsa_ext_amd.h. (HSA_AMD_AGENT_INFO_COMPUTE_UNIT_COUNT): Delete redundant definition.
Diffstat (limited to 'libgomp')
-rw-r--r--libgomp/plugin/plugin-gcn.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/libgomp/plugin/plugin-gcn.c b/libgomp/plugin/plugin-gcn.c
index ebb6fbc..e53c6def9 100644
--- a/libgomp/plugin/plugin-gcn.c
+++ b/libgomp/plugin/plugin-gcn.c
@@ -37,6 +37,7 @@
#include <stdbool.h>
#include <limits.h>
#include <hsa.h>
+#include <hsa_ext_amd.h>
#include <dlfcn.h>
#include <signal.h>
#include "libgomp-plugin.h"
@@ -46,11 +47,6 @@
#include "oacc-int.h"
#include <assert.h>
-/* Additional definitions not in HSA 1.1.
- FIXME: this needs to be updated in hsa.h for upstream, but the only source
- right now is the ROCr source which may cause license issues. */
-#define HSA_AMD_AGENT_INFO_COMPUTE_UNIT_COUNT 0xA002
-
/* These probably won't be in elf.h for a while. */
#ifndef R_AMDGPU_NONE
#define R_AMDGPU_NONE 0