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);