Skip to content

Commit

Permalink
[pre-commit.ci] auto code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Jan 10, 2024
1 parent b520b69 commit 404006a
Show file tree
Hide file tree
Showing 6 changed files with 101 additions and 101 deletions.
104 changes: 52 additions & 52 deletions include/cuco/detail/dynamic_map_kernels.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,14 @@ template <uint32_t block_size,
typename Hash,
typename KeyEqual>
CUCO_KERNEL void insert(InputIt first,
InputIt last,
viewT* submap_views,
mutableViewT* submap_mutable_views,
atomicT* num_successes,
uint32_t insert_idx,
uint32_t num_submaps,
Hash hash,
KeyEqual key_equal)
InputIt last,
viewT* submap_views,
mutableViewT* submap_mutable_views,
atomicT* num_successes,
uint32_t insert_idx,
uint32_t num_submaps,
Hash hash,
KeyEqual key_equal)
{
using BlockReduce = cub::BlockReduce<std::size_t, block_size>;
__shared__ typename BlockReduce::TempStorage temp_storage;
Expand Down Expand Up @@ -149,14 +149,14 @@ template <uint32_t block_size,
typename Hash,
typename KeyEqual>
CUCO_KERNEL void insert(InputIt first,
InputIt last,
viewT* submap_views,
mutableViewT* submap_mutable_views,
atomicT** submap_num_successes,
uint32_t insert_idx,
uint32_t num_submaps,
Hash hash,
KeyEqual key_equal)
InputIt last,
viewT* submap_views,
mutableViewT* submap_mutable_views,
atomicT** submap_num_successes,
uint32_t insert_idx,
uint32_t num_submaps,
Hash hash,
KeyEqual key_equal)
{
using BlockReduce = cub::BlockReduce<std::size_t, block_size>;
__shared__ typename BlockReduce::TempStorage temp_storage;
Expand Down Expand Up @@ -227,12 +227,12 @@ template <uint32_t block_size,
typename Hash,
typename KeyEqual>
CUCO_KERNEL void erase(InputIt first,
InputIt last,
mutableViewT* submap_mutable_views,
atomicT** submap_num_successes,
uint32_t num_submaps,
Hash hash,
KeyEqual key_equal)
InputIt last,
mutableViewT* submap_mutable_views,
atomicT** submap_num_successes,
uint32_t num_submaps,
Hash hash,
KeyEqual key_equal)
{
extern __shared__ unsigned long long submap_block_num_successes[];

Expand Down Expand Up @@ -298,12 +298,12 @@ template <uint32_t block_size,
typename Hash,
typename KeyEqual>
CUCO_KERNEL void erase(InputIt first,
InputIt last,
mutableViewT* submap_mutable_views,
atomicT** submap_num_successes,
uint32_t num_submaps,
Hash hash,
KeyEqual key_equal)
InputIt last,
mutableViewT* submap_mutable_views,
atomicT** submap_num_successes,
uint32_t num_submaps,
Hash hash,
KeyEqual key_equal)
{
extern __shared__ unsigned long long submap_block_num_successes[];

Expand Down Expand Up @@ -370,12 +370,12 @@ template <uint32_t block_size,
typename Hash,
typename KeyEqual>
CUCO_KERNEL void find(InputIt first,
InputIt last,
OutputIt output_begin,
viewT* submap_views,
uint32_t num_submaps,
Hash hash,
KeyEqual key_equal)
InputIt last,
OutputIt output_begin,
viewT* submap_views,
uint32_t num_submaps,
Hash hash,
KeyEqual key_equal)
{
auto tid = blockDim.x * blockIdx.x + threadIdx.x;
auto empty_value_sentinel = submap_views[0].get_empty_value_sentinel();
Expand Down Expand Up @@ -445,12 +445,12 @@ template <uint32_t block_size,
typename Hash,
typename KeyEqual>
CUCO_KERNEL void find(InputIt first,
InputIt last,
OutputIt output_begin,
viewT* submap_views,
uint32_t num_submaps,
Hash hash,
KeyEqual key_equal)
InputIt last,
OutputIt output_begin,
viewT* submap_views,
uint32_t num_submaps,
Hash hash,
KeyEqual key_equal)
{
auto tile = cg::tiled_partition<tile_size>(cg::this_thread_block());
auto tid = blockDim.x * blockIdx.x + threadIdx.x;
Expand Down Expand Up @@ -516,12 +516,12 @@ template <uint32_t block_size,
typename Hash,
typename KeyEqual>
CUCO_KERNEL void contains(InputIt first,
InputIt last,
OutputIt output_begin,
viewT* submap_views,
uint32_t num_submaps,
Hash hash,
KeyEqual key_equal)
InputIt last,
OutputIt output_begin,
viewT* submap_views,
uint32_t num_submaps,
Hash hash,
KeyEqual key_equal)
{
auto tid = blockDim.x * blockIdx.x + threadIdx.x;
__shared__ bool writeBuffer[block_size];
Expand Down Expand Up @@ -584,12 +584,12 @@ template <uint32_t block_size,
typename Hash,
typename KeyEqual>
CUCO_KERNEL void contains(InputIt first,
InputIt last,
OutputIt output_begin,
viewT* submap_views,
uint32_t num_submaps,
Hash hash,
KeyEqual key_equal)
InputIt last,
OutputIt output_begin,
viewT* submap_views,
uint32_t num_submaps,
Hash hash,
KeyEqual key_equal)
{
auto tile = cg::tiled_partition<tile_size>(cg::this_thread_block());
auto tid = blockDim.x * blockIdx.x + threadIdx.x;
Expand Down
24 changes: 12 additions & 12 deletions include/cuco/detail/open_addressing/kernels.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,11 @@ template <int32_t CGSize,
typename AtomicT,
typename Ref>
CUCO_KERNEL void insert_if_n(InputIt first,
cuco::detail::index_type n,
StencilIt stencil,
Predicate pred,
AtomicT* num_successes,
Ref ref)
cuco::detail::index_type n,
StencilIt stencil,
Predicate pred,
AtomicT* num_successes,
Ref ref)
{
using BlockReduce = cub::BlockReduce<typename Ref::size_type, BlockSize>;
__shared__ typename BlockReduce::TempStorage temp_storage;
Expand Down Expand Up @@ -213,11 +213,11 @@ template <int32_t CGSize,
typename OutputIt,
typename Ref>
CUCO_KERNEL void contains_if_n(InputIt first,
cuco::detail::index_type n,
StencilIt stencil,
Predicate pred,
OutputIt output_begin,
Ref ref)
cuco::detail::index_type n,
StencilIt stencil,
Predicate pred,
OutputIt output_begin,
Ref ref)
{
namespace cg = cooperative_groups;

Expand Down Expand Up @@ -294,8 +294,8 @@ CUCO_KERNEL void size(StorageRef storage, Predicate is_filled, AtomicT* count)

template <int32_t BlockSize, typename ContainerRef, typename Predicate>
CUCO_KERNEL void rehash(typename ContainerRef::storage_ref_type storage_ref,
ContainerRef container_ref,
Predicate is_filled)
ContainerRef container_ref,
Predicate is_filled)
{
namespace cg = cooperative_groups;

Expand Down
14 changes: 7 additions & 7 deletions include/cuco/detail/static_map_kernels.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -312,13 +312,13 @@ template <std::size_t block_size,
typename Hash,
typename KeyEqual>
CUCO_KERNEL void insert_if_n(InputIt first,
int64_t n,
atomicT* num_successes,
viewT view,
StencilIt stencil,
Predicate pred,
Hash hash,
KeyEqual key_equal)
int64_t n,
atomicT* num_successes,
viewT view,
StencilIt stencil,
Predicate pred,
Hash hash,
KeyEqual key_equal)
{
typedef cub::BlockReduce<std::size_t, block_size> BlockReduce;
__shared__ typename BlockReduce::TempStorage temp_storage;
Expand Down
22 changes: 11 additions & 11 deletions include/cuco/detail/static_multimap/kernels.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -365,11 +365,11 @@ template <uint32_t block_size,
typename viewT,
typename KeyEqual>
CUCO_KERNEL void retrieve(InputIt first,
int64_t n,
OutputIt output_begin,
atomicT* num_matches,
viewT view,
KeyEqual key_equal)
int64_t n,
OutputIt output_begin,
atomicT* num_matches,
viewT view,
KeyEqual key_equal)
{
using pair_type = typename viewT::value_type;

Expand Down Expand Up @@ -478,12 +478,12 @@ template <uint32_t block_size,
typename viewT,
typename PairEqual>
CUCO_KERNEL void pair_retrieve(InputIt first,
int64_t n,
OutputIt1 probe_output_begin,
OutputIt2 contained_output_begin,
atomicT* num_matches,
viewT view,
PairEqual pair_equal)
int64_t n,
OutputIt1 probe_output_begin,
OutputIt2 contained_output_begin,
atomicT* num_matches,
viewT view,
PairEqual pair_equal)
{
using pair_type = typename viewT::value_type;

Expand Down
4 changes: 2 additions & 2 deletions include/cuco/detail/storage/kernels.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ namespace detail {
*/
template <typename WindowT>
CUCO_KERNEL void initialize(WindowT* windows,
cuco::detail::index_type n,
typename WindowT::value_type value)
cuco::detail::index_type n,
typename WindowT::value_type value)
{
auto const loop_stride = cuco::detail::grid_stride();
auto idx = cuco::detail::global_thread_id();
Expand Down
34 changes: 17 additions & 17 deletions include/cuco/detail/trie/dynamic_bitset/kernels.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@ CUCO_KERNEL void bitset_test_kernel(BitsetRef ref,
*/
template <typename BitsetRef, typename KeyIt, typename OutputIt>
CUCO_KERNEL void bitset_rank_kernel(BitsetRef ref,
KeyIt keys,
OutputIt outputs,
cuco::detail::index_type num_keys)
KeyIt keys,
OutputIt outputs,
cuco::detail::index_type num_keys)
{
auto key_id = cuco::detail::global_thread_id();
auto const stride = cuco::detail::grid_stride();
Expand All @@ -100,9 +100,9 @@ CUCO_KERNEL void bitset_rank_kernel(BitsetRef ref,
*/
template <typename BitsetRef, typename KeyIt, typename OutputIt>
CUCO_KERNEL void bitset_select_kernel(BitsetRef ref,
KeyIt keys,
OutputIt outputs,
cuco::detail::index_type num_keys)
KeyIt keys,
OutputIt outputs,
cuco::detail::index_type num_keys)
{
auto key_id = cuco::detail::global_thread_id();
auto const stride = cuco::detail::grid_stride();
Expand All @@ -126,9 +126,9 @@ CUCO_KERNEL void bitset_select_kernel(BitsetRef ref,
*/
template <typename WordType, typename SizeType>
CUCO_KERNEL void bit_counts_kernel(WordType const* words,
SizeType* bit_counts,
cuco::detail::index_type num_words,
bool flip_bits)
SizeType* bit_counts,
cuco::detail::index_type num_words,
bool flip_bits)
{
auto word_id = cuco::detail::global_thread_id();
auto const stride = cuco::detail::grid_stride();
Expand Down Expand Up @@ -158,10 +158,10 @@ CUCO_KERNEL void bit_counts_kernel(WordType const* words,
*/
template <typename SizeType>
CUCO_KERNEL void encode_ranks_from_prefix_bit_counts(const SizeType* prefix_bit_counts,
rank* ranks,
SizeType num_words,
SizeType num_blocks,
SizeType words_per_block)
rank* ranks,
SizeType num_words,
SizeType num_blocks,
SizeType words_per_block)
{
auto rank_id = cuco::detail::global_thread_id();
auto const stride = cuco::detail::grid_stride();
Expand Down Expand Up @@ -201,10 +201,10 @@ CUCO_KERNEL void encode_ranks_from_prefix_bit_counts(const SizeType* prefix_bit_
*/
template <typename SizeType>
CUCO_KERNEL void mark_blocks_with_select_entries(SizeType const* prefix_bit_counts,
SizeType* select_markers,
SizeType num_blocks,
SizeType words_per_block,
SizeType bits_per_block)
SizeType* select_markers,
SizeType num_blocks,
SizeType words_per_block,
SizeType bits_per_block)
{
auto block_id = cuco::detail::global_thread_id();
auto const stride = cuco::detail::grid_stride();
Expand Down

0 comments on commit 404006a

Please sign in to comment.