Skip to content

Commit 350a8a0

Browse files
committed
Remove unnecessary local vars from ExecCGCommand::enqueueImpQueue
1 parent 5c5e364 commit 350a8a0

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

sycl/source/detail/scheduler/commands.cpp

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3210,9 +3210,6 @@ ur_result_t ExecCGCommand::enqueueImpQueue() {
32103210
assert(MQueue && "Kernel submissions should have an associated queue");
32113211
CGExecKernel *ExecKernel = (CGExecKernel *)MCommandGroup.get();
32123212

3213-
NDRDescT &NDRDesc = ExecKernel->MNDRDesc;
3214-
std::vector<ArgDesc> &Args = ExecKernel->MArgs;
3215-
32163213
auto getMemAllocationFunc = [this](Requirement *Req) {
32173214
AllocaCommandBase *AllocaCmd = getAllocaForReq(Req);
32183215
// getAllocaForReq may return nullptr if Req is a default constructed
@@ -3238,12 +3235,13 @@ ur_result_t ExecCGCommand::enqueueImpQueue() {
32383235
BinImage = retrieveKernelBinary(*MQueue, KernelName);
32393236
assert(BinImage && "Failed to obtain a binary image.");
32403237
}
3241-
enqueueImpKernel(
3242-
*MQueue, NDRDesc, Args, ExecKernel->getKernelBundle().get(),
3243-
SyclKernel.get(), ExecKernel->MDeviceKernelInfo, RawEvents, EventImpl,
3244-
getMemAllocationFunc, ExecKernel->MKernelCacheConfig,
3245-
ExecKernel->MKernelIsCooperative, ExecKernel->MKernelUsesClusterLaunch,
3246-
ExecKernel->MKernelWorkGroupMemorySize, BinImage);
3238+
enqueueImpKernel(*MQueue, ExecKernel->MNDRDesc, ExecKernel->MArgs,
3239+
ExecKernel->getKernelBundle().get(), SyclKernel.get(),
3240+
ExecKernel->MDeviceKernelInfo, RawEvents, EventImpl,
3241+
getMemAllocationFunc, ExecKernel->MKernelCacheConfig,
3242+
ExecKernel->MKernelIsCooperative,
3243+
ExecKernel->MKernelUsesClusterLaunch,
3244+
ExecKernel->MKernelWorkGroupMemorySize, BinImage);
32473245

32483246
return UR_RESULT_SUCCESS;
32493247
}

0 commit comments

Comments
 (0)