P4 to Git Change 1792217 by asalmanp@asalmanp-ocl-stg on 2019/06/05 12:26:00

SWDEV-132899 - [OCL][GFX10] increase the numScratchWavesPerCu in Wave32 mode and use the actual num of CUs not the total num of WGPs when calculating the scratch buffer size

	ReviewBoardURL = http://ocltc.amd.com/reviews/r/17474/

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldevice.cpp#139 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palsettings.cpp#81 edit


[ROCm/clr commit: de52451edd]
This commit is contained in:
foreman
2019-06-05 12:35:41 -04:00
parent 00ac955a2f
commit 170f42c656
2 changed files with 4 additions and 1 deletions
@@ -211,6 +211,9 @@ bool Settings::create(const Pal::DeviceProperties& palProp,
enableWave32Mode_ = GPU_ENABLE_WAVE32_MODE;
}
lcWavefrontSize64_ = !enableWave32Mode_;
if (enableWave32Mode_) {
numScratchWavesPerCu_ *= 2;
}
// Fall through to AI (gfx9) ...
case Pal::AsicRevision::Vega20:
// Enable HW P2P path for Vega20+. Runtime still relies on KMD/PAL for support