Skip to content

How to create a list of static_maps that support lookups on GPU. #605

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

You must be logged in to vote

https://godbolt.org/z/8M35av8Wh

There's an issue with the move constructor, which should have been disabled. Using unique pointers for hash tables could resolve this.

Once fixed, you might notice that the code is time-consuming due to expensive hash table construction, which involves device memory allocation. Instead of creating separate hash tables, probably worth considering using bulk storage as shown in this example. This can significantly optimize your performance.

Replies: 3 comments 11 replies

Comment options

You must be logged in to vote
2 replies
@sleeepyjack
Comment options

@Gibyeng
Comment options

Comment options

You must be logged in to vote
6 replies
@PointKernel
Comment options

@Gibyeng
Comment options

@Gibyeng
Comment options

@PointKernel
Comment options

@Gibyeng
Comment options

Comment options

You must be logged in to vote
3 replies
@PointKernel
Comment options

Answer selected by PointKernel
@PointKernel
Comment options

@Gibyeng
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants