Skip to content

Make sentinel getters part of public device_view API. - #126

Merged
jrhemstad merged 1 commit into
NVIDIA:devfrom
vyasr:feature/expose_sentinels_on_device
Dec 13, 2021
Merged

jrhemstad merged 1 commit into
NVIDIA:devfrom
vyasr:feature/expose_sentinels_on_device

Conversation

@vyasr

@vyasr vyasr commented Dec 11, 2021

Copy link
Copy Markdown
Collaborator

static_multimap::device_view currently exposes public __device__ APIs to access the sentinel values in device code, but the implementation relies on calling corresponding private methods of the device_view_impl class. As a result, when actually invoked, these calls fail. This PR makes those APIs public.

@vyasr vyasr added the type: bug Something isn't working label Dec 11, 2021
@vyasr vyasr self-assigned this Dec 11, 2021

@PointKernel PointKernel 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 like it's the same issue with other public APIs e.g. get_slots(), get_capacity(), etc, and these APIs should be exposed to device_mutable_view also.

I will make another PR to fix them all.

@jrhemstad
jrhemstad merged commit 57986f4 into NVIDIA:dev Dec 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants