samples: add OpenVX graph pipelining CPU+GPU sample - #7
Open
simonCatBot wants to merge 1 commit into
Open
Conversation
simonCatBot
force-pushed
the
feature/pipelining-sample
branch
from
August 6, 2026 17:38
8b51ead to
ab8c164
Compare
|
Tested on Radeon RX 9070 XT / Ryzen 9 9950X 16-Core Processor, using TheRock Nightly 10.1.0 2026-08-05:
Both backends pass the checksum-equality test and show speed-up when pipelining is enabled. One note is that CPU outperformed HIP backend, @kiritigowda is that reasonable? |
simonCatBot
force-pushed
the
feature/pipelining-sample
branch
3 times, most recently
from
August 6, 2026 22:06
4b11c3c to
00322f5
Compare
Add samples/c_samples/pipelining, a self-contained demonstration of the vx_khr_pipelining extension on a mixed CPU+GPU workload. The same vision graph (RGB -> ColorConvert -> ChannelExtract(Y) -> Box3x3 -> U8) is run synchronously with vxProcessGraph (--pipeline 0) and asynchronously with QUEUE_AUTO enqueue/dequeue (--pipeline 1). Both paths report identical per-frame checksums so correctness can be verified, while the pipelined path prints a higher fps to make the performance benefit visible. Also update samples/c_samples/README.md with build/run instructions.
simonCatBot
force-pushed
the
feature/pipelining-sample
branch
from
August 6, 2026 23:30
00322f5 to
7f75313
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a new C++ sample under
samples/c_samples/pipeliningthat demonstrates the OpenVXvx_khr_pipeliningextension on a mixed CPU+GPU workload.The sample runs the same vision graph in two modes:
--pipeline 0— synchronousvxProcessGraphloop (baseline).--pipeline 1—QUEUE_AUTOpipelined enqueue/dequeue with multiple input/output buffers.Graph:
RGB -> ColorConvert -> ChannelExtract(Y) -> Box3x3 -> U8Both paths compute an identical per-frame checksum aggregate, and the pipelined path reports a higher fps so the benefit is immediately visible.
What was added
samples/c_samples/pipelining/pipelining.cpp— the sample application.samples/c_samples/pipelining/CMakeLists.txt— build file matching the existingcannysample.samples/c_samples/README.mdwith build/run instructions.Verification performed
Built and tested locally on a Radeon gfx1151 GPU and on the CPU-only backend:
Both backends pass the checksum-equality test and show measurable speed-up when pipelining is enabled.
Checklist
--pipeline 0and--pipeline 1produce the same aggregate checksum.--pipeline 1reports higher fps than--pipeline 0.