Skip to content

feat(cuda-core): add method for custom mem pool - #1803

Open
sephlor wants to merge 1 commit into
NVIDIA:mainfrom
sephlor:feat/mem-pool-with-params
Open

sephlor wants to merge 1 commit into
NVIDIA:mainfrom
sephlor:feat/mem-pool-with-params

Conversation

@sephlor

@sephlor sephlor commented Nov 13, 2026

Copy link
Copy Markdown

Summary

Adds Context::new_mem_pool_with_props from caller-supplied CUmemPoolProps. The current new_mem_pool() hard-codes props. Closes #1802

Changes

  • cuda-core/src/runtime.rs: new Context::new_mem_pool_with_props(props).
  • cuda-async/tests/pool_allocation.rs: new test
    alloc_with_new_mem_pool_with_props with a host pinned pool.

Testing

Run on GB10, CUDA 13.5, driver 615.71.10

  • cargo fmt -- --check
  • cargo clippy -p cuda-bindings -p cuda-core -p cuda-core-derive -p cuda-async --all-targets
  • cargo test -p cuda-async --test pool_allocation
  • cargo test -p cuda-core -p cuda-async

Checklist

  • All commits signed off (git commit -s)
  • All commits cryptographically signed and shown as Verified on GitHub (git commit -S)
  • SPDX headers on new source files

@copy-pr-bot

copy-pr-bot Bot commented Nov 13, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(cuda-core): add Context::new_mem_pool_with_props

1 participant