From fa637afba8ac42d93f5c1838073ab026650e01dd Mon Sep 17 00:00:00 2001 From: foreman Date: Wed, 22 Apr 2015 11:31:43 -0400 Subject: [PATCH] P4 to Git Change 1143317 by yaxunl@yaxunl_stg_win50 on 2015/04/22 11:23:22 ECR #304775 - Wave limiter: fix bug about some variables not initialized before being used. Affected files ... ... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpuwavelimiter.cpp#2 edit [ROCm/clr commit: 5cb151c77868fc0530eeec77dc07967afcec0a50] --- .../clr/rocclr/runtime/device/gpu/gpuwavelimiter.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/projects/clr/rocclr/runtime/device/gpu/gpuwavelimiter.cpp b/projects/clr/rocclr/runtime/device/gpu/gpuwavelimiter.cpp index 47353e9e42..88d0de3362 100644 --- a/projects/clr/rocclr/runtime/device/gpu/gpuwavelimiter.cpp +++ b/projects/clr/rocclr/runtime/device/gpu/gpuwavelimiter.cpp @@ -47,6 +47,12 @@ WaveLimiter::WaveLimiter(Kernel *owner) : setIfNotDefault(SIMDPerSH_, GPU_WAVE_LIMIT_CU_PER_SH, attrib.numberOfCUsperShaderArray * hwInfo->simdPerCU_); + MaxWave = GPU_WAVE_LIMIT_MAX_WAVE; + WarmUpCount = GPU_WAVE_LIMIT_WARMUP; + AdaptCount = GPU_WAVE_LIMIT_ADAPT * MaxWave; + RunCount = GPU_WAVE_LIMIT_RUN * MaxWave; + AbandonThresh = GPU_WAVE_LIMIT_ABANDON; + state_ = WARMUP; dynRunCount_ = RunCount; auto size = MaxWave + 1; @@ -60,12 +66,6 @@ WaveLimiter::WaveLimiter(Kernel *owner) : ".txt"); } - MaxWave = GPU_WAVE_LIMIT_MAX_WAVE; - WarmUpCount = GPU_WAVE_LIMIT_WARMUP; - AdaptCount = GPU_WAVE_LIMIT_ADAPT * MaxWave; - RunCount = GPU_WAVE_LIMIT_RUN * MaxWave; - AbandonThresh = GPU_WAVE_LIMIT_ABANDON; - waves_ = GPU_WAVES_PER_SIMD; bestWave_ = MaxWave; enable_ = false;