Repository navigation
cuda: add SSIM extraction with CPU-compatible options - #1619
Open
BardieJoensen wants to merge 4 commits into
Open
BardieJoensen wants to merge 4 commits into
BardieJoensen wants to merge 4 commits into
Conversation
Skip CUDA extractors in the temporal flush loop to avoid duplicate final scores. Add a regression across thread counts and short clips.
Retain common cleanup after CPU dispatch and finish all-plane downloads before CPU reads. Test pool reuse, GPU completion and CPU PSNR/SSIM output.
Add ssim_cuda with scaling, L/C/S and dB options. Reuse the CUDA PSNR resource helpers and test numerical parity, callback errors and initialization cleanup.
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.
Stacked on #1553, #1613 and #1660 (CUDA PSNR); only the last commit is SSIM. SSIM-only diff.
Add
ssim_cudafor 8/10/12/16-bit input, with scaling, luminance/contrast/structure output and dB options. Reuse the CUDA PSNR resource helpers.Scores matched CPU results exactly in the tested GCC 13.3/CUDA 13.3 cases. Tests covered scaling boundaries, odd dimensions, identical/inverted frames, callback errors and initialization cleanup. CUDA memcheck/initcheck passed.
Local suites: CPU 23/23; CUDA 30/31, with the existing pinned-picture test crash remaining.
Split from #1563. Depends on the CUDA PSNR contribution.