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

Change-Id: I43978a8a9139c33f5f776b344a36bee927cc187d


[ROCm/clr commit: e76d867740]
Este cometimento está contido em:
Vladislav Sytchenko
2020-03-06 13:43:36 -05:00
ascendente 4fd89f0c50
cometimento ab1c00cee9
2 ficheiros modificados com 6 adições e 2 eliminações
+3 -1
Ver ficheiro
@@ -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
Ver ficheiro
@@ -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 !=