mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-30 01:35:20 +08:00
perf: fix performance in enqueue path in OCL
add constexpr to if to only add extra if fo NDRange command Related-To: NEO-7603 Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
08e9fce536
commit
a2138e2ab9
@@ -94,7 +94,7 @@ cl_int CommandQueueHw<GfxFamily>::enqueueHandler(Surface *(&surfaces)[surfaceCou
|
||||
}
|
||||
}
|
||||
|
||||
if (commandType == CL_COMMAND_NDRANGE_KERNEL) {
|
||||
if constexpr (commandType == CL_COMMAND_NDRANGE_KERNEL) {
|
||||
if (!multiDispatchInfo.empty()) {
|
||||
for (auto &dispatchInfo : multiDispatchInfo) {
|
||||
auto nwgs = dispatchInfo.getNumberOfWorkgroups();
|
||||
|
||||
Reference in New Issue
Block a user