-
Notifications
You must be signed in to change notification settings - Fork 357
Open
Description
Is this a duplicate?
- I confirmed there appear to be no duplicate issues for this request and that I agree to the Code of Conduct
Area
libcu++
Is your feature request related to a problem? Please describe.
With RMM memory resources (prior to adopting CCCL's memory resource design), we can dynamic-cast a device_memory_resource* to determine if the MR is of a given type (e.g. a pool memory resource). Today there isn't a way to do the equivalent of a dynamic-cast to find what type is contained in a resource_ref or any_resource.
Examples of current usage of dynamic_cast of RMM memory resources:
Describe the solution you'd like
@pciolkosz mentioned that cuda::__any_cast<Tp>(&obj) exists, but it is private. This might solve our needs, if it were promoted to a public API.
Describe alternatives you've considered
No response
Additional context
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
Todo