Skip to content

Commit 5e3c9ca

Browse files
committed
NFC: Refactor HIP guess local worksize funcs
1 parent 8a5e9a3 commit 5e3c9ca

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

source/adapters/hip/enqueue.cpp

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,9 @@ ur_result_t enqueueEventsWait(ur_queue_handle_t, hipStream_t Stream,
5151

5252
void simpleGuessLocalWorkSize(size_t *ThreadsPerBlock,
5353
const size_t *GlobalWorkSize,
54-
const size_t MaxThreadsPerBlock[3],
55-
ur_kernel_handle_t Kernel) {
54+
const size_t MaxThreadsPerBlock[3]) {
5655
assert(ThreadsPerBlock != nullptr);
5756
assert(GlobalWorkSize != nullptr);
58-
assert(Kernel != nullptr);
59-
60-
std::ignore = Kernel;
6157

6258
ThreadsPerBlock[0] = std::min(MaxThreadsPerBlock[0], GlobalWorkSize[0]);
6359

@@ -345,7 +341,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urEnqueueKernelLaunch(
345341
}
346342
} else {
347343
simpleGuessLocalWorkSize(ThreadsPerBlock, pGlobalWorkSize,
348-
MaxThreadsPerBlock, hKernel);
344+
MaxThreadsPerBlock);
349345
}
350346
}
351347

0 commit comments

Comments
 (0)