summaryrefslogtreecommitdiff
path: root/utests/CMakeLists.txt
Commit message (Collapse)AuthorAgeFilesLines
* add utest compiler_block_motion_estimate_intel for extension ↵Luo Xionghu2017-07-121-0/+1
| | | | | | | | | cl_intel_device_side_avc_motion_estimation. fix build warnings. Signed-off-by: Chuanbo Weng <chuanbo.weng@intel.com> Signed-off-by: Xionghu Luo <xionghu.luo@intel.com> Reviewed-by: Yang Rong <rong.r.yang@intel.com>
* add utest compiler_skip_check for extension ↵Luo Xionghu2017-07-121-0/+1
| | | | | | | | | cl_intel_device_side_avc_motion_estimation. fix build warnings. Signed-off-by: Chuanbo Weng <chuanbo.weng@intel.com> Signed-off-by: Xionghu Luo <xionghu.luo@intel.com> Reviewed-by: Yang Rong <rong.r.yang@intel.com>
* add utest compiler_intra_prediction for extenstion ↵Luo Xionghu2017-07-121-1/+2
| | | | | | | | | | cl_intel_device_side_avc_motion_estimation. fix build warnings. Signed-off-by: Chuanbo Weng <chuanbo.weng@intel.com> Signed-off-by: Xionghu Luo <xionghu.luo@intel.com> Reviewed-by: Yang Rong <rong.r.yang@intel.com>
* utests: add utest for fdiv to rcprander2017-07-061-1/+2
| | | | | | | | for this case 1.0f/src, 2.0f/src can be converted, but 3.0f/src and i/src cant Signed-off-by: rander.wang <rander.wang@intel.com> Reviewed-by: Yang Rong <rong.r.yang@intel.com>
* Utset: Add test case for cl_intel_required_subgroup_size extensionPan Xiuli2017-06-161-0/+1
| | | | | | | | | | Check the device supported subgroup sizes, and use intel_reqd_sub_group_size to build kernels in these size. Then check if there is spill for each kernel. V2: Fix memory leak Signed-off-by: Pan Xiuli <xiuli.pan@intel.com> Reviewed-by: Yang Rong <rong.r.yang@intel.com>
* utests: added for optimization negativeAddrander2017-06-091-1/+2
| | | | | | | | | | | | the negative Add is like: exp -a llvm transfer it to: add x -a, 0 exp x Signed-off-by: rander.wang <rander.wang@intel.com> Reviewed-by: Pan Xiuli <xiuli.pan@intel.com>
* utests: add utest for sqrt-div optimizationrander2017-06-091-1/+2
| | | | | Signed-off-by: rander.wang <rander.wang@intel.com> Reviewed-by: Yang Rong <rong.r.yang@intel.com>
* Add image use_hostptr case for testing large image operations.Yan Wang2017-05-181-0/+1
| | | | | | | 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>
* Add image filling case for testing large image operations.Yan Wang2017-05-181-0/+1
| | | | | | | 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>
* Add image copying case for testing large image operations.Yan Wang2017-05-181-0/+1
| | | | | | | 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>
* cl_intel_media_block_io WRITE related unit tests.Luo Xionghu2017-03-131-0/+1
| | | | | | | v2: remove printf code in kernel; disable DEBUG_OUTPUT. Signed-off-by: Luo Xionghu <xionghu.luo@intel.com> Reviewed-by: Pan Xiuli <xiuli.pan@intel.com>
* cl_intel_media_block_io READ related unit tests.Luo Xionghu2017-03-131-0/+1
| | | | | Signed-off-by: Luo Xionghu <xionghu.luo@intel.com> Reviewed-by: Pan Xiuli <xiuli.pan@intel.com>
* add utest for extension intel_planar_yuv.Luo Xionghu2017-03-131-0/+1
| | | | | | | | v2: use read_only/write_only instead of read_write to run on OpenCL-1.2 platform; fix local size issue on IVB platform; Signed-off-by: Luo Xionghu <xionghu.luo@intel.com> Reviewed-by: Yang Rong <rong.r.yang@intel.com>
* Utest: Add OCL20 into utest and check version in runtimePan Xiuli2017-02-101-13/+9
| | | | | | | | | The utest should always be built and we can check ocl version at the test begin. Contributor: Rebecca N. Palmer <rebecca_palmer@zoho.com> Signed-off-by: Pan Xiuli <xiuli.pan@intel.com> Reviewed-by: Yang Rong <rong.r.yang@intel.com>
* OCL20: add device enqueue test case.Yang, Rong R2016-12-301-1/+2
| | | | | Signed-off-by: Yang Rong <rong.r.yang@intel.com> Reviewed-by: Pan Xiuli <xiuli.pan@intel.com>
* utest: suspend deprecated-declarations warning.Yang Rong2016-12-291-0/+2
| | | | | Signed-off-by: Yang Rong <rong.r.yang@intel.com> Reviewed-by: Ruiling Song <ruiling.song@intel.com>
* Utest: Add pipe related testPan Xiuli2016-11-081-1/+3
| | | | | | | | Add test case for builtin with user struct type and int type and runtime tset for creatPipe and pipe query. Signed-off-by: Pan Xiuli <xiuli.pan@intel.com> Reviewed-by: Yang Rong <rong.r.yang@intel.com>
* Utest: Add sampler testPan Xiuli2016-11-081-0/+1
| | | | | | | | Reuse sampler test and add test for new api clCreateSamplerWithProperties. Signed-off-by: Pan Xiuli <xiuli.pan@intel.com> Reviewed-by: Yang Rong <rong.r.yang@intel.com>
* utest: add atomic opencl-2.0 case to test api.Yang Rong2016-11-081-0/+1
| | | | | Signed-off-by: Luo Xionghu <xionghu.luo@intel.com> Reviewed-by: Ruiling Song <ruiling.song@intel.com>
* utest: add generic atomic test.Luo Xionghu2016-11-081-0/+1
| | | | | | | only dword is supported so far. Signed-off-by: Luo Xionghu <xionghu.luo@intel.com> Reviewed-by: Ruiling Song <ruiling.song@intel.com>
* Utest: add a test case for built-in ctz functionPan Xiuli2016-11-081-0/+1
| | | | | | | | Check all type of ctz function and 0 num bound case. V2: Fix type warning Signed-off-by: Pan Xiuli <xiuli.pan@intel.com> Reviewed-by: Yang Rong <rong.r.yang@intel.com>
* GBE: Implement new constant solution for ocl2Ruiling Song2016-11-081-0/+1
| | | | | | | | | Different from ocl 1.2, which gather all constant into one surface. ocl2 only gather program global/constant into one surface. But keep other constant passed through kernel argument in separate buffer. Signed-off-by: Ruiling Song <ruiling.song@intel.com> Reviewed-by: Yang Rong <rong.r.yang@intel.com>
* utest: add generic pointer testRuiling Song2016-11-081-0/+6
| | | | | Signed-off-by: Ruiling Song <ruiling.song@intel.com> Reviewed-by: Yang Rong <rong.r.yang@intel.com>
* Utests: Allow testing cl_intel_accelerator via ICDRebecca N. Palmer2016-10-201-2/+2
| | | | | | | | | v3: Use extension check, not beignet check. Treat claiming to have the extension but not having the kernel as a failure. v4: Make extension check a function, use stderr. Signed-off-by: Rebecca N. Palmer <rebecca_palmer@zoho.com> Reviewed-by: Chuanbo Weng <chuanbo.weng@intel.com>
* Utests: respect existing C/CXXFLAGSRebecca N. Palmer2016-10-201-2/+2
| | | | | | | This extends 4be3664 to the test suite. Signed-off-by: Rebecca N. Palmer <rebecca_palmer@zoho.com> Reviewed-by: Yang Rong <rong.r.yang@intel.com>
* Utest: Remove load spir testPan Xiuli2016-09-281-1/+0
| | | | | | | SPIR now is not stable, remove it now. Signed-off-by: Pan Xiuli <xiuli.pan@intel.com> Reviewed-by: Ruiling Song <ruiling.song@intel.com>
* Add a multi-queue utest.Junyan He2016-09-281-0/+1
| | | | | Signed-off-by: Junyan He <junyan.he@intel.com> Reviewed-by: Yang Rong <rong.r.yang@intel.com>
* Runtime: re-enable cl_khr_gl_sharing with existing egl extension.Chuanbo Weng2016-09-121-10/+12
| | | | | | | | | | | | | | | | | | In order to query low level layout of GL buffer object/texture/render buffer, previous implementation introduced an egl extension and implemented in Beignet side. This way is broken once mesa change its related internal code. In this patch, we use an new egl extension (EGL_MESA_image_dma_buf_export) to query related layout infomations of gl texture. Since this egl extension is already accepted by Khronos, so it's a stable method. This patch just implement GL texture 2d buffer sharing, and we will implement other target type if necessary. v2: Add CMake build option to enable cl_khr_gl_sharing(default off). Clean up related CMake code. Signed-off-by: Chuanbo Weng <chuanbo.weng@intel.com> Reviewed-by: Yang Rong <rong.r.yang@intel.com>
* Utest: Add test case for sub_group_shuffle_down/up/xorPan Xiuli2016-07-201-0/+3
| | | | | | V2:Add subgroups extension check. Signed-off-by: Pan Xiuli <xiuli.pan@intel.com> Reviewed-by: Yang Rong <rong.r.yang@intel.com>
* CMAKE: Make utests and benchmark not build for defaultPan Xiuli2016-07-201-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>
* Utest: Add tset case for block read/write imagePan Xiuli2016-06-131-0/+2
| | | | | Signed-off-by: Pan Xiuli <xiuli.pan@intel.com> Reviewed-by: Yang Rong <rong.r.yang@intel.com>
* Utest: Add tset case for block read/write bufferPan Xiuli2016-06-131-0/+2
| | | | | | | V2: Rename test case to buffer block read/write test Signed-off-by: Pan Xiuli <xiuli.pan@intel.com> Reviewed-by: Yang Rong <rong.r.yang@intel.com>
* Utest: Add test case for sub_group functionsPan Xiuli2016-06-131-0/+4
| | | | | | | Long type need to be fixed before gen8, so hide them now. Signed-off-by: Pan Xiuli <xiuli.pan@intel.com> Reviewed-by: Yang Rong <rong.r.yang@intel.com>
* Utest: Remove old sub_group_all/any utestPan Xiuli2016-06-131-2/+0
| | | | | | | This utest does not follow spec, so just remove them. Signed-off-by: Pan Xiuli <xiuli.pan@intel.com> Reviewed-by: Yang Rong <rong.r.yang@intel.com>
* Utest: Add subgroup work item test casesPan Xiuli2016-06-131-0/+4
| | | | | Signed-off-by: Pan Xiuli <xiuli.pan@intel.com> Reviewed-by: Yang Rong <rong.r.yang@intel.com>
* Utest: Add workgroup scan inclusive testsGrigore Lupescu2016-05-181-0/+1
| | | | | | | | | | | | | | | | | | | | | | Added the following unit tests: compiler_workgroup_scan_inclusive_add_int compiler_workgroup_scan_inclusive_add_uint compiler_workgroup_scan_inclusive_add_long compiler_workgroup_scan_inclusive_add_ulong compiler_workgroup_scan_inclusive_add_float compiler_workgroup_scan_inclusive_max_int compiler_workgroup_scan_inclusive_max_uint compiler_workgroup_scan_inclusive_max_long compiler_workgroup_scan_inclusive_max_ulong compiler_workgroup_scan_inclusive_max_float compiler_workgroup_scan_inclusive_min_int compiler_workgroup_scan_inclusive_min_uint compiler_workgroup_scan_inclusive_min_long compiler_workgroup_scan_inclusive_min_ulong compiler_workgroup_scan_inclusive_min_float Signed-off-by: Grigore Lupescu <grigore.lupescu at intel.com> Reviewed-by: Pan Xiuli <xiuli.pan@intel.com>
* Utest: Add workgroup scan exclusive testsGrigore Lupescu2016-05-181-0/+1
| | | | | | | | | | | | | | | | | | | | | | Added the following unit tests: compiler_workgroup_scan_exclusive_add_int compiler_workgroup_scan_exclusive_add_uint compiler_workgroup_scan_exclusive_add_long compiler_workgroup_scan_exclusive_add_ulong compiler_workgroup_scan_exclusive_add_float compiler_workgroup_scan_exclusive_max_int compiler_workgroup_scan_exclusive_max_uint compiler_workgroup_scan_exclusive_max_long compiler_workgroup_scan_exclusive_max_ulong compiler_workgroup_scan_exclusive_max_float compiler_workgroup_scan_exclusive_min_int compiler_workgroup_scan_exclusive_min_uint compiler_workgroup_scan_exclusive_min_long compiler_workgroup_scan_exclusive_min_ulong compiler_workgroup_scan_exclusive_min_float Signed-off-by: Grigore Lupescu <grigore.lupescu at intel.com> Reviewed-by: Pan Xiuli <xiuli.pan@intel.com>
* enable utest compiler_math_3op for mad test.Luo Xionghu2016-04-291-0/+1
| | | | | | v2: add uniform dest test coverage. Signed-off-by: Luo Xionghu <xionghu.luo@intel.com> Reviewed-by: Guo Yejun <yejun.guo@intel.com>
* standalone utest for unified OpenCL implementation.Luo Xionghu2016-04-221-12/+66
| | | | | | | | | | | | | | | | | | | | | | | | use the variable NOT_BUILD_STAND_ALONE_UTEST to control the build type: for beignet build, set it to 1; for stand alone build, do NOT need set it. remove all clXXXIntel extension call and such kind of tests since we intend to provide the unit test independently for viariant OpenCL implementation; replace the clMapBufferIntel/clMapBufferGTTIntel with clEnqueueMapBuffer/clEnqueueMapImage; link the utest binary to libOpenCL to follow the icd standard; remove the useless env in setenv.sh since we need make install the package after build. v2: fix the indent error; use function pointer for extesion case like vme and libva since we link to libOpenCL; v3: builtin_kernel_block_motion_estimate_intel released kernel twice; v4: find OpenCL library for standalone utest and link to libcl for not standalone utest; check default variables in setenv.sh whether empty before use. Signed-off-by: Luo Xionghu <xionghu.luo@intel.com> Reviewed-by: Yang Rong <rong.r.yang@intel.com>
* change built-in function name from get_sub_group_id to get_sub_group_local_idGuo Yejun2016-01-081-1/+1
| | | | | | | | | | | Fix bug at https://bugs.freedesktop.org/show_bug.cgi?id=93469 The fucntion is mapped to OP_SIMD_ID which returns the SIMD lane ID. However, the SIMD lane ID is the equivalent of get_sub_group_local_id(). contributor: Georg Kolling <georg.kolling@gmail.com> Signed-off-by: Guo Yejun <yejun.guo@intel.com> Reviewed-by: Yang Rong <rong.r.yang@intel.com>
* change built-in function name from get_sub_group_size to get_max_sub_group_sizeGuo Yejun2016-01-081-1/+1
| | | | | | | | | | | Fix bug at https://bugs.freedesktop.org/show_bug.cgi?id=93469 The fucntion is mapped to OP_SIMD_SIZE which returns the constant SIMD width, the correct function name is get_max_sub_group_size. contributor: Georg Kolling <georg.kolling@gmail.com> Signed-off-by: Guo Yejun <yejun.guo@intel.com> Reviewed-by: Yang Rong <rong.r.yang@intel.com>
* Utest: Add a bitonic sort test for non-constant extractelementPan Xiuli2015-12-141-1/+2
| | | | | | | | This test case is for the new added non-constand index extractelement path in llvm_scalarize pass. Signed-off-by: Pan Xiuli <xiuli.pan@intel.com> Reviewed-by: Yang Rong <rong.r.yang@intel.com>
* Utests: Add test cases for workgroup reduce max/min.Junyan He2015-12-141-0/+1
| | | | | Signed-off-by: Junyan He <junyan.he@linux.intel.com> Reviewed-by: Yang Rong <rong.r.yang@intel.com>
* utests: add an utest for mixPan Xiuli2015-12-101-1/+2
| | | | | | | | Add a testcase for compiler mix. Since mix will have error, we take err limit as 1e-3 and print the max err. Signed-off-by: Pan Xiuli <xiuli.pan@intel.com> Reviewed-by: Yang Rong <rong.r.yang@intel.com>
* Utest: Add test for get_global/local_linear_idPan Xiuli2015-12-101-1/+3
| | | | | | | | Add two utest case test for OCL2.0 new work-item built-in functions. Signed-off-by: Pan Xiuli <xiuli.pan@intel.com> Reviewed-by: Yang Rong <rong.r.yang@intel.com>
* add utest to demo how to run CM kernerl via OpenCL APIsGuo Yejun2015-12-091-0/+6
| | | | | | | | | | | In this test case, the CM kernel is in VISA binary format, not in GenX Binary format, it means that the CM jitter is needed to compile the CM kernel from VISA format to GenX format, please refer to cmrt_package_path/jitter/readme.txt to prepare the jitter. v2: add comments about the CM jitter Signed-off-by: Guo Yejun <yejun.guo@intel.com> Reviewed-by: Yang Rong <rong.r.yang@intel.com>
* Add utest for workgroup_broadcast.Junyan He2015-11-251-0/+1
| | | | | Signed-off-by: Junyan He <junyan.he@linux.intel.com> Reviewed-by: Yang Rong <rong.r.yang@intel.com>
* Add basic utest for block_motion_estimate_intel.Chuanbo Weng2015-11-101-0/+1
| | | | | | | | If the CL device does not support this builtin kernel, the test returns PASS. Signed-off-by: Guo Yejun <yejun.guo@intel.com> Reviewed-by: Ruiling Song <ruiling.song@intel.com>
* Utests: Add test cases for double conversion.Junyan He2015-11-061-0/+1
| | | | | Signed-off-by: Junyan He <junyan.he@linux.intel.com> Reviewed-by: Yang Rong <rong.r.yang@intel.com>
* Utest: Add double division test.Junyan He2015-10-271-0/+1
| | | | | Signed-off-by: Junyan He <junyan.he@linux.intel.com> Reviewed-by: Yang Rong <rong.r.yang@intel.com>