From 66417ec305680a2626621bce456c4462e3412234 Mon Sep 17 00:00:00 2001
From: foreman
Date: Mon, 2 Nov 2015 13:17:02 -0500
Subject: [PATCH] P4 to Git Change 1206500 by gandryey@gera-w8 on 2015/11/02
13:07:17
SWDEV-56468 - Support wave limiter in HSAIL path
- Fix uninitialized variable
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpukernel.cpp#307 edit
---
rocclr/runtime/device/gpu/gpukernel.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/rocclr/runtime/device/gpu/gpukernel.cpp b/rocclr/runtime/device/gpu/gpukernel.cpp
index 635ad22596..22b8955de4 100644
--- a/rocclr/runtime/device/gpu/gpukernel.cpp
+++ b/rocclr/runtime/device/gpu/gpukernel.cpp
@@ -3517,7 +3517,7 @@ HSAILKernel::init(amd::hsa::loader::Symbol *sym, bool finalize)
}
index_ = md.kernel_index;
- size_t sizeOfWavesPerSimdHint;
+ size_t sizeOfWavesPerSimdHint = sizeof(workGroupInfo_.wavesPerSimdHint_);
error = aclQueryInfo(dev().hsaCompiler(), prog().binaryElf(),
RT_WAVES_PER_SIMD_HINT, openClKernelName.c_str(),
&workGroupInfo_.wavesPerSimdHint_, &sizeOfWavesPerSimdHint);