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]: Add RAII-style discard_memory to new vsmem utilities #1142

Open
1 task done
elstehle opened this issue Nov 22, 2023 · 0 comments
Open
1 task done

[FEA]: Add RAII-style discard_memory to new vsmem utilities #1142

elstehle opened this issue Nov 22, 2023 · 0 comments
Labels
feature request New feature or request.

Comments

@elstehle
Copy link
Collaborator

Is this a duplicate?

Area

CUB

Is your feature request related to a problem? Please describe.

The new utilities for virtual shared memory also add a static member function that helps to hint to discard any dirty cachelines that are part of the virtual shared memory of that thread block. It's easy to forget adding this to the end of the kernel, like:

...
  agent.Process();
...
  // If applicable, hints to discard modified cache lines for vsmem
  VSmemHelperT::discard_temp_storage(temp_storage);

Describe the solution you'd like

It would be nice to make this call RAII-style, such that we automatically discard_memory, once the helper goes out of scope.

Describe alternatives you've considered

No response

Additional context

No response

@elstehle elstehle added the feature request New feature or request. label Nov 22, 2023
@github-project-automation github-project-automation bot moved this to Todo in CCCL Nov 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request.
Projects
Status: Todo
Development

No branches or pull requests

1 participant