Skip to content

Commit 8c1d60b

Browse files
[pre-commit.ci] auto code formatting
1 parent 0d95f4b commit 8c1d60b

File tree

2 files changed

+15
-14
lines changed

2 files changed

+15
-14
lines changed

include/cuco/detail/static_map.inl

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,7 @@ template <typename CG, typename Hash, typename KeyEqual>
639639
__device__ bool static_map<Key, Value, Scope, Allocator>::device_mutable_view::erase(
640640
CG g, key_type const& k, Hash hash, KeyEqual key_equal) noexcept
641641
{
642-
auto current_slot = this->initial_slot(g, k, hash);
642+
auto current_slot = this->initial_slot(g, k, hash);
643643
auto const init_slot = current_slot;
644644
value_type const insert_pair =
645645
make_pair<Key, Value>(this->get_erased_key_sentinel(), this->get_empty_value_sentinel());
@@ -701,7 +701,7 @@ static_map<Key, Value, Scope, Allocator>::device_view::find(Key const& k,
701701
Hash hash,
702702
KeyEqual key_equal) noexcept
703703
{
704-
auto current_slot = this->initial_slot(k, hash);
704+
auto current_slot = this->initial_slot(k, hash);
705705
auto const init_slot = current_slot;
706706

707707
while (true) {
@@ -726,7 +726,7 @@ static_map<Key, Value, Scope, Allocator>::device_view::find(Key const& k,
726726
Hash hash,
727727
KeyEqual key_equal) const noexcept
728728
{
729-
auto current_slot = this->initial_slot(k, hash);
729+
auto current_slot = this->initial_slot(k, hash);
730730
auto const init_slot = current_slot;
731731

732732
while (true) {
@@ -752,7 +752,7 @@ static_map<Key, Value, Scope, Allocator>::device_view::find(CG g,
752752
Hash hash,
753753
KeyEqual key_equal) noexcept
754754
{
755-
auto current_slot = this->initial_slot(g, k, hash);
755+
auto current_slot = this->initial_slot(g, k, hash);
756756
auto const init_slot = current_slot;
757757

758758
while (true) {
@@ -792,7 +792,7 @@ static_map<Key, Value, Scope, Allocator>::device_view::find(CG g,
792792
Hash hash,
793793
KeyEqual key_equal) const noexcept
794794
{
795-
auto current_slot = this->initial_slot(g, k, hash);
795+
auto current_slot = this->initial_slot(g, k, hash);
796796
auto const init_slot = current_slot;
797797

798798
while (true) {
@@ -831,7 +831,7 @@ template <typename ProbeKey, typename Hash, typename KeyEqual>
831831
__device__ bool static_map<Key, Value, Scope, Allocator>::device_view::contains(
832832
ProbeKey const& k, Hash hash, KeyEqual key_equal) const noexcept
833833
{
834-
auto current_slot = this->initial_slot(k, hash);
834+
auto current_slot = this->initial_slot(k, hash);
835835
auto const init_slot = current_slot;
836836

837837
while (true) {
@@ -854,7 +854,7 @@ static_map<Key, Value, Scope, Allocator>::device_view::contains(CG g,
854854
Hash hash,
855855
KeyEqual key_equal) const noexcept
856856
{
857-
auto current_slot = this->initial_slot(g, k, hash);
857+
auto current_slot = this->initial_slot(g, k, hash);
858858
auto const init_slot = current_slot;
859859

860860
while (true) {

tests/dynamic_map/find_test.cu

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@
2323
#include <cuda/std/tuple>
2424
#include <thrust/device_vector.h>
2525
#include <thrust/execution_policy.h>
26-
#include <thrust/sequence.h>
27-
#include <thrust/iterator/zip_iterator.h>
2826
#include <thrust/iterator/constant_iterator.h>
27+
#include <thrust/iterator/zip_iterator.h>
28+
#include <thrust/sequence.h>
2929

3030
#include <catch2/catch_template_test_macros.hpp>
3131

@@ -153,8 +153,8 @@ TEMPLATE_TEST_CASE_SIG("dynamic_map find tests",
153153
cuco::test::all_of(first_half_empty_zip, first_half_empty_zip + num_keys / 2, zip_equal));
154154

155155
// Second half should return correct values (not erased)
156-
auto second_half_zip = thrust::make_zip_iterator(cuda::std::tuple{
157-
d_values.begin() + num_keys / 2, d_found_values.begin() + num_keys / 2});
156+
auto second_half_zip = thrust::make_zip_iterator(
157+
cuda::std::tuple{d_values.begin() + num_keys / 2, d_found_values.begin() + num_keys / 2});
158158
REQUIRE(cuco::test::all_of(second_half_zip, second_half_zip + num_keys / 2, zip_equal));
159159
}
160160

@@ -163,7 +163,7 @@ TEMPLATE_TEST_CASE_SIG("dynamic_map find tests",
163163

164164
SECTION("Check find in a all erased submap")
165165
{
166-
constexpr float default_load_factor = 0.60;
166+
constexpr float default_load_factor = 0.60;
167167
constexpr std::size_t first_insert_size = num_keys * default_load_factor;
168168

169169
thrust::device_vector<Key> d_keys(num_keys);
@@ -193,8 +193,9 @@ TEMPLATE_TEST_CASE_SIG("dynamic_map find tests",
193193
d_keys.begin() + first_insert_size, d_keys.end(), cuco::identity_hash<Key>());
194194
REQUIRE(indentity_hash_map.get_size() == 0);
195195

196-
// we've construct a dynamic_map with one submap whose keys are all erased keys (-2 in this case)
197-
// this find would run forever if we don't check whether we have iterated all keys in a submap
196+
// we've construct a dynamic_map with one submap whose keys are all erased keys (-2 in this
197+
// case) this find would run forever if we don't check whether we have iterated all keys in a
198+
// submap
198199
indentity_hash_map.find(
199200
d_keys.begin(), d_keys.end(), d_found_values.begin(), cuco::identity_hash<Key>());
200201
// all d_found_values should be empty value sentinel (-1 in this case)

0 commit comments

Comments
 (0)