mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-08 05:56:36 +08:00
Remove not needed method.
Signed-off-by: Michal Mrozek <michal.mrozek@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
8aaa927869
commit
27c43b27f3
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2020-2021 Intel Corporation
|
||||
* Copyright (C) 2020-2022 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -154,7 +154,6 @@ GmmHelper *ClDevice::getGmmHelper() const { return device.getGmmHelper(); }
|
||||
GmmClientContext *ClDevice::getGmmClientContext() const { return device.getGmmClientContext(); }
|
||||
double ClDevice::getProfilingTimerResolution() { return device.getProfilingTimerResolution(); }
|
||||
double ClDevice::getPlatformHostTimerResolution() const { return device.getPlatformHostTimerResolution(); }
|
||||
bool ClDevice::isSimulation() const { return device.isSimulation(); }
|
||||
GFXCORE_FAMILY ClDevice::getRenderCoreFamily() const { return device.getRenderCoreFamily(); }
|
||||
PerformanceCounters *ClDevice::getPerformanceCounters() { return device.getPerformanceCounters(); }
|
||||
PreemptionMode ClDevice::getPreemptionMode() const { return device.getPreemptionMode(); }
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2020-2021 Intel Corporation
|
||||
* Copyright (C) 2020-2022 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -75,7 +75,6 @@ class ClDevice : public BaseObject<_cl_device_id> {
|
||||
GmmClientContext *getGmmClientContext() const;
|
||||
double getProfilingTimerResolution();
|
||||
double getPlatformHostTimerResolution() const;
|
||||
bool isSimulation() const;
|
||||
GFXCORE_FAMILY getRenderCoreFamily() const;
|
||||
PerformanceCounters *getPerformanceCounters();
|
||||
PreemptionMode getPreemptionMode() const;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2021 Intel Corporation
|
||||
* Copyright (C) 2021-2022 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -31,10 +31,7 @@ Vec3<size_t> computeWorkgroupSize(const DispatchInfo &dispatchInfo) {
|
||||
auto &device = dispatchInfo.getClDevice();
|
||||
const auto &hwInfo = device.getHardwareInfo();
|
||||
auto &hwHelper = HwHelper::get(hwInfo.platform.eRenderCoreFamily);
|
||||
auto isSimulation = device.isSimulation();
|
||||
if (kernel->requiresLimitedWorkgroupSize() && hwHelper.isSpecialWorkgroupSizeRequired(hwInfo, isSimulation)) {
|
||||
setSpecialWorkgroupSize(workGroupSize);
|
||||
} else if (DebugManager.flags.EnableComputeWorkSizeND.get()) {
|
||||
if (DebugManager.flags.EnableComputeWorkSizeND.get()) {
|
||||
WorkSizeInfo wsInfo = createWorkSizeInfoFromDispatchInfo(dispatchInfo);
|
||||
if (wsInfo.slmTotalSize == 0 && !wsInfo.hasBarriers && !wsInfo.imgUsed && hwHelper.preferSmallWorkgroupSizeForKernel(kernel->getKernelInfo().heapInfo.KernelUnpaddedSize, hwInfo) &&
|
||||
((dispatchInfo.getDim() == 1) && (dispatchInfo.getGWS().x % wsInfo.simdSize * 2 == 0))) {
|
||||
|
||||
@@ -2217,33 +2217,6 @@ bool Kernel::requiresCacheFlushCommand(const CommandQueue &commandQueue) const {
|
||||
return false;
|
||||
}
|
||||
|
||||
bool Kernel::requiresLimitedWorkgroupSize() const {
|
||||
if (!this->isBuiltIn) {
|
||||
return false;
|
||||
}
|
||||
if (this->auxTranslationDirection != AuxTranslationDirection::None) {
|
||||
return false;
|
||||
}
|
||||
|
||||
//if source is buffer in local memory, no need for limited workgroup
|
||||
if (this->kernelInfo.getArgDescriptorAt(0).is<ArgDescriptor::ArgTPointer>()) {
|
||||
if (this->getKernelArgInfo(0).object) {
|
||||
auto rootDeviceIndex = getDevice().getRootDeviceIndex();
|
||||
auto buffer = castToObject<Buffer>(this->getKernelArgInfo(0u).object);
|
||||
if (buffer && buffer->getGraphicsAllocation(rootDeviceIndex)->getMemoryPool() == MemoryPool::LocalMemory) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//if we are reading from image no need for limited workgroup
|
||||
if (this->kernelInfo.getArgDescriptorAt(0).is<ArgDescriptor::ArgTImage>()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
void Kernel::updateAuxTranslationRequired() {
|
||||
const auto &hwInfoConfig = *HwInfoConfig::get(getDevice().getHardwareInfo().platform.eProductFamily);
|
||||
if (hwInfoConfig.allowStatelessCompression(getDevice().getHardwareInfo())) {
|
||||
|
||||
@@ -361,7 +361,6 @@ class Kernel : public ReferenceTrackedObject<Kernel> {
|
||||
const bool kernelUsesLocalIds,
|
||||
const bool isCssUsed) const;
|
||||
|
||||
bool requiresLimitedWorkgroupSize() const;
|
||||
bool isKernelDebugEnabled() const { return debugEnabled; }
|
||||
int32_t setAdditionalKernelExecInfoWithParam(uint32_t paramName, size_t paramValueSize, const void *paramValue);
|
||||
void setAdditionalKernelExecInfo(uint32_t additionalKernelExecInfo);
|
||||
|
||||
Reference in New Issue
Block a user