diff --git a/include/rmm/mr/device/detail/arena.hpp b/include/rmm/mr/device/detail/arena.hpp index 6cfe94058..0d2bb319a 100644 --- a/include/rmm/mr/device/detail/arena.hpp +++ b/include/rmm/mr/device/detail/arena.hpp @@ -109,7 +109,7 @@ class block { */ [[nodiscard]] std::pair split(std::size_t size) const { - RMM_LOGGING_ASSERT(size_ >= sz); + RMM_LOGGING_ASSERT(size_ >= size); // NOLINTNEXTLINE(cppcoreguidelines-pro-bounds-pointer-arithmetic) if (size_ > size) { return {{pointer_, size}, {pointer_ + size, size_ - size}}; } return {*this, {}}; @@ -125,7 +125,7 @@ class block { */ [[nodiscard]] block merge(block const& blk) const { - RMM_LOGGING_ASSERT(is_contiguous_before(b)); + RMM_LOGGING_ASSERT(is_contiguous_before(blk)); return {pointer_, size_ + blk.size_}; } diff --git a/include/rmm/mr/device/detail/coalescing_free_list.hpp b/include/rmm/mr/device/detail/coalescing_free_list.hpp index bbdd98ec9..39e1e389e 100644 --- a/include/rmm/mr/device/detail/coalescing_free_list.hpp +++ b/include/rmm/mr/device/detail/coalescing_free_list.hpp @@ -84,7 +84,7 @@ struct block : public block_base { */ [[nodiscard]] inline block merge(block const& blk) const noexcept { - assert(is_contiguous_before(b)); + assert(is_contiguous_before(blk)); return {pointer(), size() + blk.size(), is_head()}; }