-
Notifications
You must be signed in to change notification settings - Fork 100
Use static_for for fixed-size loops #771
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: dev
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -41,7 +41,7 @@ void static_set_contains(nvbench::state& state, nvbench::type_list<Key, Dist>) | |
|
|
||
| thrust::device_vector<Key> keys(num_keys); | ||
|
|
||
| key_generator gen{}; | ||
| [[maybe_unused]] key_generator gen{}; | ||
| gen.generate(dist_from_state<Dist>(state), keys.begin(), keys.end()); | ||
|
Comment on lines
+44
to
45
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. How can There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That’s a compiler bug in CUDA 12.0 where host-side use of host-device APIs isn’t correctly recognized. |
||
|
|
||
| cuco::static_set<Key> set{size, cuco::empty_key<Key>{-1}}; | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.