P4 to Git Change 1611191 by wchau@wchau_OCL_boltzmann on 2018/09/26 17:00:31

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: b1eed992e1]
Этот коммит содержится в:
foreman
2018-09-26 17:14:11 -04:00
родитель dfe67fa6da
Коммит 7edb3642a2
+2 -1
Просмотреть файл
@@ -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;
}