Skip to content

Commit c7e6dce

Browse files
committed
Removed unused variable
1 parent 6625aa4 commit c7e6dce

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

offload/plugins-nextgen/common/include/PluginInterface.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1382,9 +1382,7 @@ struct KernelRunRecordTy {
13821382
IdxThread++;
13831383
TuningData[KernelName].IdxThread = IdxThread;
13841384

1385-
uint16_t ConstWGSize = GenericDevice.getDefaultNumThreads();
1386-
1387-
// Threads should be smaller than ConstWGSize.
1385+
// Threads should be within the limit.
13881386
if (IdxThread >= ThreadCandidate.size() ||
13891387
!Kernel.isValidBlockSize(ThreadCandidate[IdxThread])) {
13901388
TuningData[KernelName].IdxThread = 0;

0 commit comments

Comments
 (0)