refactor: add validateLaunchParams() function

Related-To: NEO-13954

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
This commit is contained in:
Mateusz Hoppe 2025-02-17 11:50:14 +00:00 committed by Compute-Runtime-Automation
parent 84eaca3330
commit aafefda74f
3 changed files with 7 additions and 0 deletions

View File

@ -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;

View File

@ -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

View File

@ -260,6 +260,7 @@ ze_result_t CommandListCoreFamily<gfxCoreFamily>::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();
}