Skip to content

Commit

Permalink
Remove unused var
Browse files Browse the repository at this point in the history
  • Loading branch information
hdelan committed Mar 13, 2024
1 parent 3ade699 commit a74d541
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions source/adapters/hip/enqueue.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,9 @@ ur_result_t enqueueEventsWait(ur_queue_handle_t, hipStream_t Stream,
// dimension.
void guessLocalWorkSize(ur_device_handle_t Device, size_t *ThreadsPerBlock,
const size_t *GlobalWorkSize, const uint32_t WorkDim,
const size_t MaxThreadsPerBlock[3],
ur_kernel_handle_t Kernel) {
const size_t MaxThreadsPerBlock[3]) {
assert(ThreadsPerBlock != nullptr);
assert(GlobalWorkSize != nullptr);
assert(Kernel != nullptr);

// FIXME: The below assumes a three dimensional range but this is not
// guaranteed by UR.
Expand Down Expand Up @@ -1805,7 +1803,7 @@ setKernelParams(const ur_device_handle_t Device, const uint32_t WorkDim,
}
} else {
guessLocalWorkSize(Device, ThreadsPerBlock, GlobalWorkSize, WorkDim,
MaxThreadsPerBlock, Kernel);
MaxThreadsPerBlock);
}
}

Expand Down

0 comments on commit a74d541

Please sign in to comment.