Skip to content

Conversation

@Kang-Meng
Copy link
Collaborator

No description provided.

@Kang-Meng Kang-Meng changed the title feat: implement host block manager adaptation for PD. feat: adapt host block manager for PD. Dec 15, 2025
@Kang-Meng Kang-Meng force-pushed the bugfix_kvcache_store branch 5 times, most recently from c2ccbf0 to bf0a83d Compare December 15, 2025 12:35
@XuZhang99 XuZhang99 changed the title feat: adapt host block manager for PD. feat: adapt host block manager for disagg PD. Dec 15, 2025
@Kang-Meng Kang-Meng force-pushed the bugfix_kvcache_store branch 3 times, most recently from 5d08f1c to 1891d65 Compare December 15, 2025 14:53
@Kang-Meng Kang-Meng force-pushed the bugfix_kvcache_store branch from 1891d65 to 6a9e561 Compare December 16, 2025 04:17
@Kang-Meng Kang-Meng force-pushed the bugfix_kvcache_store branch from b49552f to 97d2df6 Compare December 16, 2025 10:26
@Kang-Meng Kang-Meng changed the title feat: adapt host block manager for disagg PD. feat: adapt hierarchy block manager for disagg PD. Dec 16, 2025
@Kang-Meng Kang-Meng requested a review from JimHsiung December 16, 2025 10:31
@DragonFive DragonFive self-requested a review December 17, 2025 10:20
memcpy(hash_key, other.hash_key, MURMUR_HASH3_VALUE_LEN);
}

BlockTransferInfo& operator=(BlockTransferInfo&& other) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add "return *this" is better

dst_block_id = other.dst_block_id;
transfer_type = other.transfer_type;
memcpy(hash_key, other.hash_key, MURMUR_HASH3_VALUE_LEN);
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add "return *this" is better

std::shared_ptr<std::atomic<int32_t>> flag,
std::vector<std::shared_ptr<std::atomic<uint32_t>>>* prefetch_results) {
prefetch_results->reserve(dp_local_tp_size_);
flag->store(dp_local_tp_size_, std::memory_order_acquire);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use relaxed/release to store is better.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants