Commit Graph

121 Commits

Author SHA1 Message Date
Wenju He
2eea74bc95 Use unique tmp file to allow parallel printf tests (#215)
Parallel printf tests fail because they use the same file /tmp/tmpfile
to capture OpenCL kernel outputs. This patch solves this problem by
using a unique file for each process.
2019-04-25 18:10:46 +01:00
Radek Szymanski
355b2d2460 cl22: Reuse test harness code in clFillImage (#202)
Some of the setup functionality is already there in the test harness, so
use that and remove the duplicated code from within the suite.

Signed-off-by: Radek Szymanski <radek.szymanski@arm.com>
2019-04-25 02:48:15 +01:00
Radek Szymanski
cd0af9ca25 cl22: Reuse test harness code in clCopyImage (#199)
Some of the setup functionality is already there in the test harness, so
use that and remove the duplicated code from within the suite.

Signed-off-by: Radek Szymanski <radek.szymanski@arm.com>
2019-04-25 02:44:57 +01:00
Radek Szymanski
f42a688ac2 cl22: Reuse test harness code in clReadWriteImage (#208)
Some of the setup functionality is already there in the test harness, so
use that and remove the duplicated code from within the suite.

Signed-off-by: Radek Szymanski <radek.szymanski@arm.com>
2019-04-25 02:15:12 +01:00
Radek Szymanski
5f261cb57e cl22: Reuse test harness code in clGetInfo (#205)
Some of the setup functionality is already there in the test harness, so
use that and remove the duplicated code from within the suite.

Signed-off-by: Radek Szymanski <radek.szymanski@arm.com>
2019-04-25 01:56:02 +01:00
Radek Szymanski
5233855ca8 cl22: Reuse test harness code in kernel_image_methods (#211)
Some of the setup functionality is already there in the test harness, so
use that and remove the duplicated code from within the suite.

Signed-off-by: Radek Szymanski <radek.szymanski@arm.com>
2019-04-24 04:28:15 +01:00
Radek Szymanski
8a8ebf29b0 cl22: Reuse test harness code in half (#192)
Some of the setup functionality is already there in the test harness, so
use that and remove the duplicated code from within the suite.

Signed-off-by: Radek Szymanski <radek.szymanski@arm.com>
2019-04-22 12:09:32 +01:00
Wenju He
2c9ba4b352 Remove redundant releaseOutputStream call in printf (#218) 2019-04-22 12:07:26 +01:00
Radek Szymanski
2668020fb7 cl22: Reuse test harness code in math_brute_force (#196)
Some of the setup functionality is already there in the test harness, so
use that and remove the duplicated code from within the suite.

Signed-off-by: Radek Szymanski <radek.szymanski@arm.com>
2019-04-22 12:06:02 +01:00
Radek Szymanski
0c15c7039e cl22: Reuse test harness code in allocations (#189)
Some of the setup functionality is already there in the test harness, so
use that and remove the duplicated code from within the suite.

Signed-off-by: Radek Szymanski <radek.szymanski@arm.com>
2019-04-22 12:02:17 +01:00
Wenju He
1de46f2ca1 Reuse math_brute_force ulp threshold in spir test
Spir test compares floating-point kernel results bit-by-bit with
correct results. However, for math_brute_force kernels, specification
does not ask for SPIR and OpenCL C path to match bit-to-bit. This patch
reuses ulps threshold from math_brute_force folder for math_brute_force
kernels in spir test.

Signed-off-by: Wenju He <wenju.he@intel.com>
2019-04-19 14:51:52 +01:00
Radek Szymanski
b5028806d8 cl22: Test Harness minor cleanup (#186)
* Report an error when unimplemented test was specified
* Merge two common functions

Signed-off-by: Radek Szymanski <radek.szymanski@arm.com>
2019-04-18 15:10:26 +01:00
Grzegorz Wawiorko
6c999818ee cl22: Improved CRC calculation (#133)
* Improved CRC calculation

* Improved CRC calculation - review fix

* Improved CRC calculation - build brake fix

* Improved CRC calculation - remove external initializaiton
2019-04-18 15:00:45 +01:00
Jeremy Kemp
8e03195706 cl22: Compiler - updated extension list for compiler_defines_for_exensions (#176)
* cl12: Compiler - added missing extensions to compiler_defines_for_extensions.

Updated the list of known extensions to include all extensions referenced in the OpenCL Extension Specification 1.2 - Revision 25 and OpenCL Specification 1.2 - Revision 19 documents.

* Re-added the cl_khr_il_program extension.

This was this was erroneously removed in the previous commit.

* Compiler: Added all known extensions to compiler_defines_for_extensions.

After discussion on the pull request, it was decided to have this test test for all known khr extensions accross all API levels. Some vendors support 2.x extensions on 1.x implementations, so wanted to ensure that the test still covered those cases.

Re-ordered each sub-list so that the order in which each extension appears mirrors that of https://www.khronos.org/registry/OpenCL/specs/2.2/html/OpenCL_Ext.html.

For reference: https://github.com/KhronosGroup/OpenCL-CTS/pull/55.

* Compiler: Moved priority and throttle hints to the API-only section of the array in compiler_defines_for_extensions.
2019-04-16 14:46:25 +01:00
Radek Szymanski
2909b0ca86 cl22: Reuse test harness code in conversions (#180)
Some of the setup functionality is already there in the test harness, so
use that and remove the duplicated code from within the suite.

Signed-off-by: Radek Szymanski <radek.szymanski@arm.com>
2019-04-16 11:52:33 +01:00
Grzegorz Wawiorko
51f149eb20 Review fixes 2019-04-15 16:09:13 +01:00
Bartosz Sochacki
5f14bd69d1 build break fix for bug 15266 "Add test for -cl-fp32-correctly-rounded-divide-sqrt to spir subtest." 2019-04-15 16:09:13 +01:00
Yaxun (Sam) Liu
e1c9ffd394 Add test for -cl-fp32-correctly-rounded-divide-sqrt to spir subtest. 2019-04-15 16:09:13 +01:00
Brian Sumner
f37a0292ac Use correct format for unsigned long 2019-04-15 16:06:40 +01:00
Brian Sumner
4694e625c7 Proposed fix for bug 16239 2019-04-15 16:06:40 +01:00
Brian Sumner
2c5ba5cdc2 Fix bug 16270 by raising device limit 2019-04-15 16:04:24 +01:00
Grzegorz Wawiorko
e94d9b967a Khronos Bug 15438 generic address space language_union test issues 2019-04-12 13:07:41 +01:00
Radek Szymanski
c9c10138c6 cl22: Reuse test harness code in printf
Some of the setup functionality is already there in the test harness, so
use that and remove the duplicated code from within the suite.

Signed-off-by: Radek Szymanski <radek.szymanski@arm.com>
2019-04-12 12:36:54 +01:00
Radek Szymanski
76cedbb21c cl22: Save results to JSON file
Add option to save results to JSON file by passing environment variable.

Signed-off-by: Radek Szymanski <radek.szymanski@arm.com>
2019-04-12 12:29:57 +01:00
Kevin Petit
63b726feed Fix memory leaks in printf
Signed-off-by: Mats Petersson <mats.petersson@arm.com>
2019-04-11 13:03:46 +01:00
Kevin Petit
d43f576588 Fix error message in SVM test
Signed-off-by: Xin Jin <xin.jin@arm.com>
2019-04-11 13:03:46 +01:00
Grzegorz Wawiorko
c1cd117265 Make wimpy factor argument parsing logic common (#155) 2019-04-11 12:10:45 +01:00
Kévin Petit
8d209840be cl20: Khronos Bug 16236: Support CL_DEPTH images in the image helpers when using the border colour (#149)
Signed-off-by: Kevin Petit <kevin.petit@arm.com>
2019-04-10 13:25:13 +01:00
Grzegorz Wawiorko
eea888bfe2 Khronos Bug 15691 kernel_preprocessor_macros test encodes file name and path in the SPIR-V binaries (#129) 2019-04-10 13:22:13 +01:00
Radek Szymanski
07196c351a cl22: Use single array for function list (#148)
Signed-off-by: Radek Szymanski <radek.szymanski@arm.com>
2019-04-10 12:30:38 +01:00
Grzegorz Wawiorko
394dece0d7 Khronos Bug 15617 SVM memory migrate test issues (#125) 2019-04-10 10:54:03 +01:00
Grzegorz Wawiorko
07ae6422b6 Khronos Bug 15208 test_set_kernel_exec_info_svm_ptrs stack corruption (#121) 2019-04-10 10:26:58 +01:00
Radek Szymanski
dd036cd02e cl22: Convert printf to testHarness (#92)
Signed-off-by: Radek Szymanski <radek.szymanski@arm.com>
2019-04-02 15:34:32 +01:00
Grzegorz Wawiorko
f2d339b8d2 Fix issue 105 - lost fixes for some version of Visual Studio (#108) 2019-04-02 15:31:53 +01:00
Grzegorz Wawiorko
5a0ef9fef7 Fix resource leak in SVM test (#127)
The buffer was never unmapped.

Change-Id: If8be7f9f08ae7c26a537039f2bbeeb674cc30059
Signed-off-by: Georgios Pinitas <georgios.pinitas@arm.com>
2019-03-26 09:10:15 +00:00
Grzegorz Wawiorko
3b36a66eff Khronos Bug 15728 SPIR 1.2 tests fail when some cases are skipped (#117) 2019-03-21 11:05:09 +00:00
Wenju He
f10ee34dd8 Fix verifyOutputBuffer return value in printf (#102)
Function verifyOutputBuffer returns non-zero value in case of mismatch.
Return value 'false' means some mismatches are treated as matches. This
commit fix this problem.
2019-03-19 09:33:07 +00:00
Radek Szymanski
56a6502f96 cl22: Convert images/clFillImage to testHarness (#94)
Signed-off-by: Radek Szymanski <radek.szymanski@arm.com>
2019-03-18 10:09:27 +00:00
Grzegorz Wawiorko
051aa08b79 Fix Issue 37 - Test compiler - added new extension cl_khr_spirv_no_integer_wrap_decoration (#90) 2019-03-18 10:07:30 +00:00
Radek Szymanski
39da344d34 cl22: Convert select to testHarness (#88)
Signed-off-by: Radek Szymanski <radek.szymanski@arm.com>
2019-03-18 10:06:30 +00:00
Grzegorz Wawiorko
9b47a561a5 Khronos Bug 15347 fixed code review issues + fix for a similar issue in basic constant test (#74) 2019-03-18 10:04:24 +00:00
Radek Szymanski
6e18d7b257 cl22: Convert allocations to testHarness (#87)
Signed-off-by: Radek Szymanski <radek.szymanski@arm.com>
2019-03-18 10:02:53 +00:00
Grzegorz Wawiorko
db29c68146 Khronos Bug 15347 fix for the same issue in the compatibility tests (#81) 2019-03-18 10:00:15 +00:00
Radek Szymanski
a0ef00101f cl22: Convert images/kernel_read_write to testHarness (#86)
Signed-off-by: Radek Szymanski <radek.szymanski@arm.com>
2019-03-18 09:56:00 +00:00
Grzegorz Wawiorko
f6d6f6b3cc Khronos Bug 15347 test_api_min_max allocates too much memory (#66) 2019-03-18 09:50:50 +00:00
Radek Szymanski
027eca6507 cl22: Convert images/clCopyImage to testHarness (#85)
Signed-off-by: Radek Szymanski <radek.szymanski@arm.com>
2019-03-18 09:50:09 +00:00
Grzegorz Wawiorko
e7e861a5a9 Khronos Bug 15683 Missing OpenCL 2.1 support in API compatibility tests 2019-03-15 10:27:44 +00:00
Kevin Petit
b6446a2f1d Remove build systems other than CMake
Make it clear that CMake is the only supported build system.

Signed-off-by: Kevin Petit <kevin.petit@arm.com>
2019-03-15 09:47:56 +00:00
Grzegorz Wawiorko
162d1d3642 Pass CL_MAP_READ to clEnqueueMapImage as passing 0 is invalid 2019-03-15 09:47:39 +00:00
Grzegorz Wawiorko
90c6aee519 Khronos Bug 15271 allocations test doesn't check if all events on the wait list are valid 2019-03-15 09:38:01 +00:00