Skip to content

Add pluggable CUDA linear grain payload support - #653

Open
thomastrue wants to merge 1 commit into
dmf-mxl:mainfrom
thomastrue:feature/cuda-grain-payloads
Open

Add pluggable CUDA linear grain payload support#653
thomastrue wants to merge 1 commit into
dmf-mxl:mainfrom
thomastrue:feature/cuda-grain-payloads

Conversation

@thomastrue

Copy link
Copy Markdown

Summary

  • Add host/device grain payload allocators (cuda-linear) selected via flow options (payload.location / backend)
  • Expose OpenGrainEx / GetGrain*Ex payload views for device-backed discrete flows
  • Wire mxl-gst-testsrc / mxl-gst-sink to the Ex APIs with H2D/D2H staging for CUDA payloads

Test plan

  • mxl-tests "[mxl flows]" from lib/tests (includes CudaLinear / payload option cases)
  • Create a CUDA flow with examples/payload-options/cuda-payload-options.json via mxl-gst-testsrc on a tmpfs domain
  • Confirm sink reads device grains (Grain payload location: device)

Introduce host/device payload allocators, flow-options payload location, and OpenGrain/GetGrain Ex APIs so discrete flows can back grains with cuda-linear device memory, including gst testsrc/sink paths.

Signed-off-by: Thomas True <ttrue@nvidia.com>
@thomastrue
thomastrue force-pushed the feature/cuda-grain-payloads branch from 7be7c4d to d984e89 Compare August 5, 2026 21:28
@felixpou felixpou linked an issue Aug 6, 2026 that may be closed by this pull request
19 tasks
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.

Architecture : <device hosted> grain mechanism.

1 participant