Skip to content

Is there anyway to sort the keys/values of the static map on device. #614

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

You must be logged in to vote

The sorting issue is more relevant to CCCL.

One possible solution is to use retrieve_all to obtain all key-value pairs and then write a custom kernel where each block sorts a submap using cub::DeviceRadixSort.

This can be further optimized by noting that each retrieve_all call launches a separate CUDA kernel. Instead, you can write a custom kernel to fuse all the "retrieve" operations into a single kernel.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@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
None yet
2 participants