Skip to content

How to "deref" a static_map_ref #616

Answered by PointKernel
Gibyeng asked this question in Q&A
Discussion options

You must be logged in to vote

does cuco static_map already do it for me when I insert items?

For host APIs, yes. When users insert via device APIs, they are responsible for counting the number of successful insertions on their own.

It is because the cudaMemcpy solution always performs better than the write_ftor kernel

It's two operations. You need write_ftor to store the output to the device storage first then use cudaMemcpyDeviceToDevice to copy the device storage back to the host.

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@Gibyeng
Comment options

@PointKernel
Comment options

@Gibyeng
Comment options

@PointKernel
Comment options

Answer selected by Gibyeng
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
topic: static_map Issue related to the static_map
2 participants