Skip to content
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

[Feat] make allocator templated #144

Closed
wants to merge 1 commit into from

Conversation

rhdong
Copy link
Member

@rhdong rhdong commented Jun 21, 2023

No description provided.

@rhdong rhdong requested review from zhangyafeikimi and Lifann June 21, 2023 11:15
@github-actions
Copy link

@rhdong
Copy link
Member Author

rhdong commented Jun 21, 2023

/blossom-ci

@@ -148,14 +149,15 @@ static constexpr auto& thrust_par = thrust::cuda::par;
*
*/
template <typename K, typename V, typename S = uint64_t,
typename ArchTag = Sm80>
typename ArchTag = Sm80, typename Allocator = DefaultAllocator>
Copy link
Collaborator

@Lifann Lifann Jun 22, 2023

Choose a reason for hiding this comment

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

In some case like tensorflow, the allocator is created before merlin::HashTable construction. So It would be better to allow assignment from outside allocator, whom meeting the requirements of interface internal.

Copy link
Member Author

Choose a reason for hiding this comment

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

Sure, I though of this, please move to this one: #145

@rhdong rhdong closed this Jun 25, 2023
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