Commit Graph

62 Commits

Author SHA1 Message Date
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
Kévin Petit
bffb24bf71 Rename license file and add code of conduct (#153)
...to reduce the diff between the cl21_trunk and cl22_trunk
branches.

Signed-off-by: Kevin Petit <kevin.petit@arm.com>
2019-04-11 12:11:08 +01:00
Grzegorz Wawiorko
636a1cc4f5 Khronos Bug 15691 kernel_preprocessor_macros test encodes file name and path in the SPIR-V binaries (#130) 2019-04-10 13:21:48 +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
Grzegorz Wawiorko
e25bbf1ce2 Khronos Bug 15347 fix for the same issue in the compatibility tests (#80) 2019-03-18 10:00:02 +00:00
Radek Szymanski
03da14073c cl21: Convert images/kernel_read_write to testHarness (#70)
Signed-off-by: Radek Szymanski <radek.szymanski@arm.com>
2019-03-18 09:56:15 +00:00
Grzegorz Wawiorko
37d0455bc7 Khronos Bug 15347 test_api_min_max allocates too much memory (#67) 2019-03-18 09:51:11 +00:00
Radek Szymanski
db94f4736d cl21: Convert images/clCopyImage to testHarness (#57)
* cl21: Convert images/clCopyImage to testHarness

Signed-off-by: Radek Szymanski <radek.szymanski@arm.com>

* Remove print options from original patch

Signed-off-by: Radek Szymanski <radek.szymanski@arm.com>
2019-03-18 09:49:26 +00:00
Grzegorz Wawiorko
a0ea80e426 Khronos Bug 15683 Missing OpenCL 2.1 support in API compatibility tests 2019-03-15 10:27:28 +00:00
Kevin Petit
b4a002befe 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:48:12 +00:00
Grzegorz Wawiorko
0f507eb84f Pass CL_MAP_READ to clEnqueueMapImage as passing 0 is invalid 2019-03-15 09:47:26 +00:00
Grzegorz Wawiorko
6bc5236b1c Khronos Bug 15271 allocations test doesn't check if all events on the wait list are valid 2019-03-15 09:37:45 +00:00
Kevin Petit
64594d460e Fix Apple build
Signed-off-by: Kevin Petit <kevin.petit@arm.com>
2019-03-05 16:24:34 +00:00