P4 to Git Change 2034784 by gandryey@gera-hip-lnx on 2019/11/21 16:31:24

SWDEV-79445 - OCL generic changes and code clean-up
	- Enable WGP mode in ROCr GFX10 by default
	- Read GPU_ENABLE_WAVE32_MODE environment variable to control wave32/64 on ROCr

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocdevice.cpp#142 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocsettings.cpp#46 edit
This commit is contained in:
foreman
2019-11-21 16:33:51 -05:00
parent e4d5473068
commit d033b0eee9
2 changed files with 13 additions and 5 deletions
+7 -1
View File
@@ -126,8 +126,14 @@ bool Settings::create(bool fullProfile, int gfxipVersion) {
}
if (gfxipVersion >= 1000) {
lcWavefrontSize64_ = false;
enableWave32Mode_ = true;
enableWgpMode_ = GPU_ENABLE_WGP_MODE;
}
if (!flagIsDefault(GPU_ENABLE_WAVE32_MODE)) {
enableWave32Mode_ = GPU_ENABLE_WAVE32_MODE;
}
lcWavefrontSize64_ = !enableWave32Mode_;
// Override current device settings
override();