Commit Graph

48 Commits

Author SHA1 Message Date
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
Radek Szymanski
084828bbd8 Conversion to testHarness - math_brute_force
Signed-off-by: Radek Szymanski <radek.szymanski@arm.com>
2019-03-05 16:24:34 +00:00
Kevin Petit
aadfe3c5a7 cl20: Khronos Bug 16122: Convert half to test harness
Conflicts:
	test_conformance/half/CMakeLists.txt
	test_conformance/half/Test_vStoreHalf.c
	test_conformance/half/cl_utils.c
	test_conformance/half/cl_utils.h

Signed-off-by: Radek Szymanski <radek.szymanski@arm.com>
Signed-off-by: Kevin Petit <kevin.petit@arm.com>
2019-03-05 16:24:34 +00:00
Radek Szymanski
901bc34567 Conversion to testHarness - conversions
Signed-off-by: Radek Szymanski <radek.szymanski@arm.com>
2019-03-05 16:24:34 +00:00
Kevin Petit
becdc3a1ad Fix build of printf test
Also build as C++11 (required for unique_ptr)

Signed-off-by: Kevin Petit <kevin.petit@arm.com>
2019-03-05 16:24:34 +00:00
Kevin Petit
05a11d8e49 Synchronise with Khronos-private Gitlab branch
The maintenance of the conformance tests is moving to Github.

This commit contains all the changes that have been done in
Gitlab since the first public release of the conformance tests.

Signed-off-by: Kevin Petit kevin.petit@arm.com
2019-03-05 16:24:34 +00:00
Kevin Petit
ba975e4112 Add OSX to the list of Travis CI OSes
Signed-off-by: Kevin Petit <kevin.petit@arm.com>
2018-11-07 10:09:53 +00:00
Kevin Petit
7901538f0f Add Travis badge to README
Signed-off-by: Kevin Petit <kevin.petit@arm.com>
2018-10-23 17:33:44 +00:00
Kevin Petit
ded7c94bf7 Add basic Travis config for Linux builds
Performs a single build on Linux using the unified
headers and linking against the ICD.

Unified headers are broken for 2.x on OSX (see
https://github.com/KhronosGroup/OpenCL-Headers/issues/31).
Adding OSX builds should hopefully be a one-line change
once this is fixed.

Signed-off-by: Kevin Petit <kevin.petit@arm.com>
2018-10-23 17:09:11 +00:00
Kevin Petit
50aaa40f33 cmake: don't set CL_INCLUDE_DIR in CMakeVendor.txt
This will always override anything the user provides. We could
turn it into a cache variable to avoid this but the default
value assumes the location of headers in a hypothetical driver
tree which probably doesn't work for anybody so just get rid of
it instead.

Also remove all references to OPENCL_DRIVER in the build system.
Any such integration doesn't really belong in the CTS's build
system and can triavialy be done with a wrapper project.

Signed-off-by: Kevin Petit <kevin.petit@arm.com>
2018-10-23 17:09:11 +00:00
Alastair Murray
71a5c8251e Replace license.txt contents with Apache 2.0 license
License text taken from: https://www.apache.org/licenses/LICENSE-2.0.txt
2017-11-07 21:43:36 +05:30
Kedar Patil
c3a61c6bdc Initial open source release of OpenCL 2.1 CTS. 2017-05-16 18:48:39 +05:30
Khronos Group Webmaster
6911ba5116 Initial commit 2017-05-15 09:06:40 -04:00