[PATCH] D50345: [test-suite] Add Interpolation kernels Using Benchmark Library
Pankaj via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 6 12:13:13 PDT 2018
proton created this revision.
proton added reviewers: Meinersbur, homerdin, MatzeB, hfinkel, dberris.
Herald added subscribers: llvm-commits, mgorny.
Herald added a reviewer: bollu.
This patch adds Interpolation kernels in **MicroBenchmarks/ImageProcessing** directory
It contains the implementation of bicubic and bilinear interpolation (sources mentioned in corresponding kernel files)
Since there was no license mentioned in either of reference, I have not added any license (but still mentioned them in corresponding kernel files).
Runtime: (Using https://reviews.llvm.org/owners/package/3/ flag)
| Benchmark | Time | CPU | Iterations |
| ------------------------------------ | -------- | -------- | ---------- |
| BENCHMARK_BICUBIC_INTERPOLATION/16 | 75 us | 75 us | 9085 |
| BENCHMARK_BICUBIC_INTERPOLATION/32 | 379 us | 379 us | 1877 |
| BENCHMARK_BICUBIC_INTERPOLATION/64 | 1654 us | 1654 us | 419 |
| BENCHMARK_BICUBIC_INTERPOLATION/128 | 6987 us | 6988 us | 97 |
| BENCHMARK_BICUBIC_INTERPOLATION/256 | 28686 us | 28688 us | 24 |
| BENCHMARK_BILINEAR_INTERPOLATION/16 | 18 us | 18 us | 39513 |
| BENCHMARK_BILINEAR_INTERPOLATION/32 | 74 us | 74 us | 9368 |
| BENCHMARK_BILINEAR_INTERPOLATION/64 | 294 us | 294 us | 2352 |
| BENCHMARK_BILINEAR_INTERPOLATION/128 | 1191 us | 1191 us | 571 |
| BENCHMARK_BILINEAR_INTERPOLATION/256 | 4969 us | 4969 us | 127 |
|
Runtime with and without Polly is same
Repository:
rT test-suite
https://reviews.llvm.org/D50345
Files:
MicroBenchmarks/ImageProcessing/CMakeLists.txt
MicroBenchmarks/ImageProcessing/Interpolation/CMakeLists.txt
MicroBenchmarks/ImageProcessing/Interpolation/bicubic.reference_output
MicroBenchmarks/ImageProcessing/Interpolation/bicubicKernel.c
MicroBenchmarks/ImageProcessing/Interpolation/bilinear.reference_output
MicroBenchmarks/ImageProcessing/Interpolation/bilinearKernel.c
MicroBenchmarks/ImageProcessing/Interpolation/interpolation.h
MicroBenchmarks/ImageProcessing/Interpolation/main.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D50345.159348.patch
Type: text/x-patch
Size: 11959 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180806/86d943fa/attachment.bin>
More information about the llvm-commits
mailing list