-
Notifications
You must be signed in to change notification settings - Fork 101
feat: adapt hierarchy block manager for disagg PD. #546
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
c2ccbf0 to
bf0a83d
Compare
5d08f1c to
1891d65
Compare
1891d65 to
6a9e561
Compare
b49552f to
97d2df6
Compare
| memcpy(hash_key, other.hash_key, MURMUR_HASH3_VALUE_LEN); | ||
| } | ||
|
|
||
| BlockTransferInfo& operator=(BlockTransferInfo&& other) { |
There was a problem hiding this comment.
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); | ||
| } |
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
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.
No description provided.