From c4c871ba6ce92893e60dbdd059a9c71e2ad63fbb Mon Sep 17 00:00:00 2001
From: foreman
Date: Thu, 27 Sep 2018 13:15:51 -0400
Subject: [PATCH] P4 to Git Change 1611614 by wchau@wchau_OCL_boltzmann on
2018/09/27 12:54:16
SWDEV-164014 - OCLPerfCounters results in "LLVM ERROR: out of memory"
- use generic hsa_ven_amd_aqlprofile_pfn_t to point to extension function table
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/roccounters.hpp#3 edit
[ROCm/clr commit: 5616270bbd0760d4b453bb39d42a3af05ee55ff6]
---
projects/clr/rocclr/runtime/device/rocm/roccounters.hpp | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/projects/clr/rocclr/runtime/device/rocm/roccounters.hpp b/projects/clr/rocclr/runtime/device/rocm/roccounters.hpp
index beabd50b29..3fb3818fa1 100644
--- a/projects/clr/rocclr/runtime/device/rocm/roccounters.hpp
+++ b/projects/clr/rocclr/runtime/device/rocm/roccounters.hpp
@@ -106,8 +106,9 @@ class PerfCounterProfile : public amd::ReferenceCountedObject {
return false;
}
- 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) {
+ if (hsa_system_get_major_extension_table(HSA_EXTENSION_AMD_AQLPROFILE,
+ hsa_ven_amd_aqlprofile_VERSION_MAJOR, sizeof(hsa_ven_amd_aqlprofile_pfn_t),
+ &api_) != HSA_STATUS_SUCCESS) {
return false;
}