Skip to content

Commit

Permalink
Change default block dim and refine benchmarks v2
Browse files Browse the repository at this point in the history
  • Loading branch information
sleeepyjack committed Aug 28, 2024
1 parent 1c36b9f commit cb7fef6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
20 changes: 10 additions & 10 deletions benchmarks/bloom_filter/bloom_filter_bench.cu
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,8 @@ struct BlockWords {
NVBENCH_BENCH_TYPES(bloom_filter_add,
NVBENCH_TYPE_AXES(defaults::KEY_TYPE_RANGE,
nvbench::type_list<cuco::default_hash_function<char>>,
nvbench::type_list<BlockWords<1>>,
nvbench::type_list<nvbench::uint32_t, nvbench::uint64_t>,
nvbench::type_list<BlockWords<4>>,
nvbench::type_list<nvbench::uint64_t>,
nvbench::type_list<distribution::unique>))
.set_name("bloom_filter_add_unique_size")
.set_type_axes_names({"Key", "Hash", "BlockWords", "Word", "Distribution"})
Expand All @@ -160,8 +160,8 @@ NVBENCH_BENCH_TYPES(bloom_filter_add,
NVBENCH_BENCH_TYPES(bloom_filter_add,
NVBENCH_TYPE_AXES(defaults::KEY_TYPE_RANGE,
defaults::HASH_RANGE,
nvbench::type_list<BlockWords<1>>,
nvbench::type_list<nvbench::uint32_t, nvbench::uint64_t>,
nvbench::type_list<BlockWords<4>>,
nvbench::type_list<nvbench::uint64_t>,
nvbench::type_list<distribution::unique>))
.set_name("bloom_filter_add_unique_hash")
.set_type_axes_names({"Key", "Hash", "BlockWords", "Word", "Distribution"})
Expand All @@ -177,7 +177,7 @@ NVBENCH_BENCH_TYPES(
nvbench::type_list<BlockWords<1>, BlockWords<2>, BlockWords<4>, BlockWords<8>>,
nvbench::type_list<nvbench::uint32_t, nvbench::uint64_t>,
nvbench::type_list<distribution::unique>))
.set_name("bloom_filter_add_unique_block_words")
.set_name("bloom_filter_add_unique_block_dim")
.set_type_axes_names({"Key", "Hash", "BlockWords", "Word", "Distribution"})
.set_max_noise(defaults::MAX_NOISE)
.add_int64_axis("NumInputs", {defaults::N})
Expand All @@ -187,8 +187,8 @@ NVBENCH_BENCH_TYPES(
NVBENCH_BENCH_TYPES(bloom_filter_test,
NVBENCH_TYPE_AXES(defaults::KEY_TYPE_RANGE,
nvbench::type_list<cuco::default_hash_function<char>>,
nvbench::type_list<BlockWords<1>>,
nvbench::type_list<nvbench::uint32_t, nvbench::uint64_t>,
nvbench::type_list<BlockWords<4>>,
nvbench::type_list<nvbench::uint64_t>,
nvbench::type_list<distribution::unique>))
.set_name("bloom_filter_test_unique_size")
.set_type_axes_names({"Key", "Hash", "BlockWords", "Word", "Distribution"})
Expand All @@ -200,8 +200,8 @@ NVBENCH_BENCH_TYPES(bloom_filter_test,
NVBENCH_BENCH_TYPES(bloom_filter_test,
NVBENCH_TYPE_AXES(defaults::KEY_TYPE_RANGE,
defaults::HASH_RANGE,
nvbench::type_list<BlockWords<1>>,
nvbench::type_list<nvbench::uint32_t, nvbench::uint64_t>,
nvbench::type_list<BlockWords<4>>,
nvbench::type_list<nvbench::uint64_t>,
nvbench::type_list<distribution::unique>))
.set_name("bloom_filter_test_unique_hash")
.set_type_axes_names({"Key", "Hash", "BlockWords", "Word", "Distribution"})
Expand All @@ -217,7 +217,7 @@ NVBENCH_BENCH_TYPES(
nvbench::type_list<BlockWords<1>, BlockWords<2>, BlockWords<4>, BlockWords<8>>,
nvbench::type_list<nvbench::uint32_t, nvbench::uint64_t>,
nvbench::type_list<distribution::unique>))
.set_name("bloom_filter_test_unique_block_words")
.set_name("bloom_filter_test_unique_block_dim")
.set_type_axes_names({"Key", "Hash", "BlockWords", "Word", "Distribution"})
.set_max_noise(defaults::MAX_NOISE)
.add_int64_axis("NumInputs", {defaults::N})
Expand Down
4 changes: 2 additions & 2 deletions include/cuco/bloom_filter.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ template <class Key,
cuda::thread_scope Scope = cuda::thread_scope_device,
class Hash = cuco::xxhash_64<Key>,
class Allocator = cuco::cuda_allocator<std::byte>,
std::uint32_t BlockWords = 8,
class Word = std::uint32_t>
std::uint32_t BlockWords = 4,
class Word = std::uint64_t>
class bloom_filter {
public:
template <cuda::thread_scope NewScope = Scope>
Expand Down

0 comments on commit cb7fef6

Please sign in to comment.