Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEA]: Synchronous data structures that use a cuda::mr::resource to allocate their memory #2129

Open
2 tasks
miscco opened this issue Jul 31, 2024 · 0 comments
Open
2 tasks
Assignees
Labels
2.8.0 target for 2.8.0 release CUDA Next Feature intended for the Cuda Next experimental library feature request New feature or request.

Comments

@miscco
Copy link
Collaborator

miscco commented Jul 31, 2024

We need to implement higher level data structures that take a cuda::mr::resource_ref as an type erased way of allocating memory.

The goal is that the user is not required to manually handle allocations at all.

A first type will be a basic wrapper around an allocation that allocated in the constructor and deallocates in the destructor similar to std::unique_ptr. An important distinction is that we do not want to initialize memory there because we want to avoid forcing a kernel launch. This will require the user to handle uninitialized memory with all the dangers that involves.

A second type will be a full fledged container cuda::vector that comes with all the bells and whistles a user might expect. We will use std::inplace_vector as a template for its API but also provide a way of avoiding the initialization cost

Initially we will focus on two types:

@github-project-automation github-project-automation bot moved this to Todo in CCCL Jul 31, 2024
@miscco miscco changed the title Synchronous data structures that use a cuda::mr::resource to allocate their memory [FEA] Synchronous data structures that use a cuda::mr::resource to allocate their memory Jul 31, 2024
@miscco miscco self-assigned this Jul 31, 2024
@miscco miscco added feature request New feature or request. libcu++ For all items related to libcu++ 2.7.0 Targeted for 2.7.0 release labels Jul 31, 2024
@miscco miscco changed the title [FEA] Synchronous data structures that use a cuda::mr::resource to allocate their memory [FEA]: Synchronous data structures that use a cuda::mr::resource to allocate their memory Jul 31, 2024
@miscco miscco added CUDA Next Feature intended for the Cuda Next experimental library and removed libcu++ For all items related to libcu++ labels Jul 31, 2024
@jollylili jollylili added 2.8.0 target for 2.8.0 release and removed 2.7.0 Targeted for 2.7.0 release labels Nov 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.8.0 target for 2.8.0 release CUDA Next Feature intended for the Cuda Next experimental library feature request New feature or request.
Projects
Status: Todo
Development

No branches or pull requests

2 participants