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

Simplify thrust invocations #128

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

bashimao
Copy link
Collaborator

Now that the thrust dependency is fixed (and updated to a newer version), we can remove the boilerplate code we had before.

@github-actions
Copy link

@bashimao bashimao self-assigned this May 18, 2023
@bashimao bashimao requested a review from rhdong May 18, 2023 12:08
@bashimao bashimao added the bug Something isn't working label May 18, 2023
@bashimao
Copy link
Collaborator Author

Step 2 in to actually fix: #126

@bashimao bashimao force-pushed the simplify-thrust-invocations branch from a3b4ab4 to 40cd796 Compare May 29, 2023 09:24
@bashimao
Copy link
Collaborator Author

Updated.

@@ -327,7 +321,7 @@ class HashTable {
reinterpret_cast<uintptr_t*>(d_dst));
thrust::device_ptr<int> d_src_offset_ptr(d_src_offset);

thrust::sort_by_key(thrust_par.on(stream), d_dst_ptr, d_dst_ptr + n,
thrust::sort_by_key(thrust::cuda::par_nosync.on(stream), d_dst_ptr, d_dst_ptr + n,
Copy link
Member

Choose a reason for hiding this comment

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

No need to change here. Currently, we can get successfully compile on both A100 and TH500.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants