Skip to content

[libcu++] Automatically bump up the release threshold of default mempools#6718

Merged
davebayer merged 3 commits intoNVIDIA:mainfrom
pciolkosz:bump_default_mempool_release_threshold_to_inf
Nov 22, 2025
Merged

[libcu++] Automatically bump up the release threshold of default mempools#6718
davebayer merged 3 commits intoNVIDIA:mainfrom
pciolkosz:bump_default_mempool_release_threshold_to_inf

Conversation

@pciolkosz
Copy link
Contributor

CUDA memory pools by default have 0 release threshold, which means they don't cache any memory. It is considered a mistake and might change in the future. We changed that default for memory pools we create, but we want users to prefer the default memory pools. We should on first access to a default memory pool check if user didn't change that default 0 and if not, we will bump it up to size_t max.

This PR also fixes missing rename of the __memory_resource_base to __memory_pool_base.

@pciolkosz pciolkosz requested a review from a team as a code owner November 20, 2025 21:50
@pciolkosz pciolkosz requested a review from wmaxey November 20, 2025 21:50
@github-project-automation github-project-automation bot moved this to Todo in CCCL Nov 20, 2025
@cccl-authenticator-app cccl-authenticator-app bot moved this from Todo to In Review in CCCL Nov 20, 2025
@github-actions

This comment has been minimized.

@pciolkosz pciolkosz force-pushed the bump_default_mempool_release_threshold_to_inf branch from 086b0b7 to 7193828 Compare November 21, 2025 02:30
@pciolkosz pciolkosz force-pushed the bump_default_mempool_release_threshold_to_inf branch from 7193828 to 2666fad Compare November 21, 2025 04:30
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@davebayer
Copy link
Contributor

pre-commit.ci autofix

@davebayer davebayer enabled auto-merge (squash) November 22, 2025 08:33
@github-actions
Copy link
Contributor

🥳 CI Workflow Results

🟩 Finished in 58m 59s: Pass: 100%/90 | Total: 14h 01m | Max: 52m 38s | Hits: 98%/213937

See results here.

@davebayer davebayer merged commit 5bd0f5b into NVIDIA:main Nov 22, 2025
102 of 103 checks passed
@github-project-automation github-project-automation bot moved this from In Review to Done in CCCL Nov 22, 2025
@github-actions
Copy link
Contributor

github-actions bot pushed a commit that referenced this pull request Nov 22, 2025
bernhardmgruber pushed a commit that referenced this pull request Nov 23, 2025
…ools (#6718) (#6735)

(cherry picked from commit 5bd0f5b)

Co-authored-by: pciolkosz <pciolkosz@nvidia.com>
rapids-bot bot pushed a commit to rapidsai/rapidsmpf that referenced this pull request Dec 11, 2025
Before NVIDIA/cccl#6718, the default `release_threshold` was `0`, which defeats the purpose of having a pool. We now set it so the pool never releases unused pinned memory.

Also some clean up.

Authors:
  - Mads R. B. Kristensen (https://github.com/madsbk)

Approvers:
  - Lawrence Mitchell (https://github.com/wence-)

URL: #735
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants