summaryrefslogtreecommitdiff
path: root/benchmark
AgeCommit message (Collapse)AuthorFilesLines
2017-05-18Add image use_hostptr benchmark case for testing large image operations.Yan Wang2-0/+85
It is for testing large image with TILE_Y mode. Signed-off-by: Yan Wang <yan.wang@linux.intel.com> Reviewed-by: Yang Rong <rong.r.yang@intel.com>
2016-08-03Benchmark: Evaluate math performance on intervalsGrigore Lupescu2-1/+128
Functions to benchmark math functions on intervals. Tests: sin, cos, exp2, exp, exp10, log2, log, log10 Signed-off-by: Grigore Lupescu <grigore.lupescu at intel.com> Reviewed-by: Ruiling Song <ruiling.song@intel.com>
2016-07-20CMAKE: Make utests and benchmark not build for defaultPan Xiuli1-0/+1
Now make will only make beignet library, if you want beignet utest or benchmark you can use make utest and make benchmark to build them. This will make build time for beignet shorter when utests are not needed. Signed-off-by: Pan Xiuli <xiuli.pan@intel.com> Reviewed-by: Yang Rong <rong.r.yang@intel.com>
2016-05-23utest: error handling to avoid null pointer dereference.Luo Xionghu1-0/+2
Signed-off-by: Luo Xionghu <xionghu.luo@intel.com> Reviewed-by: Yang Rong <rong.r.yang@intel.com>
2016-05-23no return value for non-void function.Luo Xionghu1-0/+1
Signed-off-by: Luo Xionghu <xionghu.luo@intel.com> Reviewed-by: Yang Rong <rong.r.yang@intel.com>
2016-05-18Benchmark: Add performance tests for workgroup broadcastGrigore Lupescu1-35/+152
Added the following performance tests: benchmark_workgroup_broadcast_1D_int benchmark_workgroup_broadcast_1D_long benchmark_workgroup_broadcast_2D_int benchmark_workgroup_broadcast_2D_long Signed-off-by: Grigore Lupescu <grigore.lupescu at intel.com> Reviewed-by: Pan Xiuli <xiuli.pan@intel.com>
2016-05-18Benchmark: Add performance tests for workgroup reduce/scan functionsGrigore Lupescu2-1/+255
Added the following performance tests: benchmark_workgroup_reduce_add_int benchmark_workgroup_reduce_add_long benchmark_workgroup_reduce_min_int benchmark_workgroup_reduce_min_long benchmark_workgroup_scan_inclusive_add_int benchmark_workgroup_scan_inclusive_add_long benchmark_workgroup_scan_inclusive_min_int benchmark_workgroup_scan_inclusive_min_long Signed-off-by: Grigore Lupescu <grigore.lupescu at intel.com> Reviewed-by: Pan Xiuli <xiuli.pan@intel.com>
2016-05-18Benchmark: Fix Benchmark heap use after free problemPan Xiuli5-5/+0
Memobject will be release by benchmark runer. Fixed bug: https://bugs.freedesktop.org/show_bug.cgi?id=93627 Signed-off-by: Pan Xiuli <xiuli.pan@intel.com> Reviewed-by: Yang Rong <rong.r.yang@intel.com>
2016-05-18Benchmark: Fix benchmark bugs with image mapPan Xiuli1-2/+2
The map in utest is changed, benchmark need chang as well. Signed-off-by: Pan Xiuli <xiuli.pan@intel.com> Reviewed-by: Yang Rong <rong.r.yang@intel.com>
2015-11-25Add a benchmark which test do 3*3 median filter in image.Meng Mengmeng1-7/+10
It's basic image test for uchar, ushort and uint. v2: convert uint to float before do median filter and use intermediate variable in if loop. Signed-off-by: Meng Mengmeng <mengmeng.meng@intel.com> Reviewed-by: Ruiling Song <ruiling.song@intel.com>
2015-11-25Add a benchmark which test do 3*3 median filter in buffer.Meng Mengmeng1-6/+9
It's basic buffer test for uchar, ushort and uint. Signed-off-by: Meng Mengmeng <mengmeng.meng@intel.com> Reviewed-by: Ruiling Song <ruiling.song@intel.com>
2015-11-25Refine the benchmark tests: copy buffer and image.Meng Mengmeng2-6/+6
Get FPS of the two benchmarks in place of GB/S. v2: Operating 1000 frame instead of 100. Signed-off-by: Meng Mengmeng <mengmeng.meng@intel.com> Reviewed-by: Ruiling Song <ruiling.song@intel.com>
2015-11-25Add a option which could set the benchmark unit properly.Meng Mengmeng8-8/+8
For benchmarks, the units are varied e.g. GB/S, FPS, score and so on. So we need to make a choice for every benchmark. Signed-off-by: Meng Mengmeng <mengmeng.meng@intel.com> Reviewed-by: Ruiling Song <ruiling.song@intel.com>
2015-11-06add benckmark for copy data from image to imageMeng Mengmeng2-1/+72
Set the data format as 1920 * 1080 four channels(RGBA) and type as char,short and int. Signed-off-by: Meng Mengmeng <mengmeng.meng@intel.com> Reviewed-by: Ruiling Song <ruiling.song@intel.com>
2015-11-06add benckmark for copy data from buffer to bufferMeng Mengmeng2-1/+57
Set the data format as 1920 * 1080 four channels and type as char,short and int. Signed-off-by: Meng Mengmeng <mengmeng.meng@intel.com> Reviewed-by: Ruiling Song <ruiling.song@intel.com>
2015-05-04add benckmark for copy data from buffer to image.Luo Xionghu2-0/+67
v2: use random input data; update comments. v3: change the image attribute to __write_only. Signed-off-by: Luo Xionghu <xionghu.luo@intel.com> Reviewed-by: "Weng, Chuanbo" <chuanbo.weng@intel.com>
2015-02-13Add benchmark of clEnqueueCopyImageToBuffer(copy 2d image to buffer).Chuanbo Weng2-1/+66
v2: Change test image size from (width, height) = (960, 540) to (960 * 4, 540 * 4), becaue larger workload get more stable benchmark result. Signed-off-by: Chuanbo Weng <chuanbo.weng@intel.com> Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
2015-02-06Refine copy_buf benchmark and rename the file.Chuanbo Weng2-19/+21
Some refinement for copy_buf benchmark: 1. We should measure execution time of clEnqueueCopyBuffer(buffer creation and initialization time should not be included). 2. Add clFinish before gettimeofday. 3. Rename the file in order to keep the name format the same as other benchmarks. v2: Change output measurement from time to bandwidth. Signed-off-by: Chuanbo Weng <chuanbo.weng@intel.com> Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
2015-02-06Refine benchmark output.Chuanbo Weng4-8/+16
Change output measurement from time to bandwidth, so we can compare all benchmark results easily. And change return type of benchmark from int to double, because int is not precise enough. v2: Change output measurement from time to bandwidth. Signed-off-by: Chuanbo Weng <chuanbo.weng@intel.com> Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
2015-01-23update utest to loose userptr limitationGuo Yejun1-1/+1
the limitation is loosed from page size to cache line size alignment inside driver, update utest accordingly. Signed-off-by: Guo Yejun <yejun.guo@intel.com> Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
2015-01-09Add read buffer/image benchmark.Yang Rong3-1/+119
Add there two benchmark to compare the buffer and image performance V2: init the coord before read image. V3: Correct the image's width and buffer's read index. Signed-off-by: Yang Rong <rong.r.yang@intel.com> Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
2014-12-02add test of cl_mem_use_host_ptr into benchmarkGuo Yejun3-24/+41
and also refine the code to move time_subtract into utest_helper.hpp/cpp Signed-off-by: Guo Yejun <yejun.guo@intel.com> Reviewed-by: "Yang, Rong R" <rong.r.yang@intel.com>
2014-11-11License: adjust all license version to LGPL v2.1+.Zhigang Gong1-1/+1
To make the license statement consistent to each other, adjust all license versions to v2.1+. Thus beignet should have a pure LGPL v2.1+ license. Signed-off-by: Zhigang Gong <zhigang.gong@intel.com>
2014-09-03Add new vload benchmark/test case.Zhigang Gong2-1/+6
v2: refine the benchmark case and don't mix it with normal unit test cases. Signed-off-by: Zhigang Gong <zhigang.gong@intel.com> Reviewed-by: "Song, Ruiling" <ruiling.song@intel.com>
2014-06-04add DRM_LIBDIR path into link directory listLi Peng1-1/+1
Then beignet can link to user preferred drm library rather than default Signed-off-by: Li Peng <peng.li@intel.com> Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
2014-04-30Init Benchmark suiteYi Sun3-0/+207
The first benchmark case is name enqueue_copy_buf. Signed-off-by: Yi Sun <yi.sun@intel.com> Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>