Commit Graph

40 Commits

Author SHA1 Message Date
Pierre Moreau
16544498b3 Add toggle for enabling OpenGL ES interop tests 2019-04-26 01:40:02 +01:00
Pierre Moreau
430e5de283 Mark the graphics interop toggles as options
This allows enabling/disabling them via CMake without editing the
CMakeLists.txt file.
2019-04-26 01:40:02 +01:00
Pierre Moreau
223b2c815a Fix compilation of gl/main.cpp
Fixes 07196c35 ("cl22: Use single array for function list (#148)")
2019-04-26 01:40:02 +01:00
Pierre Moreau
35ddf04319 gl: Add missing tests to the CMakeLists.txt 2019-04-26 01:40:02 +01:00
Pierre Moreau
f7cfce57e0 gl: Remove non-existent file and fix compilation 2019-04-26 01:40:02 +01:00
Wenju He
2308085db5 Use unique tmp file to allow parallel printf tests (#214)
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:11:19 +01:00
Radek Szymanski
a12de660ee cl20: Reuse test harness code in clFillImage (#200)
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:50:10 +01:00
Radek Szymanski
1a59260373 cl20: Reuse test harness code in clCopyImage (#197)
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:47:13 +01:00
Radek Szymanski
3c124e0807 cl20: Reuse test harness code in clReadWriteImage (#206)
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:18:22 +01:00
Radek Szymanski
f982d67fad cl20: Reuse test harness code in clGetInfo (#203)
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:57:49 +01:00
Radek Szymanski
965fe95bdd cl20: Reuse test harness code in kernel_image_methods (#209)
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:29:26 +01:00
Radek Szymanski
b6e7ff9a73 cl20: Reuse test harness code in half (#190)
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:10:29 +01:00
Wenju He
e9617ed58c Remove redundant releaseOutputStream call in printf (#216) 2019-04-22 12:06:57 +01:00
Radek Szymanski
dec06834bb cl20: Reuse test harness code in math_brute_force (#194)
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:04:24 +01:00
Radek Szymanski
1b7bb286d6 cl20: Reuse test harness code in allocations (#187)
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:03:16 +01:00
Wenju He
e4a2f1e326 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:33 +01:00
Radek Szymanski
f0289e2077 cl20: Test Harness minor cleanup (#184)
* 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:01 +01:00
Jeremy Kemp
8ba802bb6c cl20: Compiler - updated extension list for compiler_defines_for_exensions (#174)
* 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.

* Compiler: Added cl_khr_spirv_no_integer_wrap_decoration to the list of extensions.
2019-04-16 14:46:02 +01:00
Radek Szymanski
8684372900 cl20: Reuse test harness code in conversions (#178)
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:08 +01:00
Grzegorz Wawiorko
514394c02f Review fixes 2019-04-15 16:08:53 +01:00
Brian Sumner
9e4bd21d0b Use correct format for unsigned long 2019-04-15 16:05:21 +01:00
Brian Sumner
3ff36af595 Proposed fix for bug 16239 2019-04-15 16:05:21 +01:00
Radek Szymanski
591b7c9185 cl20: 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:15 +01:00
Radek Szymanski
a05daeae7e cl20: 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:35 +01:00
Radek Szymanski
a344529c9b cl20: Use single array for function list (#146)
Signed-off-by: Radek Szymanski <radek.szymanski@arm.com>
2019-04-10 12:29:22 +01:00
Grzegorz Wawiorko
a223b8a9a2 Fix issue 105 - lost fixes for some version of Visual Studio (#106) 2019-04-02 15:30:58 +01:00
Wenju He
14753d04b3 Fix verifyOutputBuffer return value in printf (#103)
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:57 +00:00
Radek Szymanski
0c4f5a40de cl20: Convert images/kernel_read_write to testHarness (#69)
Signed-off-by: Radek Szymanski <radek.szymanski@arm.com>
2019-03-18 09:56:29 +00:00
Radek Szymanski
1ee5a24d21 cl20: Convert images/clCopyImage to testHarness (#56)
* cl20: 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:07 +00:00
Kevin Petit
f6a2955758 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:26 +00:00
Kevin Petit
f75a9cdea3 Fix Apple build
Signed-off-by: Kevin Petit <kevin.petit@arm.com>
2019-03-05 16:24:06 +00:00
Kevin Petit
c609dc9526 Build printf test as C++11
Signed-off-by: Kevin Petit <kevin.petit@arm.com>
2019-03-05 16:24:06 +00:00
Kevin Petit
53db6e7f9f 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:06 +00:00
Kevin Petit
b1603eb6ba Add OSX to the list of Travis CI OSes
Signed-off-by: Kevin Petit <kevin.petit@arm.com>
2018-11-07 10:00:36 +00:00
Kevin Petit
53dafd1f82 Add Travis badge to README
Signed-off-by: Kevin Petit <kevin.petit@arm.com>
2018-10-23 17:31:51 +00:00
Kevin Petit
ebca056620 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 15:56:09 +00:00
Kevin Petit
386c172f20 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 15:56:09 +00:00
Alastair Murray
5b19ef73d9 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:42 +05:30
Kedar Patil
3a440d17c8 Initial open source release of OpenCL 2.0 CTS. 2017-05-16 18:50:35 +05:30
Khronos Group Webmaster
6911ba5116 Initial commit 2017-05-15 09:06:40 -04:00