Skip to content

Commit

Permalink
Test CI
Browse files Browse the repository at this point in the history
  • Loading branch information
hdelan committed Mar 14, 2024
1 parent b5af496 commit 1bbe83b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/ur/ur.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,8 @@ static inline void roundToHighestFactorOfGlobalSizeIn3d(
size_t *ThreadsPerBlock, const size_t *GlobalSize,
const size_t *MaxBlockDim, const size_t MaxBlockSize,
const size_t WorkDim) {
ThreadsPerBlock[0] = std::min(GlobalSize[0], MaxBlockDim[0]);
ThreadsPerBlock[0] =
std::min(GlobalSize[0], std::min(MaxBlockSize, MaxBlockDim[0]));
// Make the X dim a factor of 2
do {
roundToHighestFactorOfGlobalSize(ThreadsPerBlock[0], GlobalSize[0]);
Expand Down

0 comments on commit 1bbe83b

Please sign in to comment.