mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-20 00:24:58 +08:00
Remove redundant DualSubSliceCount checks
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
ed649fae66
commit
5e85fe5042
@@ -400,9 +400,6 @@ ze_result_t KernelImp::suggestMaxCooperativeGroupCount(uint32_t *totalGroupCount
|
||||
auto &hardwareInfo = module->getDevice()->getHwInfo();
|
||||
|
||||
auto dssCount = hardwareInfo.gtSystemInfo.DualSubSliceCount;
|
||||
if (dssCount == 0) {
|
||||
dssCount = hardwareInfo.gtSystemInfo.SubSliceCount;
|
||||
}
|
||||
auto &hwHelper = NEO::HwHelper::get(hardwareInfo.platform.eRenderCoreFamily);
|
||||
auto &descriptor = kernelImmData->getDescriptor();
|
||||
auto availableThreadCount = hwHelper.calculateAvailableThreadCount(
|
||||
|
||||
@@ -1022,9 +1022,6 @@ uint32_t Kernel::getMaxWorkGroupCount(const cl_uint workDim, const size_t *local
|
||||
|
||||
const auto &kernelDescriptor = kernelInfo.kernelDescriptor;
|
||||
auto dssCount = hardwareInfo.gtSystemInfo.DualSubSliceCount;
|
||||
if (dssCount == 0) {
|
||||
dssCount = hardwareInfo.gtSystemInfo.SubSliceCount;
|
||||
}
|
||||
auto availableThreadCount = hwHelper.calculateAvailableThreadCount(
|
||||
hardwareInfo.platform.eProductFamily,
|
||||
kernelDescriptor.kernelAttributes.numGrfRequired,
|
||||
|
||||
@@ -194,6 +194,8 @@ bool Device::createDeviceImpl() {
|
||||
setAsEngineInstanced();
|
||||
|
||||
auto &hwInfo = getHardwareInfo();
|
||||
UNRECOVERABLE_IF(0 == hwInfo.gtSystemInfo.DualSubSliceCount);
|
||||
|
||||
preemptionMode = PreemptionHelper::getDefaultPreemptionMode(hwInfo);
|
||||
|
||||
auto &hwHelper = HwHelper::get(hwInfo.platform.eRenderCoreFamily);
|
||||
|
||||
Reference in New Issue
Block a user