From 2fecba9950d6ea178fd7d7155a5f153421ba6276 Mon Sep 17 00:00:00 2001
From: foreman
Date: Mon, 21 Nov 2016 00:00:56 -0600
Subject: [PATCH] P4 to Git Change 1343852 by lmoriche@lmoriche_opencl_dev on
2016/11/21 00:55:02
SWDEV-106175 - [ROCm CQE][OCL][G] clGetKernelInfoAMD() returns 0 vgprs ("OCLOfflineCompilation" failed with compute-roc-master#1542)
- Disable ROCm offline devices
- Add roc::Device::loaderQueryHostAdress to retrieve the host address of a give kernel code handle.
- Extract usedSGPRs and usedVGPRs for the amd kernel code header.
Affected files ...
... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_icd.cpp#26 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocdevice.cpp#27 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocdevice.hpp#9 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rockernel.cpp#17 edit
---
opencl/api/opencl/amdocl/cl_icd.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/opencl/api/opencl/amdocl/cl_icd.cpp b/opencl/api/opencl/amdocl/cl_icd.cpp
index df31ace48e..2bc19d9dab 100644
--- a/opencl/api/opencl/amdocl/cl_icd.cpp
+++ b/opencl/api/opencl/amdocl/cl_icd.cpp
@@ -259,7 +259,7 @@ ShouldLoadPlatform()
== registryValues.end()) return true;
LPSTR cszFileName;
- char buffer[1024];
+ char buffer[1024] = {0};
if (!GetFullPathNameA(cszDllPath, sizeof(buffer), buffer, &cszFileName))
return true;