The HSA_VEN_AMD_AQLPROFILE_LEGACY_PM4_PACKET_SIZE is defined in an header file (hsa_ven_amd_aqlprofile.h) instead of a C file. The header is then included in rocprofiler.h and causes multiple definition errors at compile time when the rocprofiler header is included in more than one C file.
A possible fix for this problem could be to define the variable as static in the header file or to declare it extern in the header and define it another C file.
The
HSA_VEN_AMD_AQLPROFILE_LEGACY_PM4_PACKET_SIZE
is defined in an header file (hsa_ven_amd_aqlprofile.h
) instead of a C file. The header is then included inrocprofiler.h
and causes multiple definition errors at compile time when the rocprofiler header is included in more than one C file.A possible fix for this problem could be to define the variable as
static
in the header file or to declare itextern
in the header and define it another C file.