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: 5cb151c778]
This commit is contained in:
@@ -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;
|
||||
|
||||
مرجع در شماره جدید
Block a user