diff --git a/projects/clr/rocclr/runtime/device/rocm/roccounters.hpp b/projects/clr/rocclr/runtime/device/rocm/roccounters.hpp index 29a9bf4ef2..beabd50b29 100644 --- a/projects/clr/rocclr/runtime/device/rocm/roccounters.hpp +++ b/projects/clr/rocclr/runtime/device/rocm/roccounters.hpp @@ -106,7 +106,8 @@ class PerfCounterProfile : public amd::ReferenceCountedObject { return false; } - if (hsa_system_get_extension_table(HSA_EXTENSION_AMD_AQLPROFILE, 1, 0, &api_) != HSA_STATUS_SUCCESS) { + if (hsa_system_get_major_extension_table(HSA_EXTENSION_AMD_AQLPROFILE, 1, + sizeof(hsa_ven_amd_aqlprofile_1_00_pfn_t), &api_) != HSA_STATUS_SUCCESS) { return false; }