Skip to content

Add automatic workspace management feature. - #159

Merged
romerojosh merged 2 commits into
mainfrom
automatic-workspace-management
Aug 25, 2026
Merged

Add automatic workspace management feature.#159
romerojosh merged 2 commits into
mainfrom
automatic-workspace-management

Conversation

@romerojosh

@romerojosh romerojosh commented Aug 25, 2026

Copy link
Copy Markdown
Collaborator

This PR adds automatically managed workspaces to cuDecomp to simplify application usage. Instead of querying workspace requirements and managing caller-owned allocations, users can opt in to automatic workspace management by passing CUDECOMP_WORKSPACE_AUTO (or a null pointer in C/C++) as the workspace argument to the transpose and halo communication APIs.

Automatically managed workspaces are owned by the cuDecomp handle, reused across its grid descriptors, and grown as needed. Operations using automatic workspace management on the same handle are serialized on a library-owned CUDA stream, while preserving ordering with the caller-provided stream. Users must make the same automatic-versus-explicit workspace choice on all participating ranks.

Automatically managed workspace memory is not exposed for reuse or aliasing by other components, such as FFT libraries. Automatic workspace management is also unavailable during external CUDA Graph capture. Applications requiring concurrent operations, workspace aliasing, or external graph capture should continue using caller-managed workspaces.

Signed-off-by: romerojosh <joshr@nvidia.com>
@romerojosh romerojosh changed the title Add automatic workspace management Add automatic workspace management feature. Aug 25, 2026
@romerojosh

Copy link
Copy Markdown
Collaborator Author

/build

@github-actions

Copy link
Copy Markdown

🚀 Build workflow triggered! View run

@github-actions

Copy link
Copy Markdown

❌ Build workflow failed! View run

@romerojosh

Copy link
Copy Markdown
Collaborator Author

/build

@github-actions

Copy link
Copy Markdown

🚀 Build workflow triggered! View run

@github-actions

Copy link
Copy Markdown

✅ Build workflow passed! View run

Signed-off-by: romerojosh <joshr@nvidia.com>
@romerojosh
romerojosh merged commit eabe338 into main Aug 25, 2026
4 checks passed
@romerojosh
romerojosh deleted the automatic-workspace-management branch August 25, 2026 22:42
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.

1 participant