diff --git a/level_zero/core/source/cmdlist/cmdlist.h b/level_zero/core/source/cmdlist/cmdlist.h index 391f99d17e..e2f7a0180b 100644 --- a/level_zero/core/source/cmdlist/cmdlist.h +++ b/level_zero/core/source/cmdlist/cmdlist.h @@ -210,6 +210,7 @@ struct CommandList : _ze_command_list_handle_t { void forceDcFlushForDcFlushMitigation(); void setAdditionalDispatchKernelArgsFromLaunchParams(NEO::EncodeDispatchKernelArgs &dispatchKernelArgs, const CmdListKernelLaunchParams &launchParams) const; + ze_result_t validateLaunchParams(const CmdListKernelLaunchParams &launchParams) const; void setOrdinal(uint32_t ord) { ordinal = ord; } void setCommandListPerThreadScratchSize(uint32_t slotId, uint32_t size) { @@ -466,6 +467,7 @@ struct CommandList : _ze_command_list_handle_t { uint32_t partitionCount = 1; uint32_t defaultMocsIndex = 0; int32_t defaultPipelinedThreadArbitrationPolicy = NEO::ThreadArbitrationPolicy::NotPresent; + uint32_t maxLocalSubRegionSize = 0; bool isFlushTaskSubmissionEnabled = false; bool isSyncModeQueue = false; diff --git a/level_zero/core/source/cmdlist/cmdlist_additional_args.cpp b/level_zero/core/source/cmdlist/cmdlist_additional_args.cpp index 5bbfc40844..b89fee79d5 100644 --- a/level_zero/core/source/cmdlist/cmdlist_additional_args.cpp +++ b/level_zero/core/source/cmdlist/cmdlist_additional_args.cpp @@ -15,4 +15,8 @@ struct CmdListKernelLaunchParams; void CommandList::setAdditionalDispatchKernelArgsFromLaunchParams(NEO::EncodeDispatchKernelArgs &dispatchKernelArgs, const CmdListKernelLaunchParams &launchParams) const { } +ze_result_t CommandList::validateLaunchParams(const CmdListKernelLaunchParams &launchParams) const { + return ZE_RESULT_SUCCESS; +} + } // namespace L0 diff --git a/level_zero/core/source/cmdlist/cmdlist_hw.inl b/level_zero/core/source/cmdlist/cmdlist_hw.inl index ba025011cb..31bc88ec31 100644 --- a/level_zero/core/source/cmdlist/cmdlist_hw.inl +++ b/level_zero/core/source/cmdlist/cmdlist_hw.inl @@ -260,6 +260,7 @@ ze_result_t CommandListCoreFamily::initialize(Device *device, NEO this->copyOperationFenceSupported = (isCopyOnly(false) || isCopyOffloadEnabled()) && productHelper.isDeviceToHostCopySignalingFenceRequired(); this->defaultPipelinedThreadArbitrationPolicy = gfxCoreHelper.getDefaultThreadArbitrationPolicy(); this->implicitSynchronizedDispatchForCooperativeKernelsAllowed = l0GfxCoreHelper.implicitSynchronizedDispatchForCooperativeKernelsAllowed(); + this->maxLocalSubRegionSize = productHelper.getMaxLocalSubRegionSize(hwInfo); if (NEO::debugManager.flags.OverrideThreadArbitrationPolicy.get() != -1) { this->defaultPipelinedThreadArbitrationPolicy = NEO::debugManager.flags.OverrideThreadArbitrationPolicy.get(); }