Skip to content

Commit

Permalink
[HotFix][CI] fix HIP tidy issue from #2277
Browse files Browse the repository at this point in the history
  • Loading branch information
junliume authored Aug 20, 2023
1 parent af7ea33 commit 4a937be
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ocl/dropoutocl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<unsigned long long>(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);
Expand Down

0 comments on commit 4a937be

Please sign in to comment.