Skip to content

Commit

Permalink
Minor cleanup by using cuda::std::min
Browse files Browse the repository at this point in the history
  • Loading branch information
PointKernel committed Jul 24, 2024
1 parent c05af72 commit a902f5f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions include/cuco/detail/pair/helpers.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,10 @@

#pragma once

#include <cuda/functional>
#include <cuda/std/bit>
#include <cuda/std/type_traits>

#include <algorithm>

namespace cuco::detail {

/**
Expand All @@ -30,8 +29,7 @@ namespace cuco::detail {
template <typename First, typename Second>
__host__ __device__ constexpr std::size_t pair_alignment()
{
// TODO: migrate to cuda::std::min once bumping to CCCL 2.3
return std::min(std::size_t{16}, cuda::std::bit_ceil(sizeof(First) + sizeof(Second)));
return cuda::std::min(std::size_t{16}, cuda::std::bit_ceil(sizeof(First) + sizeof(Second)));
}

/**
Expand Down

0 comments on commit a902f5f

Please sign in to comment.