From 4a937be9ce1ef59ec3900c2c561cb90c9e7844c6 Mon Sep 17 00:00:00 2001 From: Jun Liu Date: Sat, 19 Aug 2023 23:55:17 -0700 Subject: [PATCH] [HotFix][CI] fix HIP tidy issue from #2277 --- src/ocl/dropoutocl.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ocl/dropoutocl.cpp b/src/ocl/dropoutocl.cpp index caf44d9569..81cb1950bb 100644 --- a/src/ocl/dropoutocl.cpp +++ b/src/ocl/dropoutocl.cpp @@ -133,7 +133,8 @@ void DropoutDescriptor::InitPRNGState(Handle& handle, } unsigned long long states_num = prng_stateSizeInBytes / sizeof(prngStates); - size_t wk_grp_num = std::min(MAX_PRNG_STATE / 256ULL, (states_num + 255) / 256); + size_t wk_grp_num = + std::min(static_cast(MAX_PRNG_STATE / 256), (states_num + 255) / 256); std::string network_config = "initprngs-" + std::to_string(sizeof(prngStates)) + "x" + std::to_string(rng_mode) + "x" + std::to_string(wk_grp_num);