Skip to content

Add static_map heterogeneous lookup example - #762

Merged
PointKernel merged 8 commits into
NVIDIA:devfrom
cnaples79:example-heterogeneous-lookup-upstream
Sep 26, 2025
Merged

Add static_map heterogeneous lookup example#762
PointKernel merged 8 commits into
NVIDIA:devfrom
cnaples79:example-heterogeneous-lookup-upstream

Conversation

@cnaples79

Copy link
Copy Markdown
Contributor

Summary

  • add a static_map example that demonstrates hashing and comparing compatible key types
  • show how the map can answer contains and find queries using probe keys with extra fields
  • register the example with the examples CMake target so it builds alongside existing samples

Rationale

Changes

  • new static_map/heterogeneous_lookup_example.cu with custom hash/equality for tuple probes
  • build system entry so the sample is produced with the rest of the examples
  • Tests not run (examples)

Fixes#714

@copy-pr-bot

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@PointKernelPointKernel added topic: static_map Issue related to the static_map type: feature request New feature request Needs Review Awaiting reviews before merging labels Sep 26, 2025
@PointKernel

Copy link
Copy Markdown
Member

/ok to test 3d944b2

@PointKernelPointKernel left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good!

I’ve updated the README accordingly and did a bit of cleanup with some minor fixes. Thanks for the contribution, @cnaples79.

@PointKernel
PointKernel merged commit 2777267 into NVIDIA:devSep 26, 2025
21 checks passed
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Needs ReviewAwaiting reviews before mergingtopic: static_mapIssue related to the static_maptype: feature requestNew feature request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[ENHANCEMENT]: Add an example for performing a heterogeneous lookup

2 participants

@cnaples79@PointKernel