From 7edb3642a2f1ea13eb465ef48065a02119aff8ce Mon Sep 17 00:00:00 2001 From: foreman Date: Wed, 26 Sep 2018 17:14:11 -0400 Subject: [PATCH] P4 to Git Change 1611191 by wchau@wchau_OCL_boltzmann on 2018/09/26 17:00:31 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit SWDEV-164014 - OCLPerfCounters results in "LLVM ERROR: out of memory" - replace deprecated 'hsa_system_get_extension_table()' call with 'hsa_system_get_major_extension_table() with table size of “hsa_ven_amd_aqlprofile_1_00_pfn_t” Affected files ... ... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/roccounters.hpp#2 edit [ROCm/clr commit: b1eed992e15781f3675af42f57438f4e87d1d755] --- projects/clr/rocclr/runtime/device/rocm/roccounters.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; }