SWDEV-301947 - Rename device Info element

Rename maxBoostComputeUnits to maxPhysicalComputeUnits_.

Change-Id: I5941515ac4f1f4348b3b10478bf4e01444f0a864
This commit is contained in:
Saleel Kudchadker
2022-02-25 16:48:11 -08:00
orang tua af1f395718
melakukan e888c9e491
3 mengubah file dengan 7 tambahan dan 7 penghapusan
+1 -1
Melihat File
@@ -248,7 +248,7 @@ struct Info : public amd::EmbeddedObject {
uint32_t maxComputeUnits_;
//! The max number of parallel compute cores on the compute device.
uint32_t maxBoostComputeUnits_;
uint32_t maxPhysicalComputeUnits_;
//! Maximum dimensions that specify the global and local work-item IDs
// used by the data-parallel execution model.
+1 -1
Melihat File
@@ -320,7 +320,7 @@ void NullDevice::fillDeviceInfo(const Pal::DeviceProperties& palProp,
info_.maxComputeUnits_ = settings().enableWgpMode_
? palProp.gfxipProperties.shaderCore.numAvailableCus / 2
: palProp.gfxipProperties.shaderCore.numAvailableCus;
info_.maxBoostComputeUnits_ = info_.maxComputeUnits_;
info_.maxPhysicalComputeUnits_ = info_.maxComputeUnits_;
info_.numberOfShaderEngines = palProp.gfxipProperties.shaderCore.numShaderEngines;
// SI parts are scalar. Also, reads don't need to be 128-bits to get peak rates.
+5 -5
Melihat File
@@ -1101,14 +1101,14 @@ bool Device::populateOCLDeviceConstants() {
if (HSA_STATUS_SUCCESS !=
hsa_agent_get_info(_bkendDevice, (hsa_agent_info_t)HSA_AMD_AGENT_INFO_COMPUTE_UNIT_COUNT,
&info_.maxBoostComputeUnits_)) {
&info_.maxPhysicalComputeUnits_)) {
return false;
}
assert(info_.maxBoostComputeUnits_ > 0);
assert(info_.maxPhysicalComputeUnits_ > 0);
info_.maxBoostComputeUnits_ = settings().enableWgpMode_
? info_.maxBoostComputeUnits_ / 2
: info_.maxBoostComputeUnits_;
info_.maxPhysicalComputeUnits_ = settings().enableWgpMode_
? info_.maxPhysicalComputeUnits_ / 2
: info_.maxPhysicalComputeUnits_;
if (HSA_STATUS_SUCCESS != hsa_agent_get_info(_bkendDevice,
(hsa_agent_info_t)HSA_AMD_AGENT_INFO_CACHELINE_SIZE,