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

Add experimental static_map #314

Merged
merged 56 commits into from
Jun 23, 2023
Merged

Conversation

PointKernel
Copy link
Member

@PointKernel PointKernel commented Jun 4, 2023

Contributes to #110

This PR adds experimental::static_map and involves several changes to the existing code:

  • Extracts common open_addressing_impl and open_addressing_ref_impl classes to minimize duplicates between map and set implementations
  • Updates the existing code and fixes bugs: invalid type conversion in attemp_insert, narrow conversions inside probing scheme, doc improvement, etc.

@PointKernel PointKernel added type: feature request New feature request topic: static_map Issue related to the static_map In Progress Currently a work in progress topic: static_set Issue related to the static_set labels Jun 4, 2023
@sleeepyjack sleeepyjack marked this pull request as ready for review June 5, 2023 11:04
@PointKernel PointKernel marked this pull request as draft June 5, 2023 16:55
Copy link
Collaborator

@sleeepyjack sleeepyjack left a comment

Choose a reason for hiding this comment

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

First round of review. Lots of changes so I give it another pass. Thanks for this incredible work!

include/cuco/static_set.cuh Outdated Show resolved Hide resolved
include/cuco/static_set.cuh Outdated Show resolved Hide resolved
include/cuco/detail/static_map/static_map_ref.inl Outdated Show resolved Hide resolved
include/cuco/detail/open_addressing_impl.cuh Show resolved Hide resolved
include/cuco/detail/open_addressing_impl.cuh Outdated Show resolved Hide resolved
include/cuco/detail/open_addressing_impl.cuh Outdated Show resolved Hide resolved
include/cuco/detail/static_map/static_map.inl Outdated Show resolved Hide resolved
include/cuco/static_map.cuh Outdated Show resolved Hide resolved
include/cuco/static_map.cuh Show resolved Hide resolved
@PointKernel PointKernel requested a review from sleeepyjack June 14, 2023 00:32
@PointKernel PointKernel mentioned this pull request Jun 20, 2023
examples/static_set/device_ref_example.cu Show resolved Hide resolved
include/cuco/detail/common_functors.cuh Outdated Show resolved Hide resolved
include/cuco/detail/common_functors.cuh Outdated Show resolved Hide resolved
include/cuco/detail/equal_wrapper.cuh Show resolved Hide resolved
include/cuco/detail/equal_wrapper.cuh Show resolved Hide resolved
include/cuco/detail/open_addressing_ref_impl.cuh Outdated Show resolved Hide resolved
include/cuco/static_map.cuh Show resolved Hide resolved
@PointKernel PointKernel requested a review from sleeepyjack June 22, 2023 00:06
@PointKernel PointKernel requested a review from sleeepyjack June 22, 2023 21:24
@PointKernel PointKernel merged commit c0cce86 into NVIDIA:dev Jun 23, 2023
@PointKernel PointKernel deleted the new-static-map-v2 branch June 23, 2023 01:02
PointKernel added a commit that referenced this pull request Jun 27, 2023
Contributes to #110 
Depends on #314 

This PR:
- deprecates `cuco::pair_type` alias
- fixes issues with `cuco::make_pair`
- separates `pair` declarations and implementation details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Review Awaiting reviews before merging topic: static_map Issue related to the static_map topic: static_set Issue related to the static_set type: feature request New feature request
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants