mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-19 06:24:51 +08:00
refactor: configure additional kernel launch params
Related-To: NEO-12591 Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
bef5ac958a
commit
c9c8f988f5
@@ -378,6 +378,7 @@ struct CommandListCoreFamily : public CommandListImp {
|
||||
bool singleEventPacketRequired(bool inputSinglePacketEventRequest) const;
|
||||
void programEventL3Flush(Event *event);
|
||||
bool isCopyOffloadAllowed(const NEO::GraphicsAllocation &srcAllocation, const NEO::GraphicsAllocation &dstAllocation) const;
|
||||
void setAdditionalKernelLaunchParams(CmdListKernelLaunchParams &launchParams, Kernel &kernel) const;
|
||||
|
||||
NEO::InOrderPatchCommandsContainer<GfxFamily> inOrderPatchCmds;
|
||||
|
||||
|
||||
@@ -4250,4 +4250,19 @@ void CommandListCoreFamily<gfxCoreFamily>::programEventL3Flush(Event *event) {
|
||||
args);
|
||||
}
|
||||
|
||||
template <GFXCORE_FAMILY gfxCoreFamily>
|
||||
void CommandListCoreFamily<gfxCoreFamily>::setAdditionalKernelLaunchParams(CmdListKernelLaunchParams &launchParams, Kernel &kernel) const {
|
||||
auto &kernelDescriptor = kernel.getImmutableData()->getDescriptor();
|
||||
|
||||
if (launchParams.additionalSizeParam == NEO::additionalKernelLaunchSizeParamNotSet) {
|
||||
launchParams.additionalSizeParam = kernelDescriptor.kernelAttributes.additionalSize;
|
||||
}
|
||||
if (launchParams.requiredDispatchWalkOrder == NEO::RequiredDispatchWalkOrder::none) {
|
||||
launchParams.requiredDispatchWalkOrder = kernelDescriptor.kernelAttributes.walkOrder;
|
||||
}
|
||||
if (launchParams.requiredPartitionDim == NEO::RequiredPartitionDim::none) {
|
||||
launchParams.requiredPartitionDim = kernelDescriptor.kernelAttributes.partitionDim;
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace L0
|
||||
|
||||
@@ -80,6 +80,8 @@ ze_result_t CommandListCoreFamily<gfxCoreFamily>::appendLaunchKernelWithParams(K
|
||||
}
|
||||
}
|
||||
|
||||
setAdditionalKernelLaunchParams(launchParams, *kernel);
|
||||
|
||||
auto kernelInfo = kernelImmutableData->getKernelInfo();
|
||||
|
||||
NEO::IndirectHeap *ssh = nullptr;
|
||||
|
||||
Reference in New Issue
Block a user