Skip to content

zstdgpu/imp: adds public api for single submission mode.#110

Merged
pm4rtx merged 11 commits into
microsoft:developmentfrom
pm4rtx:maintanance
Jun 16, 2026
Merged

zstdgpu/imp: adds public api for single submission mode.#110
pm4rtx merged 11 commits into
microsoft:developmentfrom
pm4rtx:maintanance

Conversation

@pm4rtx

@pm4rtx pm4rtx commented Jun 12, 2026

Copy link
Copy Markdown
Collaborator

This PR adds a couple of public APIs to simplify necessary steps to submit decompression pipeline into a single command list that becomes possible if the caller can either specify required frame/block-level constant or is fine to rely on library default estimator:

  • zstdgpu_SetupAllStageSubmission enables single submission without specifying frame/block-level constants upfront via zstdgpu_SetupFrameInfoConstants / zstdgpu_SetupBlockInfoConstants (command line --ssm)
  • zstdgpu_SubmitAllStagesWithExternalMemory, zstdgpu_GetAllStageGpuMemoryRequirement, zstdgpu_SubmitAllStagesWithInteralMemory

Additionally, this PR

  • re-visits internal timestamps handling to measure GPU time
  • excludes optional zstdgpu-side memory upload from decompression time measurement
  • makes sure it's fine to specify all frame/block-level constants that are larger than discovered during data parsing
  • always enable SetStablePowerState
  • makes sure decompressed frames aren't written to disk unless requested via --out-frm

@pm4rtx pm4rtx self-assigned this Jun 16, 2026
@pm4rtx pm4rtx merged commit b3f729c into microsoft:development Jun 16, 2026
1 check passed
@pm4rtx pm4rtx deleted the maintanance branch June 16, 2026 03:09
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