Commit Graph

65 Commits

Author SHA1 Message Date
Radek Szymanski
bfb3e4aa2c cl21: Add minimal required version functionality (#270)
This adds functionality to define minimal required version through the
ADD_TEST* macros. Tests that don't meet the version requirement will
be skipped.

By default the minimal required version is set to 1.0, subsequent
patches will set the appropriate version for each of the tests.

Signed-off-by: Radek Szymanski <radek.szymanski@arm.com>
2019-05-22 18:31:01 +01:00
Grzegorz Wawiorko
32e702efbc cl21: Fix Issue 38 - Test spirv_new - new test for cl_khr_spirv_no_integer_… (#119)
* Fix Issue 38 - Test spirv_new - new test for cl_khr_spirv_no_integer_wrap_decoration SPV_KHR_no_integer_wrap_decoration extension

* Remove not used variable.
2019-05-22 15:56:43 +01:00
Radek Szymanski
a6fdb7ce60 cl21: Use test_status for test results (#274)
This moves from numeric values to enum values to keep result state of
the test, so we can easily save this information in JSON results.

Signed-off-by: Radek Szymanski <radek.szymanski@arm.com>
2019-05-17 14:31:55 +01:00
Sven van Haastregt
caae56d32c cl21: Add image access qualifier for spirv_new binaries (#272)
The OpenCL SPIR-V Environment Specification v2.2-10, Section 2.1
states that:

    For all OpTypeImage type-declaration instructions:
    The optional image Access Qualifier must be present.

Add the ReadOnly or WriteOnly qualifier as appropriate to the .spvasm
files, and regenerate the .spv files using

    spirv-as --target-env spv1.0
2019-05-15 19:02:06 +01:00
Radek Szymanski
f747995668 cl21: Reuse test harness code in kernel_read_write (#242)
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-05-01 21:19:47 +08:00
Radek Szymanski
d8f307f7e6 cl21: Reuse test harness code in contractions (#253)
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-05-01 19:10:58 +08:00
Radek Szymanski
3aae1d60ef cl21: Reuse test harness code in headers (#256)
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-05-01 19:09:01 +08:00
cdai2
abe52cae81 Fix Issue #53: required buffer size exceed the available size in non_uniform_work_group (#54) 2019-04-30 22:21:35 +08:00
Radek Szymanski
211ea1e342 cl21: Reuse test harness code in samplerlessReads (#245)
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-30 22:17:44 +08:00
Pierre Moreau
eb1b484c29 Fix compilation of gl/main.cpp
Fixes 07196c35 ("cl22: Use single array for function list (#148)")
2019-04-26 01:39:37 +01:00
Pierre Moreau
92fcfeda22 gl: Add missing tests to the CMakeLists.txt 2019-04-26 01:39:37 +01:00
Pierre Moreau
30fae0f9b1 gl: Remove non-existent file and fix compilation 2019-04-26 01:39:37 +01:00
Wenju He
f380c730da Use unique tmp file to allow parallel printf tests (#101)
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:03 +01:00
Radek Szymanski
e9d9ffac6d cl21: Reuse test harness code in clFillImage (#201)
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:49:11 +01:00
Radek Szymanski
189d907d76 cl21: Reuse test harness code in clCopyImage (#198)
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:46:05 +01:00
Radek Szymanski
b1db97e403 cl21: Reuse test harness code in clReadWriteImage (#207)
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:16:24 +01:00
Radek Szymanski
7185e9bb06 cl21: Reuse test harness code in clGetInfo (#204)
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:50 +01:00
aarongreig
adb9dbbef9 Check device address width when deciding which SPIR-V binary to read (#172) 2019-04-25 01:42:12 +01:00
Radek Szymanski
a28cfca522 cl21: Reuse test harness code in kernel_image_methods (#210)
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:38 +01:00
Radek Szymanski
0c45098fd4 cl21: Reuse test harness code in half (#191)
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:11:15 +01:00
Wenju He
920f9ec127 Remove redundant releaseOutputStream call in printf (#217) 2019-04-22 12:07:11 +01:00
Radek Szymanski
d3d302187f cl21: Reuse test harness code in math_brute_force (#195)
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:05:22 +01:00
Radek Szymanski
cba9dcebe5 cl21: Reuse test harness code in allocations (#188)
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:51 +01:00
Wenju He
00f716b0f8 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:40 +01:00
Radek Szymanski
a82e620b98 cl21: Test Harness minor cleanup (#185)
* 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:14 +01:00
Grzegorz Wawiorko
700e68c732 cl21: Improved CRC calculation (#132)
* Improved CRC calculation

* Improved CRC calculation - review fix

* Improved CRC calculation - build brake fix

* Improved CRC calculation - remove external initializaiton
2019-04-18 14:59:04 +01:00
Jeremy Kemp
fb6ee7e939 cl21: Compiler - updated extension list for compiler_defines_for_exensions (#175)
* 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:15 +01:00
Radek Szymanski
6acb468997 cl21: Reuse test harness code in conversions (#179)
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:21 +01:00
Grzegorz Wawiorko
113788517c Review fixes 2019-04-15 16:09:06 +01:00
Bartosz Sochacki
9e468747aa build break fix for bug 15266 "Add test for -cl-fp32-correctly-rounded-divide-sqrt to spir subtest." 2019-04-15 16:09:06 +01:00
Yaxun (Sam) Liu
ec6ceafc79 Add test for -cl-fp32-correctly-rounded-divide-sqrt to spir subtest. 2019-04-15 16:09:06 +01:00
Brian Sumner
d4c7d6dbcd Use correct format for unsigned long 2019-04-15 16:06:24 +01:00
Brian Sumner
c4ea18523b Proposed fix for bug 16239 2019-04-15 16:06:24 +01:00
Kenneth Benzie (Benie)
1a6c15bb5c Check for image support
For SPIR-V tests which require image support, check that images are
actually supported, otherwise skip these tests.
2019-04-15 14:52:29 +01:00
Grzegorz Wawiorko
31a56be88c Segfault when passing arguments to test_conformance_spirv_new 2019-04-15 12:53:30 +01:00
Grzegorz Wawiorko
5238c0a0ab Khronos Bug 15438 generic address space language_union test issues 2019-04-12 13:07:02 +01:00
Radek Szymanski
063aeecd9d cl21: 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:37:05 +01:00
Radek Szymanski
675d188040 cl21: 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:45 +01:00
Radek Szymanski
50ba83e754 cl21: Use single array for function list (#147)
Signed-off-by: Radek Szymanski <radek.szymanski@arm.com>
2019-04-10 12:30:00 +01:00
Grzegorz Wawiorko
c0b9a74583 Khronos Bug 15617 SVM memory migrate test issues (#124) 2019-04-10 10:52:30 +01:00
Grzegorz Wawiorko
1d04839d26 Khronos Bug 15208 test_set_kernel_exec_info_svm_ptrs stack corruption (#122) 2019-04-10 10:26:32 +01:00
Radek Szymanski
02493abe88 cl21: Convert printf to testHarness (#91)
Signed-off-by: Radek Szymanski <radek.szymanski@arm.com>
2019-04-02 15:33:48 +01:00
Grzegorz Wawiorko
52f6ad4a63 Fix issue 105 - lost fixes for some version of Visual Studio (#107) 2019-04-02 15:31:30 +01:00
Grzegorz Wawiorko
7c763df0a1 Khronos Bug 15728 SPIR 1.2 tests fail when some cases are skipped (#116) 2019-03-21 11:04:59 +00:00
Wenju He
7f2ed5317a Fix verifyOutputBuffer return value in printf (#99)
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:32:35 +00:00
Radek Szymanski
fbcb72c85a cl21: Convert images/clFillImage to testHarness (#93)
Signed-off-by: Radek Szymanski <radek.szymanski@arm.com>
2019-03-18 10:09:39 +00:00
Grzegorz Wawiorko
a370817716 Fix Issue 37 - Test compiler - added new extension cl_khr_spirv_no_integer_wrap_decoration (#89) 2019-03-18 10:07:43 +00:00
Radek Szymanski
cdd32af4d9 cl21: Convert select to testHarness (#72)
Signed-off-by: Radek Szymanski <radek.szymanski@arm.com>
2019-03-18 10:06:45 +00:00
Grzegorz Wawiorko
d631cc1858 Khronos Bug 15347 fixed code review issues + fix for a similar issue in basic constant test (#75) 2019-03-18 10:03:57 +00:00
Radek Szymanski
bb5b65e014 cl21: Convert allocations to testHarness (#71)
Signed-off-by: Radek Szymanski <radek.szymanski@arm.com>
2019-03-18 10:03:08 +00:00