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 Nov 16, 2023
1 parent f02d472 commit 24f3bad
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -388,8 +388,9 @@ class open_addressing_ref_impl {
#if __CUDA_ARCH__ < 700
// Spinning to ensure that the write to the value part took place requires
// independent thread scheduling introduced with the Volta architecture.
static_assert(cuco::detail::is_packable<value_type>(),
"insert_and_find is not supported for pair types larger than 8 bytes on pre-Volta GPUs.");
static_assert(
cuco::detail::is_packable<value_type>(),
"insert_and_find is not supported for pair types larger than 8 bytes on pre-Volta GPUs.");
#endif

auto const key = this->extract_key(value);
Expand Down Expand Up @@ -1046,7 +1047,7 @@ class open_addressing_ref_impl {
{
using mapped_type = decltype(this->empty_slot_sentinel_.second);

auto const expected_key = expected.first;
auto const expected_key = expected.first;

auto old_key = compare_and_swap(
&address->first, expected_key, static_cast<key_type>(thrust::get<0>(desired)));
Expand Down

0 comments on commit 24f3bad

Please sign in to comment.