Skip to content

Commit

Permalink
Update example comments
Browse files Browse the repository at this point in the history
  • Loading branch information
PointKernel committed May 15, 2024
1 parent a4f52d5 commit acd15c3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ We plan to add many GPU-accelerated, concurrent data structures to `cuCollection
- [Host-bulk APIs](https://github.com/NVIDIA/cuCollections/blob/dev/examples/static_set/host_bulk_example.cu) (see [live example in godbolt](https://godbolt.org/z/fczxbM1h6))
- [Device-ref APIs for individual operations](https://github.com/NVIDIA/cuCollections/blob/dev/examples/static_set/device_ref_example.cu) (see [live example in godbolt](https://godbolt.org/z/zcnGqfdMW))
- [One single storage for multiple sets](https://github.com/NVIDIA/cuCollections/blob/dev/examples/static_set/device_subsets_example.cu) (see [live example in godbolt](https://godbolt.org/z/P9s4fKscj))
- [Using shared memory as storage](https://github.com/NVIDIA/cuCollections/blob/dev/examples/static_set/shared_memory_example.cu) (see [live example in godbolt](https://godbolt.org/z/sTsq7fbjv))
- [Using shared memory as storage](https://github.com/NVIDIA/cuCollections/blob/dev/examples/static_set/shared_memory_example.cu) (see [live example in godbolt](https://godbolt.org/z/4dq58efc8))
- [Using set as mapping table to handle large keys or indeterministic sentinels](https://github.com/NVIDIA/cuCollections/blob/dev/examples/static_set/mapping_table_example.cu) (see [live example in godbolt](https://godbolt.org/z/E1e3j86E4))

### `static_map`
Expand Down
1 change: 1 addition & 0 deletions examples/static_set/shared_memory_example.cu
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ __global__ void shmem_set_kernel(typename SetRef::extent_type window_extent,
// Next, we want to check if the keys can be found again using the `contains` function. We create
// a new non-owning object based on the `insert_ref` that supports `contains` but no longer
// supports `insert`.
// CAVEAT: concurrent use of `insert_ref` and `contains_ref` is undefined behavior.
auto const contains_ref = insert_ref.with_operators(cuco::contains);

// Check if all keys can be found
Expand Down

0 comments on commit acd15c3

Please sign in to comment.