Headers for dynamically loading HSA extracted from the ROCR-Runtime repository.
- Copy the files from runtime/hsa-runtime/inc to
include/hsa/. - Exclude
Brig.h. - Copy AQLProfile SDK headers from the ROCm
aqlprofileprojectsrc/core/include/aqlprofile-sdk/toinclude/aqlprofile-sdk/. - Use a configured
aqlprofile-sdk/version.hfrom a matching ROCm build or release package; the source tree containsversion.h.in.
hsa_ven_amd_aqlprofile.h: defineHSA_VEN_AMD_AQLPROFILE_LEGACY_PM4_PACKET_SIZEas an anonymous enum instead of a file-scopeconst unsigned. In C, the upstreamconstdefinition has external linkage and produces duplicate symbols when the header is included by more than one translation unit.