SWDEV-224023

Each WGP consists of 2 CU, so the number of available SIMD units is doubled.

Change-Id: I43978a8a9139c33f5f776b344a36bee927cc187d
This commit is contained in:
Vladislav Sytchenko
2020-03-06 13:43:36 -05:00
parent ee5eb0107d
commit e76d867740
2 changed files with 6 additions and 2 deletions
+3 -1
View File
@@ -637,7 +637,9 @@ void NullDevice::fillDeviceInfo(const Pal::DeviceProperties& palProp,
info_.deviceTopology_.pcie.device = palProp.pciProperties.deviceNumber;
info_.deviceTopology_.pcie.function = palProp.pciProperties.functionNumber;
info_.simdPerCU_ = palProp.gfxipProperties.shaderCore.numSimdsPerCu;
info_.simdPerCU_ = settings().enableWgpMode_
? palProp.gfxipProperties.shaderCore.numSimdsPerCu
: (2 * palProp.gfxipProperties.shaderCore.numSimdsPerCu);
info_.cuPerShaderArray_ = palProp.gfxipProperties.shaderCore.numCusPerShaderArray;
info_.simdWidth_ = hwInfo()->simdWidth_;
info_.simdInstructionWidth_ = 1;
+3 -1
View File
@@ -1394,7 +1394,9 @@ bool Device::populateOCLDeviceConstants() {
}
if (settings().checkExtension(ClAmdDeviceAttributeQuery)) {
info_.simdPerCU_ = deviceInfo_.simdPerCU_;
info_.simdPerCU_ = settings().enableWgpMode_
? deviceInfo_.simdPerCU_
: (2 * deviceInfo_.simdPerCU_);
info_.simdWidth_ = deviceInfo_.simdWidth_;
info_.simdInstructionWidth_ = deviceInfo_.simdInstructionWidth_;
if (HSA_STATUS_SUCCESS !=