Skip to content

Commit 7a2f91c

Browse files
committed
Hopefully appease msvc
1 parent 1554457 commit 7a2f91c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

unified-runtime/source/adapters/opencl/enqueue.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -592,8 +592,9 @@ UR_APIEXPORT ur_result_t UR_APICALL urEnqueueKernelLaunchWithArgsExp(
592592

593593
// Normalize so each dimension has at least one work item
594594
const std::array<size_t, 3> GlobalWorkSize3D = {
595-
std::max(pGlobalWorkSize[0], 1lu), std::max(pGlobalWorkSize[1], 1lu),
596-
std::max(pGlobalWorkSize[2], 1lu)};
595+
std::max(pGlobalWorkSize[0], std::size_t{1}),
596+
std::max(pGlobalWorkSize[1], std::size_t{1}),
597+
std::max(pGlobalWorkSize[2], std::size_t{1})};
597598

598599
cl_event Event;
599600
std::vector<cl_event> CLWaitEvents(numEventsInWaitList);

0 commit comments

Comments
 (0)